Makefile revision 96261
1# $FreeBSD: head/sys/boot/ficl/Makefile 96261 2002-05-09 17:47:25Z obrien $ 2# 3.PATH: ${.CURDIR}/${MACHINE_ARCH} 4BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \ 5 prefix.c search.c stack.c tools.c vm.c words.c 6 7SRCS= ${BASE_SRCS} sysdep.c softcore.c 8CLEANFILES= softcore.c testmain testmain.o 9.if ${MACHINE_ARCH} == "alpha" 10CFLAGS+= -mno-fp-regs 11.endif 12.if ${MACHINE_ARCH} == "i386" 13CFLAGS+= -mpreferred-stack-boundary=2 14.endif 15.if HAVE_PNP 16CFLAGS+= -DHAVE_PNP 17.endif 18.ifmake testmain 19CFLAGS+= -DTESTMAIN -D_TESTMAIN 20SRCS+= testmain.c 21PROG= testmain 22.include <bsd.prog.mk> 23.else 24LIB= ficl 25INTERNALLIB= yes 26INTERNALSTATICLIB= yes 27NOPROFILE= yes 28.include <bsd.lib.mk> 29.endif 30 31# Standard softwords 32.PATH: ${.CURDIR}/softwords 33SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \ 34 ifbrack.fr 35# Optional OO extension softwords 36#SOFTWORDS+= oo.fr classes.fr 37 38CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common 39 40softcore.c: ${SOFTWORDS} softcore.awk 41 (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \ 42 | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET} 43