Home | History | Annotate | Line # | Download | only in dosboot
      1  1.39    andvar #	$NetBSD: Makefile,v 1.39 2024/09/11 20:15:36 andvar Exp $
      2   1.1     perry 
      3  1.25   tsutsui S=	${.CURDIR}/../../../..
      4   1.1     perry 
      5   1.9  drochner BASE= dosboot
      6   1.9  drochner PROG= ${BASE}.com
      7   1.6   thorpej NEWVERSWHAT=	"DOS Boot"
      8  1.38       rin STARTFILE=	start_dos.o doscommain.o
      9  1.20   thorpej RELOC=		0x100
     10   1.1     perry 
     11  1.38       rin SRCS=	main.c devopen.c exec.c
     12  1.38       rin SRCS+=	dosfile.c dos_file.S
     13  1.38       rin SRCS+=	exec_multiboot1.c exec_multiboot2.c
     14   1.1     perry 
     15  1.36       rin #CPPFLAGS+= -DSLOW	# for libz; no longer available
     16  1.18  jdolecek CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
     17  1.27   tsutsui CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
     18  1.32      manu CPPFLAGS+= -DNO_MULTIBOOT2 # keep the binary small
     19   1.8  drochner #uncomment if there are problems with memory detection
     20   1.8  drochner #CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
     21   1.1     perry 
     22   1.1     perry #CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
     23  1.13  drochner CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
     24   1.1     perry 
     25   1.1     perry .PATH: ${.CURDIR}/../libsa
     26   1.1     perry 
     27  1.22       dsl # XXX these should depend on the size of the image
     28  1.22       dsl CPPFLAGS+= -DSTACK_START=0x10000
     29  1.22       dsl SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
     30  1.27   tsutsui SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no SA_ENABLE_LS_OP=yes
     31  1.12  drochner 
     32  1.34       rin # DOS command line arguments are located at 0x0000.
     33  1.34       rin COPTS.doscommain.c+= -fno-delete-null-pointer-checks
     34  1.34       rin 
     35  1.35       rin # Do not page-align data segment.
     36  1.35       rin LDFLAGS+= -Wl,-N
     37  1.35       rin 
     38  1.12  drochner VERSIONFILE= ${.CURDIR}/version
     39  1.17       wiz 
     40  1.31  christos .include <bsd.init.mk>
     41  1.15     jhawk 
     42  1.21     lukem release: check_RELEASEDIR
     43  1.21     lukem 	${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \
     44  1.33  christos 	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc
     45   1.1     perry 
     46   1.1     perry .include "../Makefile.booters"
     47