1998-11-05 08:39:43 +00:00
|
|
|
# $Id: Makefile,v 1.5 1998/11/05 07:27:55 jkh 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
|
|
|
|
SOFTWORDS= softcore.fr jhlocal.fr marker.fr
|
|
|
|
# Optional OO extension softwords
|
|
|
|
#SOFTWORDS+= oo.fr classes.fr
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/softwords
|
|
|
|
CFLAGS+= -I${.CURDIR}
|
|
|
|
|
|
|
|
softcore.c: ${SOFTWORDS} softcore.pl
|
1998-11-05 08:39:43 +00:00
|
|
|
(cd ${.CURDIR}/softwords; perl softcore.pl ${SOFTWORDS}) > ${.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
|
|
|
|