Makefile revision 1.5
11.5Sdrochner# $NetBSD: Makefile,v 1.5 2003/03/11 15:01:51 drochner Exp $ 21.1Sthorpej 31.1SthorpejS= ${.CURDIR}/../../../../ 41.1Sthorpej 51.3SthorpejBASE?= pxeboot_ia32 61.2SthorpejPROG= ${BASE}.bin 71.4SlukemNOMAN= # defined 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.5Sdrochner# use our own nfs implementation 191.5Sdrochner.PATH: ${.CURDIR}/../libsa 201.5SdrochnerSRCS+= nfs.c 211.1Sthorpej 221.3Sthorpej.if (${BASE} == "pxeboot_ia32") 231.1Sthorpej# Various serial line configurations 241.1SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL 251.1Sthorpej# or 261.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD 271.1Sthorpej# or 281.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 291.1Sthorpej# and maybe 301.1Sthorpej#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 311.3Sthorpej.endif 321.3Sthorpej 331.3Sthorpej.if (${BASE} == "pxeboot_ia32_com0") 341.3SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL 351.3Sthorpej.endif 361.1Sthorpej 371.1SthorpejCPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 381.1SthorpejCPPFLAGS+= -DSUPPORT_TFTP 391.1SthorpejCPPFLAGS+= -DSUPPORT_NFS 401.5Sdrochner#CPPFLAGS+= -DNFS_NOSYMLINK 411.1Sthorpej 421.1SthorpejCPPFLAGS+= -DPASS_MEMMAP 431.1Sthorpej 441.1Sthorpej#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 451.1SthorpejCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 461.1Sthorpej 471.1SthorpejSAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000 481.2SthorpejSAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 491.1Sthorpej 501.1SthorpejI386MISCMAKEFLAGS= I386_INCLUDE_DISK=no 511.1Sthorpej 521.3Sthorpej.if (${BASE} == "pxeboot_ia32") 531.1SthorpejVERSIONFILE= ${.CURDIR}/version 541.3Sthorpej.else 551.3SthorpejVERSIONFILE= ${.CURDIR}/../pxeboot/version 561.3Sthorpej.endif 571.1Sthorpej 581.1Sthorpej.include "../Makefile.booters" 59