1 # $NetBSD: Makefile,v 1.38 2024/06/29 13:46:40 rin Exp $ 2 3 S= ${.CURDIR}/../../../.. 4 5 BASE= dosboot 6 PROG= ${BASE}.com 7 NEWVERSWHAT= "DOS Boot" 8 STARTFILE= start_dos.o doscommain.o 9 RELOC= 0x100 10 11 SRCS= main.c devopen.c exec.c 12 SRCS+= dosfile.c dos_file.S 13 SRCS+= exec_multiboot1.c exec_multiboot2.c 14 15 #CPPFLAGS+= -DSLOW # for libz; no longer available 16 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 17 CPPFLAGS+= -DXMS 18 CPPFLAGS+= -DLIBSA_ENABLE_LS_OP 19 CPPFLAGS+= -DNO_MULTIBOOT2 # keep the binary small 20 #uncomment if there are problems with memory detection 21 #CPPFLAGS+= -DCONSERVATIVE_MEMDETECT 22 23 #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 24 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 25 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 33 # DOS command line arguments are located at 0x0000. 34 COPTS.doscommain.c+= -fno-delete-null-pointer-checks 35 36 # Do not page-align data segment. 37 LDFLAGS+= -Wl,-N 38 39 VERSIONFILE= ${.CURDIR}/version 40 41 .include <bsd.init.mk> 42 43 release: check_RELEASEDIR 44 ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ 45 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc 46 47 .include "../Makefile.booters" 48