]>
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 | ||
b941c3dd | 12 | .PHONY: all |
6c2c5968 MT |
13 | all: $(TARGETS) |
14 | ||
15 | clean: | |
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/$@ $@ |