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