fix -I for recorder, also use -L to find the librockbox properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@681 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1690a16d41
commit
66b2cd06b0
1 changed files with 2 additions and 1 deletions
|
@ -40,6 +40,7 @@ SRC := $(wildcard *.c)
|
|||
|
||||
ifeq ($(TARGET),-DARCHOS_RECORDER)
|
||||
SRC += $(wildcard recorder/*.c)
|
||||
CFLAGS += -Irecorder
|
||||
endif
|
||||
|
||||
OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
|
||||
|
@ -50,7 +51,7 @@ $(OBJDIR)/librockbox.a:
|
|||
make -C $(FIRMWARE) OBJDIR=$(OBJDIR)
|
||||
|
||||
$(OBJDIR)/archos.elf : $(OBJS) $(LDS) $(OBJDIR)/librockbox.a
|
||||
$(CC) -Os -nostdlib -o $(OBJDIR)/archos.elf $(OBJS) -lrockbox -lgcc -lc -L$(FIRMWARE) -T$(LDS) -Wl,-Map,archos.map
|
||||
$(CC) -Os -nostdlib -o $(OBJDIR)/archos.elf $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -lc -L$(FIRMWARE) -T$(LDS) -Wl,-Map,archos.map
|
||||
|
||||
$(OBJDIR)/archos.bin : $(OBJDIR)/archos.elf
|
||||
$(OC) -O binary $(OBJDIR)/archos.elf $(OBJDIR)/archos.bin
|
||||
|
|
Loading…
Reference in a new issue