Makefile revision 1.36
1# $NetBSD: Makefile,v 1.36 2023/11/06 07:09:08 rin Exp $ 2 3S= ${.CURDIR}/../../../.. 4 5BASE= dosboot 6PROG= ${BASE}.com 7NEWVERSWHAT= "DOS Boot" 8STARTFILE= ${DOSSTART} 9RELOC= 0x100 10 11SRCS= main.c devopen.c exec.c exec_multiboot1.c exec_multiboot2.c 12 13#CPPFLAGS+= -DSLOW # for libz; no longer available 14CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 15CPPFLAGS+= -DXMS 16CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 17CPPFLAGS+= -DNO_MULTIBOOT2 # keep the binary small 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 34# DOS command line arguments are located at 0x0000. 35COPTS.doscommain.c+= -fno-delete-null-pointer-checks 36 37# Do not page-align data segment. 38LDFLAGS+= -Wl,-N 39 40VERSIONFILE= ${.CURDIR}/version 41 42.include <bsd.init.mk> 43 44release: check_RELEASEDIR 45 ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ 46 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc 47 48.include "../Makefile.booters" 49