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:
Daniel Stenberg 2002-05-24 09:00:37 +00:00
parent 1690a16d41
commit 66b2cd06b0

View file

@ -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