blob: 67fe91e51de2631321da20800252e6d8ae4537c0 [file] [log] [blame]
Dominik Riebelingc7c657c2011-09-26 20:51:23 +00001# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
Dave Chapmanc6be8182008-10-04 08:46:03 +00007
Dominik Riebelingea617802009-11-04 20:58:40 +00008# We use the UCL code available in the Rockbox tools/ directory
Dominik Riebelingd16cefc2011-12-15 18:45:05 +00009CFLAGS += -I../../tools/ucl/include -Wall
Dominik Riebelingea617802009-11-04 20:58:40 +000010
Dominik Riebelingd16cefc2011-12-15 18:45:05 +000011OUTPUT = mkamsboot
12LIBUCL = libucl$(RBARCH).a
Dave Chapman1c4bcfa2008-10-11 11:35:59 +000013
Dominik Riebelingea617802009-11-04 20:58:40 +000014# inputs
15LIBSOURCES := dualboot.c md5.c mkamsboot.c
16SOURCES := $(LIBSOURCES) main.c
Dominik Riebelingd16cefc2011-12-15 18:45:05 +000017# additional link dependencies for the standalone executable
Dominik Riebelingea617802009-11-04 20:58:40 +000018EXTRADEPS := $(LIBUCL)
Rafaël Carré96165ab2009-05-28 18:27:08 +000019
Dominik Riebelingd16cefc2011-12-15 18:45:05 +000020include ../libtools.make
Rafaël Carréff6b0422010-05-24 10:06:52 +000021# explicit dependencies on dualboot.{c,h} and mkamsboot.h
22$(OBJDIR)mkamsboot.o: dualboot.h dualboot.c mkamsboot.c mkamsboot.h
23$(OBJDIR)main.o: dualboot.h dualboot.c main.c mkamsboot.h
Rafaël Carré3b53fe02010-02-25 18:08:16 +000024
Dominik Riebeling84205022011-12-16 21:10:29 +000025
26$(TARGET_DIR)$(OUTPUT).dll: EXTRALIBOBJS += $(TARGET_DIR)ucl.dll
27$(TARGET_DIR)$(OUTPUT).dll: $(TARGET_DIR)ucl.dll
28$(TARGET_DIR)ucl.dll:
29 $(SILENT)$(MAKE) -C ../../tools/ucl/src/ \
30 BUILD_DIR=$(BUILD_DIR) CC=$(CC) CROSS=$(CROSS) \
31 TARGET_DIR=$(TARGET_DIR)/ ucl.dll