Makefile revision 1.6
11.6Smycroft# $NetBSD: Makefile,v 1.6 2003/04/01 21:25:35 mycroft 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.6Smycroft 221.6SmycroftCPPFLAGS+= -DSLOW # for libz 231.1Sthorpej 241.3Sthorpej.if (${BASE} == "pxeboot_ia32") 251.1Sthorpej# Various serial line configurations 261.1SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL 271.1Sthorpej# or 281.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD 291.1Sthorpej# or 301.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 311.1Sthorpej# and maybe 321.1Sthorpej#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 331.3Sthorpej.endif 341.3Sthorpej 351.3Sthorpej.if (${BASE} == "pxeboot_ia32_com0") 361.3SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL 371.3Sthorpej.endif 381.1Sthorpej 391.1SthorpejCPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 401.1SthorpejCPPFLAGS+= -DSUPPORT_TFTP 411.1SthorpejCPPFLAGS+= -DSUPPORT_NFS 421.5Sdrochner#CPPFLAGS+= -DNFS_NOSYMLINK 431.1Sthorpej 441.1SthorpejCPPFLAGS+= -DPASS_MEMMAP 451.1Sthorpej 461.1Sthorpej#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 471.1SthorpejCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 481.1Sthorpej 491.1SthorpejSAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000 501.2SthorpejSAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 511.1Sthorpej 521.1SthorpejI386MISCMAKEFLAGS= I386_INCLUDE_DISK=no 531.1Sthorpej 541.3Sthorpej.if (${BASE} == "pxeboot_ia32") 551.1SthorpejVERSIONFILE= ${.CURDIR}/version 561.3Sthorpej.else 571.3SthorpejVERSIONFILE= ${.CURDIR}/../pxeboot/version 581.3Sthorpej.endif 591.1Sthorpej 601.1Sthorpej.include "../Makefile.booters" 61