summaryrefslogtreecommitdiff
path: root/utils/mkrk27boot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/mkrk27boot/Makefile')
-rw-r--r--utils/mkrk27boot/Makefile39
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
10FIRMWARE = ../../firmware/
11
12DRIVERS = $(FIRMWARE)drivers/
13EXPORT = $(FIRMWARE)export/
14
15BUILDDATE=$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
16INCLUDE = -I$(EXPORT) -I$(FIRMWARE)include -I$(FIRMWARE)target/hosted -I$(FIRMWARE)target/hosted/sdl
17DEFINES = -DTEST_FAT -DDISK_WRITE -DHAVE_FAT16SUPPORT -D__PCTOOL__
18
19CFLAGS = -Wall -g -std=gnu99 -Wno-pointer-sign $(DEFINES) -I. $(INCLUDE)
20SIM_FLAGS = $(CFLAGS) $(BUILDDATE) -I$(FIRMWARE)/libc/include
21
22OUTPUT = mkrk27boot
23
24# inputs
25LIBSOURCES := $(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
29SOURCES := $(LIBSOURCES) main.c
30
31include ../libtools.make
32
33SIMOBJS = $(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