Amaury Pouly | 2e0c558 | 2013-10-22 00:48:33 +0200 | [diff] [blame] | 1 | # __________ __ ___. |
| 2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 6 | # \/ \/ \/ \/ \/ |
| 7 | |
| 8 | # We use the HMAC-SHA1 code from tools/ |
| 9 | TOOLS_DIR=../../tools/ |
| 10 | CFLAGS += -Wall -I$(TOOLS_DIR) |
| 11 | CFLAGS += -std=c99 -g |
| 12 | LDOPTS += -lz |
| 13 | |
| 14 | OUTPUT = mkzenboot |
| 15 | |
| 16 | # inputs for lib |
| 17 | TOOLS_SOURCES = hmac-sha1.c |
| 18 | LIBSOURCES := dualboot.c mkzenboot.c md5.c utils.c \ |
| 19 | $(addprefix $(TOOLS_DIR),$(TOOLS_SOURCES)) |
| 20 | |
| 21 | # inputs for binary only |
| 22 | SOURCES := $(LIBSOURCES) main.c |
| 23 | # dependencies for binary |
| 24 | EXTRADEPS := |
| 25 | |
| 26 | include ../libtools.make |
| 27 | |
| 28 | # explicit dependencies on dualboot.{c,h} and mkimxboot.h |
| 29 | $(OBJDIR)mkzenboot.o: dualboot.h dualboot.c mkzenboot.c mkzenboot.h |
| 30 | $(OBJDIR)main.o: dualboot.h dualboot.c main.c mkzenboot.h |