Makefile revision 1.36
11.36Srin#	$NetBSD: Makefile,v 1.36 2023/11/06 07:09:08 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.36Srin#CPPFLAGS+= -DSLOW	# for libz; no longer available
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.35Srin# Do not page-align data segment.
381.35SrinLDFLAGS+= -Wl,-N
391.35Srin
401.12SdrochnerVERSIONFILE= ${.CURDIR}/version
411.17Swiz
421.31Schristos.include <bsd.init.mk>
431.15Sjhawk
441.21Slukemrelease: check_RELEASEDIR
451.21Slukem	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
461.33Schristos	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
471.1Sperry
481.1Sperry.include "../Makefile.booters"
49