summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-01-09 08:24:27 +0000
committerbde <bde@FreeBSD.org>2000-01-09 08:24:27 +0000
commit2d96e5dd45a8fbdead16d7a6a28dab5a13054a6c (patch)
treeaeb6d51fc9c9fa119958a1830c3d9f3f1331e40c
parenta360b452efe97b2aafeb2e8de8f73a1feb5c60cc (diff)
downloadFreeBSD-src-2d96e5dd45a8fbdead16d7a6a28dab5a13054a6c.zip
FreeBSD-src-2d96e5dd45a8fbdead16d7a6a28dab5a13054a6c.tar.gz
Compile *_genassym.c with ordinary ${CFLAGS}. The (small) needs for
-U_KERNEL became negative when all all the genassym.c's were converted to be cross-built. Related cleanups: PARAM went away, but was still used here; KERNEL was renamed to _KERNEL, but was still KERNEL here; the deprecated macros $@ and $< were still used here. Use "genassym ... > ${.TARGET}", not "genassym -o $@ ...", so that genassym(1) doesn't need to support -o. Removed half-baked hard-coded dependencies of *_genassym.o on headers. These objects should be added to the list of objects in the depend rule to get full dependencies. This doesn't happen automatically because they are not linked into the kernel. Half baked dependencies don't really help.
-rw-r--r--sys/conf/files.i38616
-rw-r--r--sys/i386/conf/files.i38616
2 files changed, 16 insertions, 16 deletions
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386
index 3d6bdc1..148d0bc 100644
--- a/sys/conf/files.i386
+++ b/sys/conf/files.i386
@@ -8,26 +8,26 @@
# dependency lines other than the first are silently ignored.
#
linux_genassym.o optional compat_linux \
- dependency "$S/i386/linux/linux_genassym.c $S/i386/linux/linux.h" \
- compile-with "${CC} ${CFLAGS} ${PARAM} -UKERNEL -o $@ -c $<" \
+ dependency "$S/i386/linux/linux_genassym.c" \
+ compile-with "${CC} ${CFLAGS} -c ${.IMPSRC}" \
no-obj no-implicit-rule \
clean "linux_genassym.o"
#
svr4_genassym.o optional compat_svr4 \
- dependency "$S/i386/svr4/svr4_genassym.c $S/svr4/svr4.h" \
- compile-with "${CC} ${CFLAGS} ${PARAM} -UKERNEL -o $@ -c $<" \
+ dependency "$S/i386/svr4/svr4_genassym.c" \
+ compile-with "${CC} ${CFLAGS} -c ${.IMPSRC}" \
no-obj no-implicit-rule \
clean "svr4_genassym.o"
#
linux_assym.h optional compat_linux \
dependency "linux_genassym.o" \
- compile-with "genassym -o $@ linux_genassym.o" \
+ compile-with "genassym linux_genassym.o > ${.TARGET}" \
no-obj no-implicit-rule before-depend \
clean "linux_assym.h"
#
svr4_assym.h optional compat_svr4 \
dependency "svr4_genassym.o" \
- compile-with "genassym -o $@ svr4_genassym.o" \
+ compile-with "genassym svr4_genassym.o > ${.TARGET}" \
no-obj no-implicit-rule before-depend \
clean "svr4_assym.h"
#
@@ -140,7 +140,7 @@ i386/eisa/eisaconf.c optional eisa
i386/eisa/if_fea.c optional fea
i386/eisa/if_vx_eisa.c optional vx
i386/i386/atomic.c standard \
- compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} $<"
+ compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} ${.IMPSRC}"
i386/i386/autoconf.c standard
i386/i386/bios.c standard
i386/i386/bioscall.s standard
@@ -232,7 +232,7 @@ i386/isa/if_wl.c optional wl
i386/isa/if_wlp.c optional wlp
i386/isa/intr_machdep.c standard
i386/isa/ipl_funcs.c standard \
- compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} $<"
+ compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} ${.IMPSRC}"
i386/isa/isa.c optional isa
i386/isa/isa_compat.c optional isa
i386/isa/isa_dma.c optional isa
diff --git a/sys/i386/conf/files.i386 b/sys/i386/conf/files.i386
index 3d6bdc1..148d0bc 100644
--- a/sys/i386/conf/files.i386
+++ b/sys/i386/conf/files.i386
@@ -8,26 +8,26 @@
# dependency lines other than the first are silently ignored.
#
linux_genassym.o optional compat_linux \
- dependency "$S/i386/linux/linux_genassym.c $S/i386/linux/linux.h" \
- compile-with "${CC} ${CFLAGS} ${PARAM} -UKERNEL -o $@ -c $<" \
+ dependency "$S/i386/linux/linux_genassym.c" \
+ compile-with "${CC} ${CFLAGS} -c ${.IMPSRC}" \
no-obj no-implicit-rule \
clean "linux_genassym.o"
#
svr4_genassym.o optional compat_svr4 \
- dependency "$S/i386/svr4/svr4_genassym.c $S/svr4/svr4.h" \
- compile-with "${CC} ${CFLAGS} ${PARAM} -UKERNEL -o $@ -c $<" \
+ dependency "$S/i386/svr4/svr4_genassym.c" \
+ compile-with "${CC} ${CFLAGS} -c ${.IMPSRC}" \
no-obj no-implicit-rule \
clean "svr4_genassym.o"
#
linux_assym.h optional compat_linux \
dependency "linux_genassym.o" \
- compile-with "genassym -o $@ linux_genassym.o" \
+ compile-with "genassym linux_genassym.o > ${.TARGET}" \
no-obj no-implicit-rule before-depend \
clean "linux_assym.h"
#
svr4_assym.h optional compat_svr4 \
dependency "svr4_genassym.o" \
- compile-with "genassym -o $@ svr4_genassym.o" \
+ compile-with "genassym svr4_genassym.o > ${.TARGET}" \
no-obj no-implicit-rule before-depend \
clean "svr4_assym.h"
#
@@ -140,7 +140,7 @@ i386/eisa/eisaconf.c optional eisa
i386/eisa/if_fea.c optional fea
i386/eisa/if_vx_eisa.c optional vx
i386/i386/atomic.c standard \
- compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} $<"
+ compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} ${.IMPSRC}"
i386/i386/autoconf.c standard
i386/i386/bios.c standard
i386/i386/bioscall.s standard
@@ -232,7 +232,7 @@ i386/isa/if_wl.c optional wl
i386/isa/if_wlp.c optional wlp
i386/isa/intr_machdep.c standard
i386/isa/ipl_funcs.c standard \
- compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} $<"
+ compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} ${.IMPSRC}"
i386/isa/isa.c optional isa
i386/isa/isa_compat.c optional isa
i386/isa/isa_dma.c optional isa
OpenPOWER on IntegriCloud