summaryrefslogtreecommitdiff
path: root/gpxe/Makefile
blob: 73ee261f702b5e0647d40edbe62ef804901093d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
## -----------------------------------------------------------------------
##   
##   Copyright 2008-2009 H. Peter Anvin - All Rights Reserved
##   Copyright 2009-2011 Intel Corporation; author: H. Peter Anvin
##
##   This program is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License as published by
##   the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
##   Boston MA 02110-1301, USA; either version 2 of the License, or
##   (at your option) any later version; incorporated herein by reference.
##
## -----------------------------------------------------------------------

#
# Makefile for gpxe/gpxelinux.0
#
# Very simple, really...
#

VPATH = $(SRC)
TARGETS	= gpxelinux.0 gpxelinuxk.0

PXEMAKE = $(MAKE) -C $(SRC)/src NO_WERROR=1

all: $(TARGETS)

tidy:

clean: tidy

dist:
	$(MAKE) -C $(SRC)/src veryclean > /dev/null 2>&1

spotless: clean dist
	rm -f $(TARGETS)

installer:

.NOTPARALLEL:

src/bin/blib.a:
	$(PXEMAKE) bin/blib.a

src/bin/undionly.kkpxe: src/bin/blib.a pxelinux.gpxe $(objdir)/core/pxelinux.0
	$(PXEMAKE) bin/undionly.kkpxe EMBEDDED_IMAGE=$(SRC)/pxelinux.gpxe,$(objdir)/core/pxelinux.0

gpxelinux.0: src/bin/undionly.kkpxe
	cp -f $(SRC)/$< $@

src/bin/undionly.kpxe: src/bin/blib.a pxelinuxk.gpxe $(objdir)/core/pxelinux.0
	$(PXEMAKE) bin/undionly.kpxe EMBEDDED_IMAGE=$(SRC)/pxelinuxk.gpxe,$(objdir)/core/pxelinux.0

gpxelinuxk.0: src/bin/undionly.kpxe
	cp -f $(SRC)/$< $@