1 # $NetBSD: Makefile,v 1.31 2018/06/02 14:30:07 christos Exp $ 2 3 S= ${.CURDIR}/../../../.. 4 5 BASE= dosboot 6 PROG= ${BASE}.com 7 NEWVERSWHAT= "DOS Boot" 8 STARTFILE= ${DOSSTART} 9 RELOC= 0x100 10 11 SRCS= main.c devopen.c exec.c 12 13 CPPFLAGS+= -DSLOW # for libz 14 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 15 CPPFLAGS+= -DXMS 16 CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 17 #uncomment if there are problems with memory detection 18 #CPPFLAGS+= -DCONSERVATIVE_MEMDETECT 19 20 #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 21 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 22 23 # XXX should go into library 24 SRCS+= getopt.c 25 .PATH: ${.CURDIR}/../libsa 26 27 # XXX these should depend on the size of the image 28 CPPFLAGS+= -DSTACK_START=0x10000 29 SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000 30 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes 31 I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes 32 33 VERSIONFILE= ${.CURDIR}/version 34 35 .include <bsd.init.mk> 36 37 release: check_RELEASEDIR 38 ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ 39 ${RELEASEDIR}/${MACHINE}/installation/misc 40 41 .include "../Makefile.booters" 42