Fat32 test code

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2669 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-10-15 14:36:52 +00:00
parent 016bea8e45
commit eebd237d46
3 changed files with 36 additions and 6 deletions

View file

@ -1,14 +1,22 @@
FIRMWARE = ../..
DRIVERS = ../../drivers
CFLAGS = -g -Wall -DTEST_FAT -I. -I$(DRIVERS) -I$(FIRMWARE)/common -I$(FIRMWARE) -DDEBUG -DCRT_DISPLAY
INCLUDE = -I$(DRIVERS) -I$(FIRMWARE) -I$(FIRMWARE)/common
RINCLUDE = -I$(FIRMWARE)/include
DEFINES = -DTEST_FAT -DDEBUG -DCRT_DISPLAY -DDISK_WRITE
CFLAGS = -g -Wall $(DEFINES) -I. $(INCLUDE) $(RINCLUDE) -DLITTLE_ENDIAN
SIMFLAGS = -g -Wall $(DEFINES) -I. $(INCLUDE)
TARGET = fat
$(TARGET): fat.o ata-sim.o main.o disk.o debug.o dir.o file.o
$(TARGET): fat.o ata-sim.o main.o disk.o debug.o dir.o file.o ctype.o
gcc -g -o fat $+ -lfl
fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h
$(CC) $(CFLAGS) -DSIMULATOR -c $< -o $@
ctype.o: $(FIRMWARE)/common/ctype.c
$(CC) $(CFLAGS) -c $< -o $@
disk.o: $(FIRMWARE)/common/disk.c
@ -21,11 +29,13 @@ file.o: $(FIRMWARE)/common/file.c
$(CC) $(CFLAGS) -c $< -o $@
debug.o: $(FIRMWARE)/debug.c
$(CC) $(CFLAGS) -DSIMULATOR -c $< -o $@
$(CC) $(SIMFLAGS) -DSIMULATOR -c $< -o $@
ata-sim.o: ata-sim.c $(DRIVERS)/ata.h
$(CC) $(SIMFLAGS) -DSIMULATOR -c $< -o $@
main.o: main.c $(DRIVERS)/ata.h
$(CC) $(SIMFLAGS) -c $< -o $@
clean:
rm -f *.o $(TARGET)