summaryrefslogtreecommitdiff
path: root/firmware/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/Makefile')
-rw-r--r--firmware/Makefile19
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
10INCLUDES=-Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers 10INCLUDES=-Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers
11 11
12CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ 12CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
13$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} 13
14 14SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
15ifdef DEBUG 15SOURCES = $(SRC)
16CFLAGS += -g -DDEBUG 16OBJS2 := $(patsubst %.c, $(OBJDIR)/%.o, $(SRC)) $(OBJDIR)/sysfont.o
17else 17OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
18CFLAGS += -fomit-frame-pointer -fschedule-insns
19endif
20
21SRC := $(wildcard drivers/*.c common/*.c *.c)
22SRC_S := $(wildcard drivers/*.S common/*.S *.S)
23SOURCES = $(SRC) $(SRC_S)
24OBJS := $(SRC:%.c=$(OBJDIR)/%.o) $(SRC_S:%.S=$(OBJDIR)/%.o) $(OBJDIR)/sysfont.o
25DIRS:=. drivers common 18DIRS:=. drivers common
26OUTPUT = $(OBJDIR)/librockbox.a 19OUTPUT = $(OBJDIR)/librockbox.a
27DEPFILE = $(OBJDIR)/dep-firmware 20DEPFILE = $(OBJDIR)/dep-firmware