diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-05-17 08:07:23 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-05-17 08:07:23 +0000 |
commit | 2611efd729e55a7eb0422a6d2d531ed24761362d (patch) | |
tree | d86a118dd1cbedef18c40ddbdcc6fa4a9e5104e0 /firmware/test/i2c | |
parent | 82b08d0bdb81562486be52654f4046592b659865 (diff) | |
download | rockbox-2611efd729e55a7eb0422a6d2d531ed24761362d.tar.gz rockbox-2611efd729e55a7eb0422a6d2d531ed24761362d.zip |
Now uses librockbox.a
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@611 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/i2c')
-rw-r--r-- | firmware/test/i2c/Makefile | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/firmware/test/i2c/Makefile b/firmware/test/i2c/Makefile index fe0f85e59e..51e72b859b 100644 --- a/firmware/test/i2c/Makefile +++ b/firmware/test/i2c/Makefile | |||
@@ -4,29 +4,24 @@ AR = sh-elf-ar | |||
4 | AS = sh-elf-as | 4 | AS = sh-elf-as |
5 | OC = sh-elf-objcopy | 5 | OC = sh-elf-objcopy |
6 | 6 | ||
7 | INCLUDES=-I../../common -I../.. -I../../drivers | 7 | FIRMWARE=../.. |
8 | |||
9 | INCLUDES=-I$(FIRMWARE) -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers | ||
8 | 10 | ||
9 | TARGET = -DARCHOS_PLAYER_OLD=1 | 11 | TARGET = -DARCHOS_PLAYER_OLD=1 |
10 | 12 | ||
11 | CFLAGS = -g -W -Wall -m1 -save-temps -nostdlib -Wstrict-prototypes -fschedule-insns -fno-builtin $(INCLUDES) $(TARGET) -DDEBUG | 13 | CFLAGS = -g -W -Wall -m1 -save-temps -nostdlib -Wstrict-prototypes -fschedule-insns -fno-builtin $(INCLUDES) $(TARGET) -DDEBUG |
12 | AFLAGS += -small -relax | 14 | AFLAGS += -small -relax |
13 | 15 | ||
14 | OBJS= ../../crt0.o main.o ../../drivers/i2c.o ../../drivers/mas.o \ | 16 | SRC := $(wildcard *.c) |
15 | ../../debug.o ../../kernel.o thread.o ../../common/sprintf.o \ | 17 | OBJS := $(SRC:%.c=%.o) $(FIRMWARE)/crt0.o |
16 | ../../drivers/dac.o ../../panic.o ../../system.o ../../drivers/led.o \ | 18 | DEPS:=.deps |
17 | ../../drivers/lcd.o ata.o ../../drivers/fat.o \ | 19 | DEPDIRS:=$(DEPS) |
18 | ../../common/disk.o ../../common/file.o ../../common/dir.o | ||
19 | |||
20 | %.o: %.S | ||
21 | $(CC) -o $@ $(CFLAGS) $(INCLUDES) $(DEFS) -c $< | ||
22 | |||
23 | 20 | ||
24 | all : archos.mod | 21 | all : archos.mod |
25 | 22 | ||
26 | main.o: main.c | ||
27 | |||
28 | archos.elf : $(OBJS) app.lds | 23 | archos.elf : $(OBJS) app.lds |
29 | $(CC) -nostartfiles -o archos.elf $(OBJS) -lgcc -Tapp.lds -Wl,-Map,archos.map | 24 | $(CC) -nostartfiles -o archos.elf $(OBJS) -lgcc -lrockbox -L$(FIRMWARE) -Tapp.lds -Wl,-Map,archos.map |
30 | 25 | ||
31 | archos.bin : archos.elf | 26 | archos.bin : archos.elf |
32 | $(OC) -O binary archos.elf archos.bin | 27 | $(OC) -O binary archos.elf archos.bin |
@@ -45,16 +40,14 @@ dist: | |||
45 | 40 | ||
46 | clean: | 41 | clean: |
47 | -rm -f $(OBJS) *.x *.i *.o *.s *.elf *.bin *.map *.mod *.bak *~ | 42 | -rm -f $(OBJS) *.x *.i *.o *.s *.elf *.bin *.map *.mod *.bak *~ |
43 | -$(RM) -r $(DEPS) | ||
48 | 44 | ||
49 | install: | 45 | $(DEPS)/%.d: %.c |
50 | mount /mnt/archos; cp archos.mod /mnt/archos; umount /mnt/archos | 46 | @$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $$d ]; then mkdir $$d; fi; }; done' |
51 | 47 | @echo "Updating dependencies for $<" | |
52 | thread.o: ../../thread.c | 48 | @$(SHELL) -ec '$(CC) -MM $(CFLAGS) $< \ |
53 | $(CC) -O $(CFLAGS) -fomit-frame-pointer -c $< | 49 | |sed '\''s|\($*\)\.o[ :]*|\1.o $(<:%.c=%.d) : |g'\'' > $@; \ |
54 | 50 | [ -s $@ ] || rm -f $@' | |
55 | ata.o: ../../drivers/ata.c | ||
56 | $(CC) -O $(CFLAGS) -c $< | ||
57 | 51 | ||
58 | main.o: main.c | 52 | -include $(SRC:%.c=$(DEPS)/%.d) |
59 | $(CC) -O $(CFLAGS) -c $< | ||
60 | 53 | ||