2011-09-26 20:51:23 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
2008-10-04 08:46:03 +00:00
|
|
|
|
2009-11-04 20:58:40 +00:00
|
|
|
# We use the UCL code available in the Rockbox tools/ directory
|
2011-12-15 18:45:05 +00:00
|
|
|
CFLAGS += -I../../tools/ucl/include -Wall
|
2009-11-04 20:58:40 +00:00
|
|
|
|
2011-12-15 18:45:05 +00:00
|
|
|
OUTPUT = mkamsboot
|
|
|
|
LIBUCL = libucl$(RBARCH).a
|
2008-10-28 11:24:24 +00:00
|
|
|
|
2009-11-04 20:58:40 +00:00
|
|
|
# inputs
|
|
|
|
LIBSOURCES := dualboot.c md5.c mkamsboot.c
|
|
|
|
SOURCES := $(LIBSOURCES) main.c
|
2011-12-15 18:45:05 +00:00
|
|
|
# additional link dependencies for the standalone executable
|
2009-11-04 20:58:40 +00:00
|
|
|
EXTRADEPS := $(LIBUCL)
|
2009-08-15 13:54:13 +00:00
|
|
|
|
2011-12-15 18:45:05 +00:00
|
|
|
include ../libtools.make
|
2010-05-24 10:06:52 +00:00
|
|
|
# explicit dependencies on dualboot.{c,h} and mkamsboot.h
|
|
|
|
$(OBJDIR)mkamsboot.o: dualboot.h dualboot.c mkamsboot.c mkamsboot.h
|
|
|
|
$(OBJDIR)main.o: dualboot.h dualboot.c main.c mkamsboot.h
|
2010-02-25 18:08:16 +00:00
|
|
|
|
2011-12-16 21:10:29 +00:00
|
|
|
|
|
|
|
$(TARGET_DIR)$(OUTPUT).dll: EXTRALIBOBJS += $(TARGET_DIR)ucl.dll
|
|
|
|
$(TARGET_DIR)$(OUTPUT).dll: $(TARGET_DIR)ucl.dll
|
|
|
|
$(TARGET_DIR)ucl.dll:
|
|
|
|
$(SILENT)$(MAKE) -C ../../tools/ucl/src/ \
|
|
|
|
BUILD_DIR=$(BUILD_DIR) CC=$(CC) CROSS=$(CROSS) \
|
|
|
|
TARGET_DIR=$(TARGET_DIR)/ ucl.dll
|