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