2011-11-06 19:44:03 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
|
|
|
|
# We use the SB code available in the Rockbox utils/sbtools directory
|
|
|
|
IMXTOOLS_DIR=../../utils/imxtools/
|
2012-01-02 16:59:26 +00:00
|
|
|
CFLAGS += -I$(IMXTOOLS_DIR) -Wall
|
2011-11-06 19:44:03 +00:00
|
|
|
CFLAGS += -std=c99
|
|
|
|
|
2011-12-14 22:00:47 +00:00
|
|
|
OUTPUT = mkimxboot
|
2011-11-06 19:44:03 +00:00
|
|
|
|
2011-12-14 22:00:47 +00:00
|
|
|
# inputs for lib
|
|
|
|
IMXTOOLS_SOURCES = misc.c sb.c crypto.c crc.c aes128.c sha1.c
|
|
|
|
LIBSOURCES := dualboot.c mkimxboot.c md5.c \
|
|
|
|
$(addprefix $(IMXTOOLS_DIR),$(IMXTOOLS_SOURCES))
|
|
|
|
# inputs for binary only
|
2011-11-06 19:44:03 +00:00
|
|
|
SOURCES := $(LIBSOURCES) main.c
|
2011-12-14 22:00:47 +00:00
|
|
|
# dependencies for binary
|
|
|
|
EXTRADEPS :=
|
|
|
|
|
|
|
|
include ../libtools.make
|
2011-11-06 19:44:03 +00:00
|
|
|
|
|
|
|
# explicit dependencies on dualboot.{c,h} and mkimxboot.h
|
|
|
|
$(OBJDIR)mkimxboot.o: dualboot.h dualboot.c mkimxboot.c mkimxboot.h
|
|
|
|
$(OBJDIR)main.o: dualboot.h dualboot.c main.c mkimxboot.h
|
|
|
|
|
|
|
|
$(OBJDIR)%.o: $(IMXTOOLS_DIR)%.c
|
|
|
|
@echo CC $<
|
|
|
|
$(SILENT)mkdir -p $(dir $@)
|
2011-12-14 22:00:47 +00:00
|
|
|
$(SILENT)$(CROSS)$(CC) $(CFLAGS) -c -o $@ $<
|