diff options
Diffstat (limited to 'firmware/test/fat/Makefile')
-rw-r--r-- | firmware/test/fat/Makefile | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/firmware/test/fat/Makefile b/firmware/test/fat/Makefile deleted file mode 100644 index 38bce0bde1..0000000000 --- a/firmware/test/fat/Makefile +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | SECTOR_SIZE = 512 | ||
2 | FIRMWARE = ../.. | ||
3 | |||
4 | DRIVERS = ../../drivers | ||
5 | EXPORT = ../../export | ||
6 | |||
7 | BUILDDATE=$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d') | ||
8 | INCLUDE = -I$(EXPORT) -I$(FIRMWARE)/include -I$(FIRMWARE)/target/hosted -I$(FIRMWARE)/target/hosted/sdl | ||
9 | DEFINES = -DTEST_FAT -DDEBUG -DDISK_WRITE -DHAVE_FAT16SUPPORT -D__PCTOOL__ | ||
10 | |||
11 | CFLAGS = -g -Wall -std=gnu99 -Wno-pointer-sign $(DEFINES) $(BUILDDATE) -I. $(INCLUDE) -I$(FIRMWARE)/libc/include -DROCKBOX_DIR='".rockbox"' -DSECTOR_SIZE=$(SECTOR_SIZE) | ||
12 | SIMFLAGS = -g -Wall -std=gnu99 -Wno-pointer-sign $(DEFINES) -I. $(INCLUDE) -DSECTOR_SIZE=$(SECTOR_SIZE) | ||
13 | |||
14 | TARGET = fat | ||
15 | |||
16 | all: $(TARGET) | ||
17 | |||
18 | $(TARGET): fat.o ata-sim.o main.o disk.o dir.o file.o ctype.o unicode.o strlcpy.o | ||
19 | gcc -g -o fat $+ | ||
20 | |||
21 | fat.o: $(DRIVERS)/fat.c $(EXPORT)/fat.h $(EXPORT)/ata.h | ||
22 | $(CC) $(CFLAGS) -c $< -o $@ | ||
23 | |||
24 | ctype.o: $(FIRMWARE)/libc/ctype.c | ||
25 | $(CC) $(CFLAGS) -c $< -o $@ | ||
26 | |||
27 | disk.o: $(FIRMWARE)/common/disk.c | ||
28 | $(CC) $(CFLAGS) -c $< -o $@ | ||
29 | |||
30 | dir.o: $(FIRMWARE)/common/dir_uncached.c | ||
31 | $(CC) $(CFLAGS) -c $< -o $@ | ||
32 | |||
33 | file.o: $(FIRMWARE)/common/file.c | ||
34 | $(CC) $(CFLAGS) -c $< -o $@ | ||
35 | |||
36 | unicode.o: $(FIRMWARE)/common/unicode.c | ||
37 | $(CC) $(CFLAGS) -c $< -o $@ | ||
38 | |||
39 | strlcpy.o: $(FIRMWARE)/common/strlcpy.c | ||
40 | $(CC) $(CFLAGS) -c $< -o $@ | ||
41 | |||
42 | ata-sim.o: ata-sim.c $(EXPORT)/ata.h | ||
43 | $(CC) $(SIMFLAGS) -c $< -o $@ | ||
44 | |||
45 | main.o: main.c $(EXPORT)/ata.h | ||
46 | $(CC) $(SIMFLAGS) -c $< -o $@ | ||
47 | |||
48 | clean: | ||
49 | rm -f *.o $(TARGET) | ||