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