Makefile revision 96513
1# $FreeBSD: head/sys/boot/pc98/libpc98/Makefile 96513 2002-05-13 11:09:07Z ru $ 2# 3LIB= pc98 4INTERNALLIB= true 5 6.PATH: ${.CURDIR}/../../i386/libi386 7 8SRCS= aout_freebsd.c biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \ 9 biospci.c bootinfo.c comconsole.c devicename.c elf_freebsd.c gatea20.c \ 10 i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \ 11 time.c vidconsole.c 12 13CFLAGS+= -ffreestanding 14CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \ 15 -I${.CURDIR}/../../i386/libi386 \ 16 -I${.CURDIR}/../../../contrib/dev/acpica \ 17 -I${.CURDIR}/../../.. -I. 18CFLAGS+= -DPC98 19 20BOOT_COMCONSOLE_PORT?= 0x238 21CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT} 22 23BOOT_COMCONSOLE_SPEED?= 9600 24CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED} 25 26# the location of libstand 27CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ 28 29.ifdef(BOOT_BIOSDISK_DEBUG) 30# Make the disk code more talkative 31CFLAGS+= -DDISK_DEBUG 32.endif 33 34# Include simple terminal emulation (cons25-compatible) 35CFLAGS+= -DTERM_EMU 36 37# Make "machine" required for all objects 38# (based on the more complete case in sys/i386/boot/Makefile.inc) 39${SRCS:M*.c:R:S/$/.o/g}: machine 40 41# If it's not there, don't consider it a target 42.if exists(${.CURDIR}/../../../i386/include) 43beforedepend ${OBJS}: machine 44 45machine: 46 ln -sf ${.CURDIR}/../../../i386/include machine 47 48.endif 49 50CLEANFILES+= machine 51 52.include <bsd.lib.mk> 53