Home | History | Annotate | Line # | Download | only in pxeboot
Makefile revision 1.15.2.1
      1  1.15.2.1     skrll #	$NetBSD: Makefile,v 1.15.2.1 2009/03/03 18:29:00 skrll 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.15  christos PIE_CFLAGS=
     23      1.15  christos PIE_AFLAGS=
     24      1.15  christos PIE_LDFLAGS=
     25      1.15  christos 
     26      1.10       mrg .include <bsd.own.mk>
     27      1.10       mrg 
     28  1.15.2.1     skrll .if ${MACHINE_ARCH} == "x86_64"
     29      1.11     lukem LDFLAGS+=	-Wl,-m,elf_i386
     30      1.11     lukem AFLAGS+=	-m32
     31      1.11     lukem LIBKERN_ARCH=	i386
     32       1.8       chs KERNMISCMAKEFLAGS="LIBKERN_ARCH=i386"
     33       1.8       chs .endif
     34       1.8       chs 
     35       1.6   mycroft CPPFLAGS+= -DSLOW	# for libz
     36       1.1   thorpej 
     37       1.3   thorpej .if (${BASE} == "pxeboot_ia32")
     38       1.9       dsl # Take config values from patchable header
     39       1.9       dsl CPPFLAGS+= -DSUPPORT_SERIAL=boot_params.bp_consdev
     40       1.9       dsl CPPFLAGS+= -DCONSPEED=boot_params.bp_conspeed
     41       1.9       dsl CPPFLAGS+= -DCONSADDR=boot_params.bp_consaddr
     42       1.9       dsl CPPFLAGS+= -DCONSOLE_KEYMAP=boot_params.bp_keymap
     43       1.9       dsl CPPFLAGS+= -DDIRECT_SERIAL
     44       1.1   thorpej # Various serial line configurations
     45       1.9       dsl #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL
     46       1.1   thorpej #	or
     47       1.1   thorpej #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD
     48       1.1   thorpej #	or
     49       1.1   thorpej #CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO 
     50       1.1   thorpej #	and maybe 
     51       1.1   thorpej #CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600
     52       1.3   thorpej .endif
     53       1.3   thorpej 
     54       1.3   thorpej .if (${BASE} == "pxeboot_ia32_com0")
     55       1.3   thorpej CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL
     56       1.3   thorpej .endif
     57       1.1   thorpej 
     58       1.1   thorpej CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
     59       1.1   thorpej CPPFLAGS+= -DSUPPORT_TFTP
     60       1.1   thorpej CPPFLAGS+= -DSUPPORT_NFS
     61       1.5  drochner #CPPFLAGS+= -DNFS_NOSYMLINK
     62       1.1   thorpej 
     63       1.1   thorpej CPPFLAGS+= -DPASS_MEMMAP
     64      1.13      salo CPPFLAGS+= -DEPIA_HACK
     65       1.1   thorpej 
     66       1.1   thorpej #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
     67       1.1   thorpej CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
     68       1.1   thorpej 
     69       1.1   thorpej SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x30000
     70       1.2   thorpej SAMISCMAKEFLAGS+= SA_USE_CREAD=yes	# Read compressed kernels
     71       1.1   thorpej 
     72       1.7       dbj CPPFLAGS+= -DPASS_BIOSGEOM
     73       1.7       dbj # if you don't use -DPASS_BIOSGEOM, then set I386_INCLUDE_DISK=no
     74       1.7       dbj #I386MISCMAKEFLAGS= I386_INCLUDE_DISK=no
     75       1.1   thorpej 
     76       1.3   thorpej .if (${BASE} == "pxeboot_ia32")
     77       1.1   thorpej VERSIONFILE= ${.CURDIR}/version
     78       1.3   thorpej .else
     79       1.3   thorpej VERSIONFILE= ${.CURDIR}/../pxeboot/version
     80       1.3   thorpej .endif
     81       1.1   thorpej 
     82       1.1   thorpej .include "../Makefile.booters"
     83      1.14        he 
     84      1.14        he release: check_RELEASEDIR
     85      1.14        he 	${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
     86      1.14        he 		${RELEASEDIR}/${MACHINE}/installation/misc
     87