summaryrefslogtreecommitdiffstats
path: root/rbutil/mkrk27boot
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-05-11 20:23:58 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-05-11 20:34:12 +0200
commit071ccc78a9f3a2360d43ad5ca7a931481a206e8a (patch)
tree0ae14a712a245884c79f5d61f2b9054c0d46bb3e /rbutil/mkrk27boot
parente073bc9484445a142522822088302c953bed9496 (diff)
downloadrockbox-071ccc78a9f3a2360d43ad5ca7a931481a206e8a.tar.gz
rockbox-071ccc78a9f3a2360d43ad5ca7a931481a206e8a.tar.bz2
rockbox-071ccc78a9f3a2360d43ad5ca7a931481a206e8a.zip
Update mkrk27boot Makefile for libtools.make changes.
Change-Id: Iebcb3be6024c2fa6ec94a38b8bb1cb0c7274eb85
Diffstat (limited to 'rbutil/mkrk27boot')
-rw-r--r--rbutil/mkrk27boot/Makefile50
1 files changed, 6 insertions, 44 deletions
diff --git a/rbutil/mkrk27boot/Makefile b/rbutil/mkrk27boot/Makefile
index fa215b1bde..cbb7231f66 100644
--- a/rbutil/mkrk27boot/Makefile
+++ b/rbutil/mkrk27boot/Makefile
@@ -16,62 +16,24 @@ BUILDDATE=$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
INCLUDE = -I$(EXPORT) -I$(FIRMWARE)include -I$(FIRMWARE)target/hosted -I$(FIRMWARE)target/hosted/sdl
DEFINES = -DTEST_FAT -DDISK_WRITE -DHAVE_FAT16SUPPORT -D__PCTOOL__
-SIM_FLAGS = -Wall -g -std=gnu99 -Wno-pointer-sign $(DEFINES) $(BUILDDATE) -I. $(INCLUDE) -I$(FIRMWARE)/libc/include
-FLAGS = -Wall -g -std=gnu99 -Wno-pointer-sign $(DEFINES) -I. $(INCLUDE)
+CFLAGS = -Wall -g -std=gnu99 -Wno-pointer-sign $(DEFINES) -I. $(INCLUDE)
+SIM_FLAGS = $(CFLAGS) $(BUILDDATE) -I$(FIRMWARE)/libc/include
OUTPUT = mkrk27boot
-
# inputs
LIBSOURCES := $(DRIVERS)fat.c $(FIRMWARE)libc/ctype.c $(FIRMWARE)libc/strtok.c \
- $(FIRWARE)libc/errno.c $(FIRMWARE)common/strlcpy.c $(FIRMWARE)common/unicode.c \
+ $(FIRMWARE)libc/errno.c $(FIRMWARE)common/strlcpy.c $(FIRMWARE)common/unicode.c \
$(FIRMWARE)common/file.c $(FIRMWARE)common/dir_uncached.c $(FIRMWARE)common/disk.c ata-sim.c mkrk27boot.c
SOURCES := $(LIBSOURCES) main.c
include ../libtools.make
-define sim_compile
- @echo CC $<
- $(SILENT)mkdir -p $(dir $@)
- $(SILENT)$(CROSS)$(CC) $(SIM_FLAGS) -c -o $@ $<
-endef
+SIMOBJS = $(addprefix $(OBJDIR),fat.o ctype.o strtok.o errno.o disk.o dir_uncached.o file.o unicode.o strlcpy.o)
-define compile
+$(SIMOBJS):
@echo CC $<
$(SILENT)mkdir -p $(dir $@)
- $(SILENT)$(CROSS)$(CC) $(FLAGS) -c -o $@ $<
-endef
-
-$(OBJDIR)fat.o: $(DRIVERS)fat.c $(EXPORT)fat.h $(EXPORT)ata.h autoconf.h
- $(sim_compile)
-
-$(OBJDIR)ctype.o: $(FIRMWARE)libc/ctype.c autoconf.h
- $(sim_compile)
-
-$(OBJDIR)strtok.o: $(FIRMWARE)libc/strtok.c $(FIRMWARE)libc/include/string.h autoconf.h
- $(sim_compile)
-
-$(OBJDIR)errno.o: $(FIRMWARE)libc/errno.c $(FIRMWARE)libc/include/errno.h autoconf.h
- $(sim_compile)
-
-$(OBJDIR)disk.o: $(FIRMWARE)common/disk.c autoconf.h
- $(sim_compile)
-
-$(OBJDIR)dir_uncached.o: $(FIRMWARE)common/dir_uncached.c autoconf.h
- $(sim_compile)
-
-$(OBJDIR)file.o: $(FIRMWARE)common/file.c $(FIRMWARE)/include/file.h autoconf.h
- $(sim_compile)
-
-$(OBJDIR)unicode.o: $(FIRMWARE)common/unicode.c autoconf.h
- $(sim_compile)
-
-$(OBJDIR)strlcpy.o: $(FIRMWARE)common/strlcpy.c autoconf.h
- $(sim_compile)
-
-$(OBJDIR)ata-sim.o: ata-sim.c $(EXPORT)ata.h autoconf.h
- $(compile)
+ $(SILENT)$(CROSS)$(CC) $(SIM_FLAGS) -c -o $@ $<
-$(OBJDIR)mkrk27boot.o: mkrk27boot.c mkrk27boot.h autoconf.h
- $(compile)