Home | History | Annotate | Line # | Download | only in dosboot
Makefile revision 1.27
      1 #	$NetBSD: Makefile,v 1.27 2011/12/25 06:09:09 tsutsui 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 CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
     21 #uncomment if there are problems with memory detection
     22 #CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
     23 
     24 #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
     25 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
     26 
     27 # XXX should go into library
     28 SRCS+= getopt.c
     29 .PATH: ${.CURDIR}/../libsa
     30 
     31 # XXX these should depend on the size of the image
     32 CPPFLAGS+= -DSTACK_START=0x10000
     33 SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
     34 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes
     35 I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes
     36 
     37 VERSIONFILE= ${.CURDIR}/version
     38 
     39 PIE_CFLAGS=
     40 PIE_LDFLAGS=
     41 PIE_AFLAGS=
     42 
     43 .include <bsd.own.mk>
     44 
     45 release: check_RELEASEDIR
     46 	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
     47 	    ${RELEASEDIR}/${MACHINE}/installation/misc
     48 
     49 .include "../Makefile.booters"
     50