diff options
Diffstat (limited to 'firmware/test/fat/Makefile')
-rw-r--r-- | firmware/test/fat/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/firmware/test/fat/Makefile b/firmware/test/fat/Makefile index 8b60aba99c..6b253fe16c 100644 --- a/firmware/test/fat/Makefile +++ b/firmware/test/fat/Makefile | |||
@@ -1,18 +1,25 @@ | |||
1 | FIRMWARE = ../.. | ||
1 | DRIVERS = ../../drivers | 2 | DRIVERS = ../../drivers |
2 | 3 | ||
3 | CFLAGS = -g -Wall -DTEST_FAT -I$(DRIVERS) -I. | 4 | CFLAGS = -g -Wall -DTEST_FAT -I$(DRIVERS) -I$(FIRMWARE)/common -I$(FIRMWARE) -I. -DDEBUG -DCRT_DISPLAY |
4 | 5 | ||
5 | TARGET = fat | 6 | TARGET = fat |
6 | 7 | ||
7 | $(TARGET): fat.o ata-sim.o debug.o | 8 | $(TARGET): fat.o ata-sim.o debug.o main.o disk.o |
8 | gcc -g -o fat $+ -lfl | 9 | gcc -g -o fat $+ -lfl |
9 | 10 | ||
10 | fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h | 11 | fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h |
11 | $(CC) $(CFLAGS) -c $< -o $@ | 12 | $(CC) $(CFLAGS) -c $< -o $@ |
12 | 13 | ||
14 | disk.o: $(FIRMWARE)/common/disk.c | ||
15 | $(CC) $(CFLAGS) -c $< -o $@ | ||
16 | |||
17 | debug.o: $(FIRMWARE)/debug.c | ||
18 | $(CC) $(CFLAGS) -c $< -o $@ | ||
19 | |||
13 | ata-sim.o: ata-sim.c $(DRIVERS)/ata.h | 20 | ata-sim.o: ata-sim.c $(DRIVERS)/ata.h |
14 | 21 | ||
15 | debug.o: debug.c debug.h $(DRIVERS)/ata.h | 22 | main.o: main.c $(DRIVERS)/ata.h |
16 | 23 | ||
17 | clean: | 24 | clean: |
18 | rm -f *.o $(TARGET) | 25 | rm -f *.o $(TARGET) |