Added DEBUG option and made thread.o special
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@610 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
afd30bb4cd
commit
82b08d0bdb
1 changed files with 17 additions and 3 deletions
|
@ -20,15 +20,25 @@ TARGET = -DARCHOS_PLAYER=1
|
|||
#TARGET = -DARCHOS_PLAYER_OLD=1
|
||||
#TARGET = -DARCHOS_RECORDER=1
|
||||
|
||||
CFLAGS = -Os -W -Wall -m1 -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) -DDEBUG
|
||||
CFLAGS = -W -Wall -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET)
|
||||
|
||||
ifdef DEBUG
|
||||
CFLAGS += -g -DDEBUG
|
||||
else
|
||||
CFLAGS += -O -fomit-frame-pointer -fschedule-insns
|
||||
endif
|
||||
|
||||
AFLAGS += -small -relax
|
||||
|
||||
SRC := $(wildcard drivers/*.c common/*.c malloc/*.c *.c)
|
||||
OBJS := $(SRC:%.c=%.o) crt0.o
|
||||
EXCLUDED_SRC := thread.c
|
||||
|
||||
SRC := $(filter-out $(EXCLUDED_SRC),$(SRC))
|
||||
|
||||
OBJS := $(SRC:%.c=%.o) $(EXCLUDED_SRC:%.c=%.o) crt0.o
|
||||
DEPS:=.deps
|
||||
DEPDIRS:=$(DEPS) $(DEPS)/drivers $(DEPS)/common $(DEPS)/malloc
|
||||
|
||||
|
||||
librockbox.a: $(OBJS)
|
||||
$(AR) ruv $@ $+
|
||||
|
||||
|
@ -44,3 +54,7 @@ $(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) $<
|
||||
|
|
Loading…
Reference in a new issue