1
0
Fork 0
forked from len0rd/rockbox

Always optimize. No EXCLUDED_SRC anymore

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@613 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-05-17 09:28:07 +00:00
parent 72c8e71c21
commit 470478f0e6

View file

@ -23,19 +23,16 @@ TARGET = -DARCHOS_PLAYER=1
CFLAGS = -W -Wall -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET)
ifdef DEBUG
CFLAGS += -g -DDEBUG
CFLAGS += -O -g -DDEBUG
else
CFLAGS += -O -fomit-frame-pointer -fschedule-insns
CFLAGS += -O -fomit-frame-pointer -fschedule-insns -save-temps
endif
AFLAGS += -small -relax
SRC := $(wildcard drivers/*.c common/*.c malloc/*.c *.c)
EXCLUDED_SRC := thread.c
SRC := $(filter-out $(EXCLUDED_SRC),$(SRC))
OBJS := $(SRC:%.c=%.o) $(EXCLUDED_SRC:%.c=%.o) crt0.o
OBJS := $(SRC:%.c=%.o) crt0.o
DEPS:=.deps
DEPDIRS:=$(DEPS) $(DEPS)/drivers $(DEPS)/common $(DEPS)/malloc
@ -46,6 +43,10 @@ clean:
-rm -f $(OBJS) *.x *.i *.o *.elf *.bin *.map *.mod *.bak *~
-$(RM) -r $(DEPS)
# Special targets
thread.o: thread.c thread.h
$(CC) -c -O -fomit-frame-pointer $(CFLAGS) $<
$(DEPS)/%.d: %.c
@$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $$d ]; then mkdir $$d; fi; }; done'
@echo "Updating dependencies for $<"
@ -54,7 +55,3 @@ $(DEPS)/%.d: %.c
[ -s $@ ] || rm -f $@'
-include $(SRC:%.c=$(DEPS)/%.d)
# Special targets
thread.o: thread.c thread.h
$(CC) -c -O -fomit-frame-pointer $(CFLAGS) $<