Makefile revision 1.7
1# $NetBSD: Makefile,v 1.7 2004/08/05 18:04:35 dbj Exp $ 2 3S= ${.CURDIR}/../../../../ 4 5BASE?= pxeboot_ia32 6PROG= ${BASE}.bin 7NOMAN= # defined 8NEWVERSWHAT= "PXE Boot" 9STARTFILE= ${PXESTART} 10RELOC= 0x0 11 12.if (${BASE} != "pxeboot_ia32") 13.PATH.c: ${.CURDIR}/../pxeboot 14.PATH.S: ${.CURDIR}/../pxeboot 15.endif 16 17SRCS= main.c dev_net.c devopen.c conf.c exec.c pxe.c pxe_call.S 18# use our own nfs implementation 19.PATH: ${.CURDIR}/../libsa 20SRCS+= nfs.c 21 22CPPFLAGS+= -DSLOW # for libz 23 24.if (${BASE} == "pxeboot_ia32") 25# Various serial line configurations 26CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL 27# or 28#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD 29# or 30#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 31# and maybe 32#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 33.endif 34 35.if (${BASE} == "pxeboot_ia32_com0") 36CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL 37.endif 38 39CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 40CPPFLAGS+= -DSUPPORT_TFTP 41CPPFLAGS+= -DSUPPORT_NFS 42#CPPFLAGS+= -DNFS_NOSYMLINK 43 44CPPFLAGS+= -DPASS_MEMMAP 45 46#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 47CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 48 49SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000 50SAMISCMAKEFLAGS+= SA_USE_CREAD=yes # Read compressed kernels 51 52CPPFLAGS+= -DPASS_BIOSGEOM 53# if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no 54#I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no 55 56.if (${BASE} == "pxeboot_ia32") 57VERSIONFILE= ${.CURDIR}/version 58.else 59VERSIONFILE= ${.CURDIR}/../pxeboot/version 60.endif 61 62.include "../Makefile.booters" 63