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