diff options
Diffstat (limited to 'utils/mkrk27boot/Makefile')
-rw-r--r-- | utils/mkrk27boot/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/utils/mkrk27boot/Makefile b/utils/mkrk27boot/Makefile new file mode 100644 index 0000000000..cbb7231f66 --- /dev/null +++ b/utils/mkrk27boot/Makefile | |||
@@ -0,0 +1,39 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id$ | ||
8 | # | ||
9 | |||
10 | FIRMWARE = ../../firmware/ | ||
11 | |||
12 | DRIVERS = $(FIRMWARE)drivers/ | ||
13 | EXPORT = $(FIRMWARE)export/ | ||
14 | |||
15 | BUILDDATE=$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d') | ||
16 | INCLUDE = -I$(EXPORT) -I$(FIRMWARE)include -I$(FIRMWARE)target/hosted -I$(FIRMWARE)target/hosted/sdl | ||
17 | DEFINES = -DTEST_FAT -DDISK_WRITE -DHAVE_FAT16SUPPORT -D__PCTOOL__ | ||
18 | |||
19 | CFLAGS = -Wall -g -std=gnu99 -Wno-pointer-sign $(DEFINES) -I. $(INCLUDE) | ||
20 | SIM_FLAGS = $(CFLAGS) $(BUILDDATE) -I$(FIRMWARE)/libc/include | ||
21 | |||
22 | OUTPUT = mkrk27boot | ||
23 | |||
24 | # inputs | ||
25 | LIBSOURCES := $(DRIVERS)fat.c $(FIRMWARE)libc/ctype.c $(FIRMWARE)libc/strtok.c \ | ||
26 | $(FIRMWARE)libc/errno.c $(FIRMWARE)common/strlcpy.c $(FIRMWARE)common/unicode.c \ | ||
27 | $(FIRMWARE)common/file.c $(FIRMWARE)common/dir_uncached.c $(FIRMWARE)common/disk.c ata-sim.c mkrk27boot.c | ||
28 | |||
29 | SOURCES := $(LIBSOURCES) main.c | ||
30 | |||
31 | include ../libtools.make | ||
32 | |||
33 | SIMOBJS = $(addprefix $(OBJDIR),fat.o ctype.o strtok.o errno.o disk.o dir_uncached.o file.o unicode.o strlcpy.o) | ||
34 | |||
35 | $(SIMOBJS): | ||
36 | @echo CC $< | ||
37 | $(SILENT)mkdir -p $(dir $@) | ||
38 | $(SILENT)$(CROSS)$(CC) $(SIM_FLAGS) -c -o $@ $< | ||
39 | |||