Dominik Riebeling | c7c657c | 2011-09-26 20:51:23 +0000 | [diff] [blame] | 1 | # __________ __ ___. |
| 2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 6 | # \/ \/ \/ \/ \/ |
Dave Chapman | c6be818 | 2008-10-04 08:46:03 +0000 | [diff] [blame] | 7 | |
Dominik Riebeling | ea61780 | 2009-11-04 20:58:40 +0000 | [diff] [blame] | 8 | # We use the UCL code available in the Rockbox tools/ directory |
Dominik Riebeling | d16cefc | 2011-12-15 18:45:05 +0000 | [diff] [blame] | 9 | CFLAGS += -I../../tools/ucl/include -Wall |
Dominik Riebeling | ea61780 | 2009-11-04 20:58:40 +0000 | [diff] [blame] | 10 | |
Dominik Riebeling | d16cefc | 2011-12-15 18:45:05 +0000 | [diff] [blame] | 11 | OUTPUT = mkamsboot |
| 12 | LIBUCL = libucl$(RBARCH).a |
Dave Chapman | 1c4bcfa | 2008-10-11 11:35:59 +0000 | [diff] [blame] | 13 | |
Dominik Riebeling | ea61780 | 2009-11-04 20:58:40 +0000 | [diff] [blame] | 14 | # inputs |
| 15 | LIBSOURCES := dualboot.c md5.c mkamsboot.c |
| 16 | SOURCES := $(LIBSOURCES) main.c |
Dominik Riebeling | d16cefc | 2011-12-15 18:45:05 +0000 | [diff] [blame] | 17 | # additional link dependencies for the standalone executable |
Dominik Riebeling | ea61780 | 2009-11-04 20:58:40 +0000 | [diff] [blame] | 18 | EXTRADEPS := $(LIBUCL) |
Rafaël Carré | 96165ab | 2009-05-28 18:27:08 +0000 | [diff] [blame] | 19 | |
Dominik Riebeling | d16cefc | 2011-12-15 18:45:05 +0000 | [diff] [blame] | 20 | include ../libtools.make |
Rafaël Carré | ff6b042 | 2010-05-24 10:06:52 +0000 | [diff] [blame] | 21 | # 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é | 3b53fe0 | 2010-02-25 18:08:16 +0000 | [diff] [blame] | 24 | |
Dominik Riebeling | 8420502 | 2011-12-16 21:10:29 +0000 | [diff] [blame] | 25 | |
| 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 |