8967d5f42e
Files sysdep.[ch] are now in ${MACHINE_ARCH} subdirectory. Internal #if's used to identify the platform where removed. Make rule for target testmain was greatly simplified, because it was easier simplifying it than changing it to support the new location of sysdep.[ch]. (a repo-copy was done on sysdep.[ch], of course)
30 lines
760 B
Makefile
30 lines
760 B
Makefile
# $FreeBSD$
|
|
#
|
|
LIB= ficl
|
|
NOPROFILE= yes
|
|
INTERNALLIB= yes
|
|
INTERNALSTATICLIB= yes
|
|
BASE_SRCS= dict.c ficl.c math64.c stack.c vm.c words.c
|
|
SRCS= ${BASE_SRCS} ${MACHINE_ARCH}/sysdep.c 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}
|
|
|