Makefile revision 52395
150477Speter# $FreeBSD: head/sys/boot/i386/libi386/Makefile 52395 1999-10-19 03:53:59Z dcs $
238465Smsmith#
340554SmsmithLIB=			i386
438465SmsmithNOPIC=
538465SmsmithNOPROFILE=
640554SmsmithINTERNALLIB=		true
739850SpeterINTERNALSTATICLIB=	true
838465Smsmith
940617SmsmithSRCS=	aout_freebsd.c biosdisk.c biosmem.c biospnp.c biospci.c \
1040617Smsmith	bootinfo.c comconsole.c devicename.c elf_freebsd.c gatea20.c \
1140617Smsmith	i386_copy.c i386_module.c time.c vidconsole.c
1238465Smsmith
1340338SpeterCFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
1440338Speter		-I${.CURDIR}/../../.. -I.
1538465Smsmith
1642480SrnordierBOOT_COMCONSOLE_PORT?= 0x3f8
1742480SrnordierCFLAGS+=	-DCOMPORT=${BOOT_COMCONSOLE_PORT}
1842480Srnordier
1942480SrnordierBOOT_COMCONSOLE_SPEED?= 9600
2042480SrnordierCFLAGS+=	-DCOMSPEED=${BOOT_COMCONSOLE_SPEED}
2142480Srnordier
2238465Smsmith# Make the disk code more talkative
2339662Smsmith#CFLAGS+= -DDISK_DEBUG
2438465Smsmith
2542002Sabial# Include simple terminal emulation (cons25-compatible)
2642002SabialCFLAGS+= -DTERM_EMU
2742002Sabial
2852395Sdcs# Make "machine" required for all objects
2952395Sdcs# (based on the more complete case in sys/i386/boot/Makefile.inc)
3052395Sdcs${SRCS:M*.c:R:S/$/.o/g}: machine
3152395Sdcs
3240554Smsmith# If it's not there, don't consider it a target
3340554Smsmith.if exists(${.CURDIR}/../../../i386/include)
3440554Smsmithbeforedepend ${OBJS}: machine
3540338Speter
3640338Spetermachine:
3740338Speter	ln -sf ${.CURDIR}/../../../i386/include machine
3840338Speter
3940554Smsmith.endif
4040554Smsmith
4140338SpeterCLEANFILES+=	machine
4240338Speter
4338465Smsmith.include <bsd.lib.mk>
44