Files
lk/tools/Makefile
Travis Geiselbrecht f963a62468 [tools] remove the CDECL stuff from tools/ since they can't safely include compiler.h
Change-Id: I304d64e9957c0c264d5031f0ffc77e6995417bf4
2015-06-29 17:28:04 -07:00

18 lines
570 B
Makefile

all: lkboot mkimage
LKBOOT_SRCS := lkboot.c liblkboot.c network.c
LKBOOT_DEPS := network.h liblkboot.h ../app/lkboot/lkboot_protocol.h
LKBOOT_INCS :=
lkboot: $(LKBOOT_SRCS) $(LKBOOT_DEPS)
gcc -Wall -o $@ $(LKBOOT_INCS) $(LKBOOT_SRCS)
MKIMAGE_DEPS := bootimage.h ../lib/bootimage/include/lib/bootimage_struct.h
MKIMAGE_SRCS := mkimage.c bootimage.c ../lib/mincrypt/sha256.c
MKIMAGE_INCS := -I../lib/mincrypt/include -I../lib/bootimage/include
mkimage: $(MKIMAGE_SRCS) $(MKIMAGE_DEPS)
gcc -Wall -g -o $@ $(MKIMAGE_INCS) $(MKIMAGE_SRCS)
clean::
rm -f lkboot mkimage