aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/linux/Makefile
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2000-01-09 10:04:53 +0000
committerBruce Evans <bde@FreeBSD.org>2000-01-09 10:04:53 +0000
commit27e2d53c58eea22796d9bd2ac2fcd63175280dd7 (patch)
treeb0b38359e0dc15ca79473f17a93cdc5120bec1c2 /sys/modules/linux/Makefile
parent5f82b5ac07a5f43211cc55fe4c0a61017d8c9154 (diff)
downloadsrc-27e2d53c58eea22796d9bd2ac2fcd63175280dd7.tar.gz
src-27e2d53c58eea22796d9bd2ac2fcd63175280dd7.zip
Compile linux_genassym.c with ordinary ${CFLAGS}. The (small) need for
-U_KERNEL became negative when all all the genassym.c's were converted to be cross-built. Use "genassym ... > ${.TARGET}", not "genassym -o $@ ...", so that genassym(1) doesn't need to support -o. Removed duplicate -D_KERNEL from flags for compiling linux_locore.s.
Notes
Notes: svn path=/head/; revision=55653
Diffstat (limited to 'sys/modules/linux/Makefile')
-rw-r--r--sys/modules/linux/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index 8ccccacfe726..fff7c5729788 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -17,14 +17,14 @@ EXPORT_SYMS=_linux_mod
CLEANFILES= linux_assym.h linux_genassym.o
linux_assym.h: linux_genassym.o
- genassym -o ${.TARGET} ${.ALLSRC}
+ genassym ${.ALLSRC} > ${.TARGET}
linux_locore.o: linux_locore.s linux_assym.h
- ${CC} -c -x assembler-with-cpp -DLOCORE -D_KERNEL ${CFLAGS} \
+ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
${.IMPSRC} -o ${.TARGET}
linux_genassym.o: linux_genassym.c linux.h @ machine
- ${CC} -c ${CFLAGS} -U_KERNEL ${.IMPSRC}
+ ${CC} -c ${CFLAGS} ${.IMPSRC}
opt_compat.h:
echo "#define COMPAT_43 1" > opt_compat.h