freebsd-dev/sys/boot/ficl/Makefile
Daniel C. Sobral 83b912c6e6 Improve Makefile by using .PATH.
Taught by: peter
1999-11-23 15:55:28 +00:00

32 lines
779 B
Makefile

# $FreeBSD$
#
.PATH: ${.CURDIR}/${MACHINE_ARCH}
LIB= ficl
NOPROFILE= yes
INTERNALLIB= yes
INTERNALSTATICLIB= yes
BASE_SRCS= dict.c ficl.c math64.c stack.c sysdep.c vm.c words.c
SRCS= ${BASE_SRCS} softcore.c
CLEANFILES= softcore.c testmain
# Standard softwords
SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
ifbrack.fr
# Optional OO extension softwords
#SOFTWORDS+= oo.fr classes.fr
.PATH: ${.CURDIR}/softwords
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -DFICL_TRACE
softcore.c: ${SOFTWORDS} softcore.awk
(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} | awk -f softcore.awk) > ${.TARGET}
.include <bsd.lib.mk>
CFLAGS+= -DTESTMAIN
testmain: ${.CURDIR}/testmain.c ${OBJS}
cc -o ${.TARGET} ${CFLAGS} ${.CURDIR}/testmain.c ${OBJS}