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 912b5ed..12d4c85 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -18,21 +18,19 @@ ifdef DEBUG CFLAGS += -g endif -SRC := $(wildcard *.c) +SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) DIRS = . # set the ROMTARGET here ROMTARGET := $(ARCHOSROM) ifdef APPEXTRA - SRC += $(wildcard $(APPEXTRA)/*.c) DIRS += $(APPEXTRA) INCLUDES += -I$(APPEXTRA) endif -CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ --fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) \ --DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} +CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(DEFINES) \ + -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) SOURCES = $(SRC) |