]> git.ipfire.org Git - oddments/ipfire-netboot.git/blame - Makefile
Update to the latest version of iPXE
[oddments/ipfire-netboot.git] / Makefile
CommitLineData
65b36ef7 1
37ab6e11 2SCRIPTS = $(CURDIR)/ipfireboot.ipxe
cf0b5a83 3MACHINE = $(shell uname -m)
65b36ef7 4
37ab6e11
MT
5TARGETS = bin/ipxe.iso bin/ipxe.kpxe bin/undionly.kpxe bin/ipxe.dsk \
6 bin/ipxe.usb bin/ipxe.lkrn
6c2c5968 7
cf0b5a83
MT
8ifeq "$(MACHINE)" "x86_64"
9 TARGETS += bin-x86_64-efi/ipxe.efi
10endif
11
b941c3dd 12.PHONY: all
6c2c5968
MT
13all: $(TARGETS)
14
15clean:
16 rm -rfv $(TARGETS)
37ab6e11 17 make -C ipxe/src clean veryclean
6c2c5968
MT
18
19$(TARGETS):
cc25416a 20 # Copy our configuration to the gPXE submodule
37ab6e11 21 cp -vf config/* ipxe/src/config/local/
cc25416a
MT
22
23 # Build the image
37ab6e11
MT
24 make -C ipxe/src EMBED=$(SCRIPTS) NO_WERROR=1 \
25 ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin $@
cc25416a
MT
26
27 # Copy the image to bin/
6c2c5968 28 -mkdir -pv $$(dirname $@)
37ab6e11 29 cp -vf ipxe/src/$@ $@