Makefile revision 1.38
11.38Srin#	$NetBSD: Makefile,v 1.38 2024/06/29 13:46:40 rin Exp $
21.1Sperry
31.25StsutsuiS=	${.CURDIR}/../../../..
41.1Sperry
51.9SdrochnerBASE= dosboot
61.9SdrochnerPROG= ${BASE}.com
71.6SthorpejNEWVERSWHAT=	"DOS Boot"
81.38SrinSTARTFILE=	start_dos.o doscommain.o
91.20SthorpejRELOC=		0x100
101.1Sperry
111.38SrinSRCS=	main.c devopen.c exec.c
121.38SrinSRCS+=	dosfile.c dos_file.S
131.38SrinSRCS+=	exec_multiboot1.c exec_multiboot2.c
141.1Sperry
151.36Srin#CPPFLAGS+= -DSLOW	# for libz; no longer available
161.18SjdolecekCPPFLAGS+= -DCOMPAT_386BSD_MBRPART
171.30SchristosCPPFLAGS+= -DXMS
181.27StsutsuiCPPFLAGS+= -DLIBSA_ENABLE_LS_OP
191.32SmanuCPPFLAGS+= -DNO_MULTIBOOT2 # keep the binary small
201.8Sdrochner#uncomment if there are problems with memory detection
211.8Sdrochner#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
221.1Sperry
231.1Sperry#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
241.13SdrochnerCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
251.1Sperry
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.12Sdrochner
331.34Srin# DOS command line arguments are located at 0x0000.
341.34SrinCOPTS.doscommain.c+= -fno-delete-null-pointer-checks
351.34Srin
361.35Srin# Do not page-align data segment.
371.35SrinLDFLAGS+= -Wl,-N
381.35Srin
391.12SdrochnerVERSIONFILE= ${.CURDIR}/version
401.17Swiz
411.31Schristos.include <bsd.init.mk>
421.15Sjhawk
431.21Slukemrelease: check_RELEASEDIR
441.21Slukem	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
451.33Schristos	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
461.1Sperry
471.1Sperry.include "../Makefile.booters"
48