From da94ddfd7a2d2b16f04e5281c56bef8a7ebbdfb7 Mon Sep 17 00:00:00 2001 From: dcs Date: Fri, 28 Jan 2000 02:40:23 +0000 Subject: Try my hand again at removing ugly testmain target. --- sys/boot/ficl/Makefile | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'sys/boot') diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile index fa65665..04cce5b 100644 --- a/sys/boot/ficl/Makefile +++ b/sys/boot/ficl/Makefile @@ -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 +.else +LIB= ficl +INTERNALLIB= yes +INTERNALSTATICLIB= yes +NOPROFILE= yes +.include +.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 - -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} -- cgit v1.1