NetBSD/sys/arch/i386/stand/biosboot/Makefile

72 lines
1.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.33 2000/11/02 01:02:07 thorpej Exp $
1997-03-14 07:59:34 +03:00
S= ${.CURDIR}/../../../../
BASE?= biosboot
PROG= ${BASE}.sym
MKMAN= no
NEWVERSWHAT= "BIOS Boot"
.if (${BASE} != "biosboot")
.PATH.c: ${.CURDIR}/../biosboot/
.endif
1999-01-30 20:43:38 +03:00
SRCS= main.c devopen.c conf.c exec.c
CLEANFILES+= ${BSSTART}
1999-07-06 18:37:05 +04:00
CPPFLAGS+= -DCOMPAT_OLDBOOT -DCOMPAT_386BSD_MBRPART
.if (${BASE} == "biosboot")
# Various serial line configurations
CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL
# or
#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD
# or
#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO
# and maybe
#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600
.endif
.if (${BASE} == "biosboot_com0")
CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0 -DDIRECT_SERIAL
.endif
.if (${BASE} == "biosboot_resetvideo")
CPPFLAGS+= -DRESET_VIDEO
CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL
.endif
.if (${BASE} == "biosboot_ps2")
CPPFLAGS+= -DIBM_L40
CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_PC -DDIRECT_SERIAL
.endif
CPPFLAGS+= -DSUPPORT_USTARFS
#CPPFLAGS+= -DSUPPORT_DOSFS
CPPFLAGS+= -DPASS_BIOSGEOM
CPPFLAGS+= -DPASS_MEMMAP
#CPPFLAGS+= -DBOOTPASSWD
#uncomment if there are problems with memory detection
#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT
#increase MAXFLENTRIES if "installboot" complains about
# "not enough fragment space in bootcode" (default: 10)
#CPPFLAGS+= -DMAXFLENTRIES=15
#set PRIM_LOADSZ to <=9 to make a 720k boot floppy (default: 15)
#CPPFLAGS+= -DPRIM_LOADSZ=9
#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
SAMISCCPPFLAGS+= -DHEAP_START=0x20000 -DHEAP_LIMIT=0x50000
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no
.if (${BASE} == "biosboot")
VERSIONFILE= ${.CURDIR}/version
.else
VERSIONFILE= ${.CURDIR}/../biosboot/version
.endif
.include "../Makefile.booters"