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