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)
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 @@
FIRMWARE = ../..
DRIVERS = ../../drivers
+EXPORT = ../../export
-INCLUDE = -I$(DRIVERS) -I$(FIRMWARE) -I$(FIRMWARE)/common
+INCLUDE = -I$(EXPORT)
RINCLUDE = -I$(FIRMWARE)/include
DEFINES = -DTEST_FAT -DDEBUG -DCRT_DISPLAY -DDISK_WRITE
@@ -13,7 +14,7 @@ TARGET = fat
$(TARGET): fat.o ata-sim.o main.o disk.o debug.o dir.o file.o ctype.o
gcc -g -o fat $+ -lfl
-fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h
+fat.o: $(DRIVERS)/fat.c $(EXPORT)/fat.h $(EXPORT)/ata.h
$(CC) $(CFLAGS) -DSIMULATOR -c $< -o $@
ctype.o: $(FIRMWARE)/common/ctype.c
@@ -31,10 +32,16 @@ file.o: $(FIRMWARE)/common/file.c
debug.o: $(FIRMWARE)/debug.c
$(CC) $(SIMFLAGS) -DSIMULATOR -c $< -o $@
-ata-sim.o: ata-sim.c $(DRIVERS)/ata.h
+ata-sim.o: ata-sim.c $(EXPORT)/ata.h
$(CC) $(SIMFLAGS) -DSIMULATOR -c $< -o $@
-main.o: main.c $(DRIVERS)/ata.h
+dir.h: $(FIRMWARE)/include/dir.h
+ ln -s $(FIRMWARE)/include/dir.h .
+
+file.h: $(FIRMWARE)/include/file.h
+ ln -s $(FIRMWARE)/include/file.h .
+
+main.o: main.c $(EXPORT)/ata.h dir.h file.h
$(CC) $(SIMFLAGS) -c $< -o $@
clean:
@@ -42,6 +49,7 @@ clean:
rm -f *~
rm -f cmd.tab.h lex.yy.c cmd.tab.c
rm -f core
+ rm -f dir.h file.h
tar:
rm -f $(TARGET).tar