Home | History | Annotate | Line # | Download | only in dosboot
Makefile revision 1.26
      1 #	$NetBSD: Makefile,v 1.26 2011/05/20 22:29:55 joerg Exp $
      2 
      3 S=	${.CURDIR}/../../../..
      4 
      5 BASE= dosboot
      6 PROG= ${BASE}.com
      7 NOMAN=	# defined
      8 NEWVERSWHAT=	"DOS Boot"
      9 STARTFILE=	${DOSSTART}
     10 RELOC=		0x100
     11 
     12 AFLAGS.dosboot.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     13 AFLAGS.start_dos.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
     14 
     15 SRCS= main.c devopen.c exec.c
     16 
     17 CPPFLAGS+= -DSLOW	# for libz
     18 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
     19 CPPFLAGS+= -DXMS
     20 #uncomment if there are problems with memory detection
     21 #CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
     22 
     23 #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
     24 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
     25 
     26 # XXX should go into library
     27 SRCS+= getopt.c
     28 .PATH: ${.CURDIR}/../libsa
     29 
     30 # XXX these should depend on the size of the image
     31 CPPFLAGS+= -DSTACK_START=0x10000
     32 SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
     33 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no
     34 I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes
     35 
     36 VERSIONFILE= ${.CURDIR}/version
     37 
     38 PIE_CFLAGS=
     39 PIE_LDFLAGS=
     40 PIE_AFLAGS=
     41 
     42 .include <bsd.own.mk>
     43 
     44 release: check_RELEASEDIR
     45 	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
     46 	    ${RELEASEDIR}/${MACHINE}/installation/misc
     47 
     48 .include "../Makefile.booters"
     49