summaryrefslogtreecommitdiff
path: root/firmware/test/fat/Makefile
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-04-26 16:44:58 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-04-26 16:44:58 +0000
commit1dff4b65f725c2174c65698e498b1d58d61e3968 (patch)
tree14403dd8415cc0fd6389bb873ae166ded43dd6ee /firmware/test/fat/Makefile
parentcfc2bbeef28cfd0159d59ef813ac2a7b956f13a8 (diff)
FAT update
Added fat test code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@254 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/fat/Makefile')
-rw-r--r--firmware/test/fat/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/firmware/test/fat/Makefile b/firmware/test/fat/Makefile
new file mode 100644
index 0000000000..8b60aba99c
--- /dev/null
+++ b/firmware/test/fat/Makefile
@@ -0,0 +1,25 @@
+DRIVERS = ../../drivers
+
+CFLAGS = -g -Wall -DTEST_FAT -I$(DRIVERS) -I.
+
+TARGET = fat
+
+$(TARGET): fat.o ata-sim.o debug.o
+ gcc -g -o fat $+ -lfl
+
+fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h
+ $(CC) $(CFLAGS) -c $< -o $@
+
+ata-sim.o: ata-sim.c $(DRIVERS)/ata.h
+
+debug.o: debug.c debug.h $(DRIVERS)/ata.h
+
+clean:
+ rm -f *.o $(TARGET)
+ rm -f *~
+ rm -f cmd.tab.h lex.yy.c cmd.tab.c
+ rm -f core
+
+tar:
+ rm -f $(TARGET).tar
+ tar cvf $(TARGET).tar -C .. fat