summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl/Makefile
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>1999-11-23 16:28:39 +0000
committerdcs <dcs@FreeBSD.org>1999-11-23 16:28:39 +0000
commit8aabdf53ba6e200a9e79841b92a1c743484b75a3 (patch)
treebee852699bf20ef61765dfbf61898e21e9a97458 /sys/boot/ficl/Makefile
parent24489df464e9ee13c2980cbbcf80499b0ab33966 (diff)
downloadFreeBSD-src-8aabdf53ba6e200a9e79841b92a1c743484b75a3.zip
FreeBSD-src-8aabdf53ba6e200a9e79841b92a1c743484b75a3.tar.gz
Revert ill-considered simplification in 1.13.
Pointed by: peter
Diffstat (limited to 'sys/boot/ficl/Makefile')
-rw-r--r--sys/boot/ficl/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index 9329528..fa65665 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -1,13 +1,12 @@
# $FreeBSD$
#
-.PATH: ${.CURDIR}/${MACHINE_ARCH}
-
+.PATH: ${.CURDIR}/${MACHINE_ARCH}
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
+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
# Standard softwords
@@ -24,8 +23,12 @@ softcore.c: ${SOFTWORDS} softcore.awk
.include <bsd.lib.mk>
-CFLAGS+= -DTESTMAIN
-
-testmain: ${.CURDIR}/testmain.c ${OBJS}
- cc -o ${.TARGET} ${CFLAGS} ${.CURDIR}/testmain.c ${OBJS}
+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}
OpenPOWER on IntegriCloud