11.39Sandvar# $NetBSD: Makefile,v 1.39 2024/09/11 20:15:36 andvar 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.27StsutsuiCPPFLAGS+= -DLIBSA_ENABLE_LS_OP 181.32SmanuCPPFLAGS+= -DNO_MULTIBOOT2 # keep the binary small 191.8Sdrochner#uncomment if there are problems with memory detection 201.8Sdrochner#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT 211.1Sperry 221.1Sperry#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 231.13SdrochnerCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 241.1Sperry 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.12Sdrochner 321.34Srin# DOS command line arguments are located at 0x0000. 331.34SrinCOPTS.doscommain.c+= -fno-delete-null-pointer-checks 341.34Srin 351.35Srin# Do not page-align data segment. 361.35SrinLDFLAGS+= -Wl,-N 371.35Srin 381.12SdrochnerVERSIONFILE= ${.CURDIR}/version 391.17Swiz 401.31Schristos.include <bsd.init.mk> 411.15Sjhawk 421.21Slukemrelease: check_RELEASEDIR 431.21Slukem ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ 441.33Schristos ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc 451.1Sperry 461.1Sperry.include "../Makefile.booters" 47