Makefile revision 1.5
1#	$NetBSD: Makefile,v 1.5 2003/03/11 15:01:51 drochner Exp $
2
3S=	${.CURDIR}/../../../../
4
5BASE?= pxeboot_ia32
6PROG= ${BASE}.bin
7NOMAN=	# defined
8NEWVERSWHAT=	"PXE Boot"
9STARTFILE=	${PXESTART}
10RELOC=		0x0
11
12.if (${BASE} != "pxeboot_ia32")
13.PATH.c: ${.CURDIR}/../pxeboot
14.PATH.S: ${.CURDIR}/../pxeboot
15.endif
16
17SRCS= main.c dev_net.c devopen.c conf.c exec.c pxe.c pxe_call.S
18# use our own nfs implementation
19.PATH: ${.CURDIR}/../libsa
20SRCS+= nfs.c
21
22.if (${BASE} == "pxeboot_ia32")
23# Various serial line configurations
24CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL
25#	or
26#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD
27#	or
28#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 
29#	and maybe 
30#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600
31.endif
32
33.if (${BASE} == "pxeboot_ia32_com0")
34CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL
35.endif
36
37CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
38CPPFLAGS+= -DSUPPORT_TFTP
39CPPFLAGS+= -DSUPPORT_NFS
40#CPPFLAGS+= -DNFS_NOSYMLINK
41
42CPPFLAGS+= -DPASS_MEMMAP
43
44#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
45CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
46
47SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000
48SAMISCMAKEFLAGS+= SA_USE_CREAD=yes	# Read compressed kernels
49
50I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no
51
52.if (${BASE} == "pxeboot_ia32")
53VERSIONFILE= ${.CURDIR}/version
54.else
55VERSIONFILE= ${.CURDIR}/../pxeboot/version
56.endif
57
58.include "../Makefile.booters"
59