1999-04-06 02:43:06 +00:00
|
|
|
# $Id: Makefile,v 1.9 1999/03/17 23:03:36 dcs Exp $
|
1998-11-03 06:11:35 +00:00
|
|
|
#
|
|
|
|
LIB= ficl
|
|
|
|
NOPROFILE= yes
|
|
|
|
INTERNALLIB= yes
|
|
|
|
INTERNALSTATICLIB= yes
|
1998-11-05 07:27:55 +00:00
|
|
|
BASE_SRCS= dict.c ficl.c math64.c stack.c sysdep.c vm.c words.c
|
|
|
|
SRCS= ${BASE_SRCS} softcore.c
|
1998-11-04 03:42:16 +00:00
|
|
|
CLEANFILES= softcore.c testmain
|
1998-11-03 06:11:35 +00:00
|
|
|
|
|
|
|
# Standard softwords
|
1999-02-04 17:13:49 +00:00
|
|
|
SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr
|
1998-11-03 06:11:35 +00:00
|
|
|
# Optional OO extension softwords
|
|
|
|
#SOFTWORDS+= oo.fr classes.fr
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/softwords
|
1999-04-06 02:43:06 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -DFICL_TRACE
|
1998-11-03 06:11:35 +00:00
|
|
|
|
1999-01-18 19:05:27 +00:00
|
|
|
softcore.c: ${SOFTWORDS} softcore.awk
|
|
|
|
(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} | awk -f softcore.awk) > ${.TARGET}
|
1998-11-03 06:11:35 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
1998-11-05 07:27:55 +00:00
|
|
|
testmain: ${.CURDIR}/testmain.c ${SRCS}
|
|
|
|
@for i in ${BASE_SRCS}; do echo $${i}... ; \
|
|
|
|
${CC} -c ${CFLAGS} -DTESTMAIN ${.CURDIR}/$${i}; done
|
|
|
|
@echo softdep.c...
|
|
|
|
@${CC} -c ${CFLAGS} -D_TESTMAIN softcore.c
|
|
|
|
cc -o ${.TARGET} ${.CURDIR}/testmain.c ${OBJS}
|
1998-11-04 03:42:16 +00:00
|
|
|
|