Home | History | Annotate | Line # | Download | only in dosboot
      1 #	$NetBSD: Makefile,v 1.39 2024/09/11 20:15:36 andvar 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+= -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 .PATH: ${.CURDIR}/../libsa
     26 
     27 # XXX these should depend on the size of the image
     28 CPPFLAGS+= -DSTACK_START=0x10000
     29 SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
     30 SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes
     31 
     32 # DOS command line arguments are located at 0x0000.
     33 COPTS.doscommain.c+= -fno-delete-null-pointer-checks
     34 
     35 # Do not page-align data segment.
     36 LDFLAGS+= -Wl,-N
     37 
     38 VERSIONFILE= ${.CURDIR}/version
     39 
     40 .include <bsd.init.mk>
     41 
     42 release: check_RELEASEDIR
     43 	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
     44 	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
     45 
     46 .include "../Makefile.booters"
     47