Makefile revision 1.34
11.34Srin#	$NetBSD: Makefile,v 1.34 2023/11/06 06:53:52 rin 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.32SmanuSRCS= main.c devopen.c exec.c exec_multiboot1.c exec_multiboot2.c
121.1Sperry
131.23SmycroftCPPFLAGS+= -DSLOW	# for libz
141.18SjdolecekCPPFLAGS+= -DCOMPAT_386BSD_MBRPART
151.30SchristosCPPFLAGS+= -DXMS
161.27StsutsuiCPPFLAGS+= -DLIBSA_ENABLE_LS_OP
171.32SmanuCPPFLAGS+= -DNO_MULTIBOOT2 # keep the binary small
181.8Sdrochner#uncomment if there are problems with memory detection
191.8Sdrochner#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
201.1Sperry
211.1Sperry#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
221.13SdrochnerCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
231.1Sperry
241.1Sperry# XXX should go into library
251.13SdrochnerSRCS+= getopt.c
261.1Sperry.PATH: ${.CURDIR}/../libsa
271.1Sperry
281.22Sdsl# XXX these should depend on the size of the image
291.22SdslCPPFLAGS+= -DSTACK_START=0x10000
301.22SdslSAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
311.27StsutsuiSAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes
321.1SperryI386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes
331.12Sdrochner
341.34Srin# DOS command line arguments are located at 0x0000.
351.34SrinCOPTS.doscommain.c+= -fno-delete-null-pointer-checks
361.34Srin
371.12SdrochnerVERSIONFILE= ${.CURDIR}/version
381.17Swiz
391.31Schristos.include <bsd.init.mk>
401.15Sjhawk
411.21Slukemrelease: check_RELEASEDIR
421.21Slukem	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
431.33Schristos	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
441.1Sperry
451.1Sperry.include "../Makefile.booters"
46