summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-05-17 09:28:07 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-05-17 09:28:07 +0000
commit470478f0e689440b493367b5b4da251168579da8 (patch)
tree0f71d4c3af565100ac28396587b208a0f4ee8cb6
parent72c8e71c2149bc08edb41399984411df41a93ef0 (diff)
downloadrockbox-470478f0e689440b493367b5b4da251168579da8.tar.gz
rockbox-470478f0e689440b493367b5b4da251168579da8.zip
Always optimize. No EXCLUDED_SRC anymore
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@613 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index 25d1b1e29c..dbcff16eb8 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -23,19 +23,16 @@ TARGET = -DARCHOS_PLAYER=1
23CFLAGS = -W -Wall -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET) 23CFLAGS = -W -Wall -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET)
24 24
25ifdef DEBUG 25ifdef DEBUG
26CFLAGS += -g -DDEBUG 26CFLAGS += -O -g -DDEBUG
27else 27else
28CFLAGS += -O -fomit-frame-pointer -fschedule-insns 28CFLAGS += -O -fomit-frame-pointer -fschedule-insns -save-temps
29endif 29endif
30 30
31AFLAGS += -small -relax 31AFLAGS += -small -relax
32 32
33SRC := $(wildcard drivers/*.c common/*.c malloc/*.c *.c) 33SRC := $(wildcard drivers/*.c common/*.c malloc/*.c *.c)
34EXCLUDED_SRC := thread.c
35 34
36SRC := $(filter-out $(EXCLUDED_SRC),$(SRC)) 35OBJS := $(SRC:%.c=%.o) crt0.o
37
38OBJS := $(SRC:%.c=%.o) $(EXCLUDED_SRC:%.c=%.o) crt0.o
39DEPS:=.deps 36DEPS:=.deps
40DEPDIRS:=$(DEPS) $(DEPS)/drivers $(DEPS)/common $(DEPS)/malloc 37DEPDIRS:=$(DEPS) $(DEPS)/drivers $(DEPS)/common $(DEPS)/malloc
41 38
@@ -46,6 +43,10 @@ clean:
46 -rm -f $(OBJS) *.x *.i *.o *.elf *.bin *.map *.mod *.bak *~ 43 -rm -f $(OBJS) *.x *.i *.o *.elf *.bin *.map *.mod *.bak *~
47 -$(RM) -r $(DEPS) 44 -$(RM) -r $(DEPS)
48 45
46# Special targets
47thread.o: thread.c thread.h
48 $(CC) -c -O -fomit-frame-pointer $(CFLAGS) $<
49
49$(DEPS)/%.d: %.c 50$(DEPS)/%.d: %.c
50 @$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $$d ]; then mkdir $$d; fi; }; done' 51 @$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $$d ]; then mkdir $$d; fi; }; done'
51 @echo "Updating dependencies for $<" 52 @echo "Updating dependencies for $<"
@@ -54,7 +55,3 @@ $(DEPS)/%.d: %.c
54 [ -s $@ ] || rm -f $@' 55 [ -s $@ ] || rm -f $@'
55 56
56-include $(SRC:%.c=$(DEPS)/%.d) 57-include $(SRC:%.c=$(DEPS)/%.d)
57
58# Special targets
59thread.o: thread.c thread.h
60 $(CC) -c -O -fomit-frame-pointer $(CFLAGS) $<