Prepare new maemo release
[maemo-rb.git] / rbutil / mkimxboot / Makefile
bloba81b96064970ccfeedeb0ad8aa27485b6f207cdc
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
8 # We use the SB code available in the Rockbox utils/sbtools directory
9 IMXTOOLS_DIR=../../utils/imxtools/sbtools/
10 CFLAGS += -I$(IMXTOOLS_DIR) -Wall
11 CFLAGS += -std=c99 -g -O3
13 OUTPUT = mkimxboot
15 # inputs for lib
16 IMXTOOLS_SOURCES = misc.c sb.c crypto.c crc.c aes128.c sha1.c
17 LIBSOURCES := dualboot.c mkimxboot.c md5.c \
18 $(addprefix $(IMXTOOLS_DIR),$(IMXTOOLS_SOURCES))
19 # inputs for binary only
20 SOURCES := $(LIBSOURCES) main.c
21 # dependencies for binary
22 EXTRADEPS :=
24 include ../libtools.make
26 # explicit dependencies on dualboot.{c,h} and mkimxboot.h
27 $(OBJDIR)mkimxboot.o: dualboot.h dualboot.c mkimxboot.c mkimxboot.h
28 $(OBJDIR)main.o: dualboot.h dualboot.c main.c mkimxboot.h
30 $(OBJDIR)%.o: $(IMXTOOLS_DIR)%.c
31 @echo CC $<
32 $(SILENT)mkdir -p $(dir $@)
33 $(SILENT)$(CROSS)$(CC) $(CFLAGS) -c -o $@ $<