diff options
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/Makefile b/apps/Makefile index 912b5ed143..12d4c85fd9 100644 --- a/apps/Makefile +++ b/apps/Makefile | |||
@@ -18,21 +18,19 @@ ifdef DEBUG | |||
18 | CFLAGS += -g | 18 | CFLAGS += -g |
19 | endif | 19 | endif |
20 | 20 | ||
21 | SRC := $(wildcard *.c) | 21 | SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) |
22 | DIRS = . | 22 | DIRS = . |
23 | 23 | ||
24 | # set the ROMTARGET here | 24 | # set the ROMTARGET here |
25 | ROMTARGET := $(ARCHOSROM) | 25 | ROMTARGET := $(ARCHOSROM) |
26 | 26 | ||
27 | ifdef APPEXTRA | 27 | ifdef APPEXTRA |
28 | SRC += $(wildcard $(APPEXTRA)/*.c) | ||
29 | DIRS += $(APPEXTRA) | 28 | DIRS += $(APPEXTRA) |
30 | INCLUDES += -I$(APPEXTRA) | 29 | INCLUDES += -I$(APPEXTRA) |
31 | endif | 30 | endif |
32 | 31 | ||
33 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ | 32 | CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(DEFINES) \ |
34 | -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) \ | 33 | -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} |
35 | -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} | ||
36 | 34 | ||
37 | OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) | 35 | OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) |
38 | SOURCES = $(SRC) | 36 | SOURCES = $(SRC) |