The threading model should be set from configure, not config.h.
[maemo-rb.git] / rbutil / mkamsboot / Makefile
blob67fe91e51de2631321da20800252e6d8ae4537c0
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
8 # We use the UCL code available in the Rockbox tools/ directory
9 CFLAGS += -I../../tools/ucl/include -Wall
11 OUTPUT = mkamsboot
12 LIBUCL = libucl$(RBARCH).a
14 # inputs
15 LIBSOURCES := dualboot.c md5.c mkamsboot.c
16 SOURCES := $(LIBSOURCES) main.c
17 # additional link dependencies for the standalone executable
18 EXTRADEPS := $(LIBUCL)
20 include ../libtools.make
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
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