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