1 # $NetBSD: Makefile,v 1.30.10.1 2019/09/18 17:30:06 martin 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 exec_multiboot1.c exec_multiboot2.c 13 14 CPPFLAGS+= -DSLOW # for libz 15 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 16 CPPFLAGS+= -DXMS 17 CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 18 CPPFLAGS+= -DNO_MULTIBOOT2 # keep the binary small 19 #uncomment if there are problems with memory detection 20 #CPPFLAGS+= -DCONSERVATIVE_MEMDETECT 21 22 #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 23 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 24 25 # XXX should go into library 26 SRCS+= getopt.c 27 .PATH: ${.CURDIR}/../libsa 28 29 # XXX these should depend on the size of the image 30 CPPFLAGS+= -DSTACK_START=0x10000 31 SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000 32 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes 33 I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes 34 35 VERSIONFILE= ${.CURDIR}/version 36 37 PIE_CFLAGS= 38 PIE_LDFLAGS= 39 PIE_AFLAGS= 40 41 .include <bsd.own.mk> 42 43 release: check_RELEASEDIR 44 ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ 45 ${RELEASEDIR}/${MACHINE}/installation/misc 46 47 .include "../Makefile.booters" 48