Makefile revision 1.3
11.3Sthorpej#	$NetBSD: Makefile,v 1.3 2002/02/20 03:00:27 thorpej Exp $
21.1Sthorpej
31.1SthorpejS=	${.CURDIR}/../../../../
41.1Sthorpej
51.3SthorpejBASE?= pxeboot_ia32
61.2SthorpejPROG= ${BASE}.bin
71.1SthorpejMKMAN=	no
81.1SthorpejNEWVERSWHAT=	"PXE Boot"
91.2SthorpejSTARTFILE=	${PXESTART}
101.2SthorpejRELOC=		0x0
111.1Sthorpej
121.3Sthorpej.if (${BASE} != "pxeboot_ia32")
131.3Sthorpej.PATH.c: ${.CURDIR}/../pxeboot
141.3Sthorpej.PATH.S: ${.CURDIR}/../pxeboot
151.3Sthorpej.endif
161.1Sthorpej
171.1SthorpejSRCS= main.c dev_net.c devopen.c conf.c exec.c pxe.c pxe_call.S
181.1Sthorpej
191.3Sthorpej.if (${BASE} == "pxeboot_ia32")
201.1Sthorpej# Various serial line configurations
211.1SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL
221.1Sthorpej#	or
231.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD
241.1Sthorpej#	or
251.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 
261.1Sthorpej#	and maybe 
271.1Sthorpej#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600
281.3Sthorpej.endif
291.3Sthorpej
301.3Sthorpej.if (${BASE} == "pxeboot_ia32_com0")
311.3SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL
321.3Sthorpej.endif
331.1Sthorpej
341.1SthorpejCPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
351.1SthorpejCPPFLAGS+= -DSUPPORT_TFTP
361.1SthorpejCPPFLAGS+= -DSUPPORT_NFS
371.1Sthorpej
381.1SthorpejCPPFLAGS+= -DPASS_MEMMAP
391.1Sthorpej
401.1Sthorpej#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
411.1SthorpejCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
421.1Sthorpej
431.1SthorpejSAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000
441.2SthorpejSAMISCMAKEFLAGS+= SA_USE_CREAD=yes	# Read compressed kernels
451.1Sthorpej
461.1SthorpejI386MISCMAKEFLAGS= I386_INCLUDE_DISK=no
471.1Sthorpej
481.3Sthorpej.if (${BASE} == "pxeboot_ia32")
491.1SthorpejVERSIONFILE= ${.CURDIR}/version
501.3Sthorpej.else
511.3SthorpejVERSIONFILE= ${.CURDIR}/../pxeboot/version
521.3Sthorpej.endif
531.1Sthorpej
541.1Sthorpej.include "../Makefile.booters"
55