summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile8
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
19endif 19endif
20 20
21SRC := $(wildcard *.c) 21SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
22DIRS = . 22DIRS = .
23 23
24# set the ROMTARGET here 24# set the ROMTARGET here
25ROMTARGET := $(ARCHOSROM) 25ROMTARGET := $(ARCHOSROM)
26 26
27ifdef APPEXTRA 27ifdef APPEXTRA
28 SRC += $(wildcard $(APPEXTRA)/*.c)
29 DIRS += $(APPEXTRA) 28 DIRS += $(APPEXTRA)
30 INCLUDES += -I$(APPEXTRA) 29 INCLUDES += -I$(APPEXTRA)
31endif 30endif
32 31
33CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ 32CFLAGS = $(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
37OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) 35OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o)
38SOURCES = $(SRC) 36SOURCES = $(SRC)