From c7f7934e8f74be4b98abe83c2f6a2593fd294cf0 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Fri, 3 May 2002 11:59:53 +0000 Subject: Added disk/partition handling git-svn-id: svn://svn.rockbox.org/rockbox/trunk@405 a1c6a512-1295-4272-9138-f99709370657 --- firmware/test/fat/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'firmware/test/fat/Makefile') 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 @@ +FIRMWARE = ../.. DRIVERS = ../../drivers -CFLAGS = -g -Wall -DTEST_FAT -I$(DRIVERS) -I. +CFLAGS = -g -Wall -DTEST_FAT -I$(DRIVERS) -I$(FIRMWARE)/common -I$(FIRMWARE) -I. -DDEBUG -DCRT_DISPLAY TARGET = fat -$(TARGET): fat.o ata-sim.o debug.o +$(TARGET): fat.o ata-sim.o debug.o main.o disk.o gcc -g -o fat $+ -lfl fat.o: $(DRIVERS)/fat.c $(DRIVERS)/fat.h $(DRIVERS)/ata.h $(CC) $(CFLAGS) -c $< -o $@ +disk.o: $(FIRMWARE)/common/disk.c + $(CC) $(CFLAGS) -c $< -o $@ + +debug.o: $(FIRMWARE)/debug.c + $(CC) $(CFLAGS) -c $< -o $@ + ata-sim.o: ata-sim.c $(DRIVERS)/ata.h -debug.o: debug.c debug.h $(DRIVERS)/ata.h +main.o: main.c $(DRIVERS)/ata.h clean: rm -f *.o $(TARGET) -- cgit v1.2.3