2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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
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
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
32 $(SILENT
)mkdir
-p
$(dir $@
)
33 $(SILENT
)$(CROSS
)$(CC
) $(CFLAGS
) -c
-o
$@
$<