summaryrefslogtreecommitdiff
path: root/firmware/test
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-03-10 12:42:53 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-03-10 12:42:53 +0000
commit6365f2a5585381b300326297f25da73991786516 (patch)
treec63ee9342829a5a17aee0cf090634dab9d2fa3d1 /firmware/test
parent9963c4570b33ac53b598bfed4c19df4c3b620cae (diff)
downloadrockbox-6365f2a5585381b300326297f25da73991786516.tar.gz
rockbox-6365f2a5585381b300326297f25da73991786516.zip
Updated with new export dir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3404 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test')
-rw-r--r--firmware/test/fat/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/firmware/test/fat/Makefile b/firmware/test/fat/Makefile
index fa9ac33fb7..781f8afcdb 100644
--- a/firmware/test/fat/Makefile
+++ b/firmware/test/fat/Makefile
@@ -1,7 +1,8 @@
1FIRMWARE = ../.. 1FIRMWARE = ../..
2DRIVERS = ../../drivers 2DRIVERS = ../../drivers
3EXPORT = ../../export
3 4
4INCLUDE = -I$(DRIVERS) -I$(FIRMWARE) -I$(FIRMWARE)/common 5INCLUDE = -I$(EXPORT)
5RINCLUDE = -I$(FIRMWARE)/include 6RINCLUDE = -I$(FIRMWARE)/include
6DEFINES = -DTEST_FAT -DDEBUG -DCRT_DISPLAY -DDISK_WRITE 7DEFINES = -DTEST_FAT -DDEBUG -DCRT_DISPLAY -DDISK_WRITE
7 8
@@ -13,7 +14,7 @@ TARGET = fat
13$(TARGET): fat.o ata-sim.o main.o disk.o debug.o dir.o file.o ctype.o 14$(TARGET): fat.o ata-sim.o main.o disk.o debug.o dir.o file.o ctype.o
14 gcc -g -o fat $+ -lfl 15 gcc -g -o fat $+ -lfl
15 16
16fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h 17fat.o: $(DRIVERS)/fat.c $(EXPORT)/fat.h $(EXPORT)/ata.h
17 $(CC) $(CFLAGS) -DSIMULATOR -c $< -o $@ 18 $(CC) $(CFLAGS) -DSIMULATOR -c $< -o $@
18 19
19ctype.o: $(FIRMWARE)/common/ctype.c 20ctype.o: $(FIRMWARE)/common/ctype.c
@@ -31,10 +32,16 @@ file.o: $(FIRMWARE)/common/file.c
31debug.o: $(FIRMWARE)/debug.c 32debug.o: $(FIRMWARE)/debug.c
32 $(CC) $(SIMFLAGS) -DSIMULATOR -c $< -o $@ 33 $(CC) $(SIMFLAGS) -DSIMULATOR -c $< -o $@
33 34
34ata-sim.o: ata-sim.c $(DRIVERS)/ata.h 35ata-sim.o: ata-sim.c $(EXPORT)/ata.h
35 $(CC) $(SIMFLAGS) -DSIMULATOR -c $< -o $@ 36 $(CC) $(SIMFLAGS) -DSIMULATOR -c $< -o $@
36 37
37main.o: main.c $(DRIVERS)/ata.h 38dir.h: $(FIRMWARE)/include/dir.h
39 ln -s $(FIRMWARE)/include/dir.h .
40
41file.h: $(FIRMWARE)/include/file.h
42 ln -s $(FIRMWARE)/include/file.h .
43
44main.o: main.c $(EXPORT)/ata.h dir.h file.h
38 $(CC) $(SIMFLAGS) -c $< -o $@ 45 $(CC) $(SIMFLAGS) -c $< -o $@
39 46
40clean: 47clean:
@@ -42,6 +49,7 @@ clean:
42 rm -f *~ 49 rm -f *~
43 rm -f cmd.tab.h lex.yy.c cmd.tab.c 50 rm -f cmd.tab.h lex.yy.c cmd.tab.c
44 rm -f core 51 rm -f core
52 rm -f dir.h file.h
45 53
46tar: 54tar:
47 rm -f $(TARGET).tar 55 rm -f $(TARGET).tar