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