Makefile revision 1.31
11.31Schristos#	$NetBSD: Makefile,v 1.31 2018/06/02 14:30:07 christos Exp $
21.1Sperry
31.25StsutsuiS=	${.CURDIR}/../../../..
41.1Sperry
51.9SdrochnerBASE= dosboot
61.9SdrochnerPROG= ${BASE}.com
71.6SthorpejNEWVERSWHAT=	"DOS Boot"
81.20SthorpejSTARTFILE=	${DOSSTART}
91.20SthorpejRELOC=		0x100
101.1Sperry
111.10SchristosSRCS= main.c devopen.c exec.c
121.1Sperry
131.23SmycroftCPPFLAGS+= -DSLOW	# for libz
141.18SjdolecekCPPFLAGS+= -DCOMPAT_386BSD_MBRPART
151.30SchristosCPPFLAGS+= -DXMS
161.27StsutsuiCPPFLAGS+= -DLIBSA_ENABLE_LS_OP
171.8Sdrochner#uncomment if there are problems with memory detection
181.8Sdrochner#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
191.1Sperry
201.1Sperry#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
211.13SdrochnerCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
221.1Sperry
231.1Sperry# XXX should go into library
241.13SdrochnerSRCS+= getopt.c
251.1Sperry.PATH: ${.CURDIR}/../libsa
261.1Sperry
271.22Sdsl# XXX these should depend on the size of the image
281.22SdslCPPFLAGS+= -DSTACK_START=0x10000
291.22SdslSAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
301.27StsutsuiSAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes
311.1SperryI386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes
321.12Sdrochner
331.12SdrochnerVERSIONFILE= ${.CURDIR}/version
341.17Swiz
351.31Schristos.include <bsd.init.mk>
361.15Sjhawk
371.21Slukemrelease: check_RELEASEDIR
381.21Slukem	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
391.21Slukem	    ${RELEASEDIR}/${MACHINE}/installation/misc
401.1Sperry
411.1Sperry.include "../Makefile.booters"
42