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