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