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