Makefile revision 1.10
11.10Smrg# $NetBSD: Makefile,v 1.10 2006/05/12 01:23:51 mrg 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.10Smrg.include <bsd.own.mk> 231.10Smrg 241.8Schs.if ${MACHINE} == "amd64" 251.8SchsLD+= -m elf_i386 261.8SchsAFLAGS+= -m32 271.8SchsLIBKERN_ARCH=i386 281.8SchsKERNMISCMAKEFLAGS="LIBKERN_ARCH=i386" 291.8Schs.endif 301.8Schs 311.6SmycroftCPPFLAGS+= -DSLOW # for libz 321.1Sthorpej 331.3Sthorpej.if (${BASE} == "pxeboot_ia32") 341.9Sdsl# Take config values from patchable header 351.9SdslCPPFLAGS+= -DSUPPORT_SERIAL=boot_params.bp_consdev 361.9SdslCPPFLAGS+= -DCONSPEED=boot_params.bp_conspeed 371.9SdslCPPFLAGS+= -DCONSADDR=boot_params.bp_consaddr 381.9SdslCPPFLAGS+= -DCONSOLE_KEYMAP=boot_params.bp_keymap 391.9SdslCPPFLAGS+= -DDIRECT_SERIAL 401.1Sthorpej# Various serial line configurations 411.9Sdsl#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL 421.1Sthorpej# or 431.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD 441.1Sthorpej# or 451.1Sthorpej#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 461.1Sthorpej# and maybe 471.1Sthorpej#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 481.3Sthorpej.endif 491.3Sthorpej 501.3Sthorpej.if (${BASE} == "pxeboot_ia32_com0") 511.3SthorpejCPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL 521.3Sthorpej.endif 531.1Sthorpej 541.1SthorpejCPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 551.1SthorpejCPPFLAGS+= -DSUPPORT_TFTP 561.1SthorpejCPPFLAGS+= -DSUPPORT_NFS 571.5Sdrochner#CPPFLAGS+= -DNFS_NOSYMLINK 581.1Sthorpej 591.1SthorpejCPPFLAGS+= -DPASS_MEMMAP 601.1Sthorpej 611.1Sthorpej#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 621.1SthorpejCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 631.1Sthorpej 641.1SthorpejSAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000 651.2SthorpejSAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 661.1Sthorpej 671.7SdbjCPPFLAGS+= -DPASS_BIOSGEOM 681.7Sdbj# if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no 691.7Sdbj#I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no 701.1Sthorpej 711.3Sthorpej.if (${BASE} == "pxeboot_ia32") 721.1SthorpejVERSIONFILE= ${.CURDIR}/version 731.3Sthorpej.else 741.3SthorpejVERSIONFILE= ${.CURDIR}/../pxeboot/version 751.3Sthorpej.endif 761.1Sthorpej 771.1Sthorpej.include "../Makefile.booters" 78