summaryrefslogtreecommitdiff
path: root/firmware/test/fat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/test/fat/Makefile')
-rw-r--r--firmware/test/fat/Makefile13
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 @@
1FIRMWARE = ../..
1DRIVERS = ../../drivers 2DRIVERS = ../../drivers
2 3
3CFLAGS = -g -Wall -DTEST_FAT -I$(DRIVERS) -I. 4CFLAGS = -g -Wall -DTEST_FAT -I$(DRIVERS) -I$(FIRMWARE)/common -I$(FIRMWARE) -I. -DDEBUG -DCRT_DISPLAY
4 5
5TARGET = fat 6TARGET = 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
10fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h 11fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h
11 $(CC) $(CFLAGS) -c $< -o $@ 12 $(CC) $(CFLAGS) -c $< -o $@
12 13
14disk.o: $(FIRMWARE)/common/disk.c
15 $(CC) $(CFLAGS) -c $< -o $@
16
17debug.o: $(FIRMWARE)/debug.c
18 $(CC) $(CFLAGS) -c $< -o $@
19
13ata-sim.o: ata-sim.c $(DRIVERS)/ata.h 20ata-sim.o: ata-sim.c $(DRIVERS)/ata.h
14 21
15debug.o: debug.c debug.h $(DRIVERS)/ata.h 22main.o: main.c $(DRIVERS)/ata.h
16 23
17clean: 24clean:
18 rm -f *.o $(TARGET) 25 rm -f *.o $(TARGET)