Try my hand again at removing ugly testmain target.
This commit is contained in:
parent
d6113ed044
commit
5c23af7cdb
@ -1,13 +1,21 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
.PATH: ${.CURDIR}/${MACHINE_ARCH}
|
||||
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} sysdep.c softcore.c
|
||||
CLEANFILES= softcore.c testmain
|
||||
.ifmake testmain
|
||||
CFLAGS+= -DTESTMAIN -D_TESTMAIN
|
||||
SRCS+= testmain.c
|
||||
PROG= testmain
|
||||
.include <bsd.prog.mk>
|
||||
.else
|
||||
LIB= ficl
|
||||
INTERNALLIB= yes
|
||||
INTERNALSTATICLIB= yes
|
||||
NOPROFILE= yes
|
||||
.include <bsd.lib.mk>
|
||||
.endif
|
||||
|
||||
# Standard softwords
|
||||
SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
|
||||
@ -21,14 +29,4 @@ 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>
|
||||
|
||||
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
|
||||
@echo sysdep.c
|
||||
@${CC} -c ${CFLAGS} -DTESTMAIN ${.CURDIR}/${MACHINE_ARCH}/sysdep.c
|
||||
${CC} -o ${.TARGET} ${CFLAGS} ${.CURDIR}/testmain.c ${OBJS}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user