diff options
Diffstat (limited to 'firmware/test/fat/Makefile')
-rw-r--r-- | firmware/test/fat/Makefile | 25 |
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 @@ | |||
1 | DRIVERS = ../../drivers | ||
2 | |||
3 | CFLAGS = -g -Wall -DTEST_FAT -I$(DRIVERS) -I. | ||
4 | |||
5 | TARGET = fat | ||
6 | |||
7 | $(TARGET): fat.o ata-sim.o debug.o | ||
8 | gcc -g -o fat $+ -lfl | ||
9 | |||
10 | fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h | ||
11 | $(CC) $(CFLAGS) -c $< -o $@ | ||
12 | |||
13 | ata-sim.o: ata-sim.c $(DRIVERS)/ata.h | ||
14 | |||
15 | debug.o: debug.c debug.h $(DRIVERS)/ata.h | ||
16 | |||
17 | clean: | ||
18 | rm -f *.o $(TARGET) | ||
19 | rm -f *~ | ||
20 | rm -f cmd.tab.h lex.yy.c cmd.tab.c | ||
21 | rm -f core | ||
22 | |||
23 | tar: | ||
24 | rm -f $(TARGET).tar | ||
25 | tar cvf $(TARGET).tar -C .. fat | ||