aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorDaniel C. Sobral <dcs@FreeBSD.org>2000-01-28 02:40:23 +0000
committerDaniel C. Sobral <dcs@FreeBSD.org>2000-01-28 02:40:23 +0000
commit5c23af7cdba1220ed01351c523156e6d6890bc54 (patch)
tree24a235542a2b5384152f9cb4656da1a638fc09fb /sys/boot
parentd6113ed044e29c265c81187b29a08e8e47197079 (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/ficl/Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index fa656652b7b9..04cce5b7efcd 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 <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}