Makefile revision 1.8
11.8Schs# $NetBSD: Makefile,v 1.8 2005/08/21 23:04:30 chs 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.8Schs.if ${MACHINE} == "amd64" 231.8SchsLD+= -m elf_i386 241.8SchsAFLAGS+= -m32 251.8SchsCPUFLAGS= -m32 261.8SchsLIBKERN_ARCH=i386 271.8SchsKERNMISCMAKEFLAGS="LIBKERN_ARCH=i386" 281.8SchsCPPFLAGS+= -DBOOT_ELF64 291.8Schs.else 301.8SchsCPUFLAGS= -mcpu=i386 311.8Schs.endif 321.8Schs 331.6SmycroftCPPFLAGS+= -DSLOW # for libz 341.1Sthorpej 351.3Sthorpej.if (${BASE} == "pxeboot_ia32") 361.1Sthorpej# Various serial line configurations 371.1SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL 381.1Sthorpej# or 391.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD 401.1Sthorpej# or 411.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 421.1Sthorpej# and maybe 431.1Sthorpej#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 441.3Sthorpej.endif 451.3Sthorpej 461.3Sthorpej.if (${BASE} == "pxeboot_ia32_com0") 471.3SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL 481.3Sthorpej.endif 491.1Sthorpej 501.1SthorpejCPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 511.1SthorpejCPPFLAGS+= -DSUPPORT_TFTP 521.1SthorpejCPPFLAGS+= -DSUPPORT_NFS 531.5Sdrochner#CPPFLAGS+= -DNFS_NOSYMLINK 541.1Sthorpej 551.1SthorpejCPPFLAGS+= -DPASS_MEMMAP 561.1Sthorpej 571.1Sthorpej#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 581.1SthorpejCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 591.1Sthorpej 601.1SthorpejSAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000 611.2SthorpejSAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 621.1Sthorpej 631.7SdbjCPPFLAGS+= -DPASS_BIOSGEOM 641.7Sdbj# if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no 651.7Sdbj#I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no 661.1Sthorpej 671.3Sthorpej.if (${BASE} == "pxeboot_ia32") 681.1SthorpejVERSIONFILE= ${.CURDIR}/version 691.3Sthorpej.else 701.3SthorpejVERSIONFILE= ${.CURDIR}/../pxeboot/version 711.3Sthorpej.endif 721.1Sthorpej 731.1Sthorpej.include "../Makefile.booters" 74