blob: af4c825796d91aa22d7064d6d3e8800944f2bc10 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001
2all: lkboot mkimage
3
4LKBOOT_SRCS := lkboot.c liblkboot.c network.c
5LKBOOT_DEPS := network.h liblkboot.h ../app/lkboot/lkboot_protocol.h
6LKBOOT_INCS :=
7lkboot: $(LKBOOT_SRCS) $(LKBOOT_DEPS)
8 gcc -Wall -o $@ $(LKBOOT_INCS) $(LKBOOT_SRCS)
9
10MKIMAGE_DEPS := bootimage.h ../lib/bootimage/include/lib/bootimage_struct.h
11MKIMAGE_SRCS := mkimage.c bootimage.c ../lib/mincrypt/sha256.c
12MKIMAGE_INCS := -I../lib/mincrypt/include -I../lib/bootimage/include
13mkimage: $(MKIMAGE_SRCS) $(MKIMAGE_DEPS)
14 gcc -Wall -g -o $@ $(MKIMAGE_INCS) $(MKIMAGE_SRCS)
15
16clean::
17 rm -f lkboot mkimage