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