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