3a5eaa8fa9
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29456 a1c6a512-1295-4272-9138-f99709370657
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
FIRMWARE = ../..
|
|
|
|
export BUILDDATE=$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
|
|
export CPU=arm
|
|
export TARGET=-DIPOD_VIDEO
|
|
export TARGET_INC=-I$(FIRMWARE)/target/arm/ipod/video -I$(FIRMWARE)/target/arm/ipod -I$(FIRMWARE)/target/arm
|
|
|
|
DRIVERS = ../../drivers
|
|
EXPORT = ../../export
|
|
|
|
INCLUDE = -I$(EXPORT) -I$(FIRMWARE)/include
|
|
|
|
DEFINES = -DTEST_FAT -DDEBUG -DCRT_DISPLAY -DDISK_WRITE -DHAVE_FAT16SUPPORT -D__PCTOOL__
|
|
|
|
CFLAGS = -g -Wall -std=gnu99 -Wno-pointer-sign $(DEFINES) -I. $(INCLUDE) $(BUILDDATE) -I$(FIRMWARE)/libc/include
|
|
SIMFLAGS = -g -Wall -std=gnu99 -Wno-pointer-sign $(DEFINES) -I. $(INCLUDE)
|
|
|
|
TARGET = fat
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): fat.o ata-sim.o main.o disk.o dir.o file.o ctype.o unicode.o strlcpy.o
|
|
gcc -g -o fat $+ -lfl
|
|
|
|
fat.o: $(DRIVERS)/fat.c $(EXPORT)/fat.h $(EXPORT)/ata.h
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
ctype.o: $(FIRMWARE)/libc/ctype.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
disk.o: $(FIRMWARE)/common/disk.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
dir.o: $(FIRMWARE)/common/dir_uncached.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
file.o: $(FIRMWARE)/common/file.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
unicode.o: $(FIRMWARE)/common/unicode.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
strlcpy.o: $(FIRMWARE)/common/strlcpy.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
ata-sim.o: ata-sim.c $(EXPORT)/ata.h
|
|
$(CC) $(SIMFLAGS) -c $< -o $@
|
|
|
|
main.o: main.c $(EXPORT)/ata.h
|
|
$(CC) $(SIMFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f *.o $(TARGET)
|