Makefile revision 1.24
1# $NetBSD: Makefile,v 1.24 2008/10/20 03:02:07 christos Exp $ 2 3S= ${.CURDIR}/../../../../ 4 5BASE= dosboot 6PROG= ${BASE}.com 7NOMAN= # defined 8NEWVERSWHAT= "DOS Boot" 9STARTFILE= ${DOSSTART} 10RELOC= 0x100 11 12SRCS= main.c devopen.c exec.c 13 14CPPFLAGS+= -DSLOW # for libz 15CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 16CPPFLAGS+= -DXMS 17#uncomment if there are problems with memory detection 18#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT 19 20#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop 21CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main 22 23# XXX should go into library 24SRCS+= getopt.c 25.PATH: ${.CURDIR}/../libsa 26 27# XXX these should depend on the size of the image 28CPPFLAGS+= -DSTACK_START=0x10000 29SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000 30SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no 31I386MISCMAKEFLAGS= I386_INCLUDE_DOS=yes 32 33VERSIONFILE= ${.CURDIR}/version 34 35PIE_CFLAGS= 36PIE_LDFLAGS= 37PIE_AFLAGS= 38 39.include <bsd.own.mk> 40 41release: check_RELEASEDIR 42 ${HOST_INSTALL_FILE} -m ${BINMODE} dosboot.com \ 43 ${RELEASEDIR}/${MACHINE}/installation/misc 44 45.include "../Makefile.booters" 46