diff options
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/Makefile b/apps/Makefile index 649dd48496..eee9c034dd 100644 --- a/apps/Makefile +++ b/apps/Makefile | |||
@@ -62,7 +62,7 @@ endif | |||
62 | 62 | ||
63 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(DEFINES) -DTARGET_ID=$(TARGET_ID) \ | 63 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(BUILDDATE) $(DEFINES) -DTARGET_ID=$(TARGET_ID) \ |
64 | -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} \ | 64 | -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} \ |
65 | -DTARGET_NAME=\"$(ARCHOS)\" | 65 | -DTARGET_NAME=\"$(MODELNAME)\" |
66 | 66 | ||
67 | OBJS2 := $(OBJDIR)/lang.o $(patsubst %.c, $(OBJDIR)/%.o, $(SRC)) | 67 | OBJS2 := $(OBJDIR)/lang.o $(patsubst %.c, $(OBJDIR)/%.o, $(SRC)) |
68 | OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) | 68 | OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) |
@@ -218,11 +218,12 @@ $(OBJDIR)/features: features.txt | |||
218 | $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ | 218 | $(SILENT)cat $< | $(HOSTCC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ |
219 | $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \ | 219 | $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -imacros "config.h" -imacros "button.h" - | \ |
220 | grep -v "^\#" | grep -v "^$$" > $@; \ | 220 | grep -v "^\#" | grep -v "^$$" > $@; \ |
221 | echo "" >/dev/null | 221 | for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done ; \ |
222 | echo "$$feat" >$(OBJDIR)/genlang-features | ||
222 | 223 | ||
223 | $(OBJDIR)/lang.o: lang/$(LANGUAGE).lang $(OBJDIR)/features | 224 | $(OBJDIR)/lang.o: lang/$(LANGUAGE).lang $(OBJDIR)/features |
224 | $(SILENT)for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done; \ | 225 | $(SILENT)for f in `cat $(OBJDIR)/features`; do feat="$$feat:$$f" ; done; \ |
225 | perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(ARCHOS)$$feat $< | 226 | perl -s $(TOOLSDIR)/genlang -p=$(BUILDDIR)/lang -t=$(MODELNAME)$$feat $< |
226 | $(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@ | 227 | $(call PRINTS,CC lang.c)$(CC) $(CFLAGS) -c $(BUILDDIR)/lang.c -o $@ |
227 | 228 | ||
228 | clean: | 229 | clean: |