1 ## ----------------------------------------------------------------------- 2 ## 3 ## Copyright 2008-2009 H. Peter Anvin - All Rights Reserved 4 ## Copyright 2009-2011 Intel Corporation; author: H. Peter Anvin 5 ## 6 ## This program is free software; you can redistribute it and/or modify 7 ## it under the terms of the GNU General Public License as published by 8 ## the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 9 ## Boston MA 02110-1301, USA; either version 2 of the License, or 10 ## (at your option) any later version; incorporated herein by reference. 11 ## 12 ## ----------------------------------------------------------------------- 13 14 # 15 # Makefile for gpxe/gpxelinux.0 16 # 17 # Very simple, really... 18 # 19 20 VPATH = $(SRC) 21 TARGETS = gpxelinux.0 gpxelinuxk.0 22 23 PXEMAKE = $(MAKE) -C $(SRC)/src NO_WERROR=1 24 25 all: $(TARGETS) 26 27 tidy: 28 29 clean: tidy 30 31 dist: 32 $(MAKE) -C $(SRC)/src veryclean > /dev/null 2>&1 33 34 #spotless: clean dist 35 #Including 'dist' errors out for make ARCH=x86_64 spotless 36 spotless: clean 37 rm -f $(TARGETS) 38 39 installer: 40 41 .NOTPARALLEL: 42 43 src/bin/blib.a: 44 $(PXEMAKE) bin/blib.a 45 46 src/bin/undionly.kkpxe: src/bin/blib.a pxelinux.gpxe $(objdir)/core/pxelinux.0 47 $(PXEMAKE) bin/undionly.kkpxe EMBEDDED_IMAGE=$(SRC)/pxelinux.gpxe,$(objdir)/core/pxelinux.0 48 49 gpxelinux.0: src/bin/undionly.kkpxe 50 cp -f $(SRC)/$< $@ 51 52 src/bin/undionly.kpxe: src/bin/blib.a pxelinuxk.gpxe $(objdir)/core/pxelinux.0 53 $(PXEMAKE) bin/undionly.kpxe EMBEDDED_IMAGE=$(SRC)/pxelinuxk.gpxe,$(objdir)/core/pxelinux.0 54 55 gpxelinuxk.0: src/bin/undionly.kpxe 56 cp -f $(SRC)/$< $@ 57