freebsd-dev/sys/boot/ficl/Makefile
Jordan K. Hubbard 5eb1c6c169 1. rebuild all elements of testmain properly for safety.
2. add fload and key prims for doing simple file and terminal I/O, respectively
1998-11-05 07:27:55 +00:00

31 lines
834 B
Makefile

# $Id: Makefile,v 1.4 1998/11/05 04:54:05 msmith Exp $
#
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
# Optional OO extension softwords
#SOFTWORDS+= oo.fr classes.fr
.PATH: ${.CURDIR}/softwords
CFLAGS+= -I${.CURDIR}
softcore.c: ${SOFTWORDS} softcore.pl
(cd ${.CURDIR}/softwords; ${PERL} softcore.pl ${SOFTWORDS}) > ${.TARGET}
.include <bsd.lib.mk>
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}