diff options
Diffstat (limited to 'firmware/Makefile')
-rw-r--r-- | firmware/Makefile | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index bb4a30f101..e3364d4387 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -9,19 +9,12 @@ | |||
9 | 9 | ||
10 | INCLUDES=-Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers | 10 | INCLUDES=-Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers |
11 | 11 | ||
12 | CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ | 12 | CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} |
13 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} | 13 | |
14 | 14 | SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) | |
15 | ifdef DEBUG | 15 | SOURCES = $(SRC) |
16 | CFLAGS += -g -DDEBUG | 16 | OBJS2 := $(patsubst %.c, $(OBJDIR)/%.o, $(SRC)) $(OBJDIR)/sysfont.o |
17 | else | 17 | OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) |
18 | CFLAGS += -fomit-frame-pointer -fschedule-insns | ||
19 | endif | ||
20 | |||
21 | SRC := $(wildcard drivers/*.c common/*.c *.c) | ||
22 | SRC_S := $(wildcard drivers/*.S common/*.S *.S) | ||
23 | SOURCES = $(SRC) $(SRC_S) | ||
24 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) $(SRC_S:%.S=$(OBJDIR)/%.o) $(OBJDIR)/sysfont.o | ||
25 | DIRS:=. drivers common | 18 | DIRS:=. drivers common |
26 | OUTPUT = $(OBJDIR)/librockbox.a | 19 | OUTPUT = $(OBJDIR)/librockbox.a |
27 | DEPFILE = $(OBJDIR)/dep-firmware | 20 | DEPFILE = $(OBJDIR)/dep-firmware |