aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2000-01-09 10:16:12 +0000
committerBruce Evans <bde@FreeBSD.org>2000-01-09 10:16:12 +0000
commit1c510a288bbc873c50f1166b493a65009a72cf75 (patch)
treec729c620aaab8decfd249f017c3d9ba5e593706e /sys
parent8ab773c3cf4d00008d06f941195929131050c278 (diff)
downloadsrc-1c510a288bbc873c50f1166b493a65009a72cf75.tar.gz
src-1c510a288bbc873c50f1166b493a65009a72cf75.zip
Compile svr4_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 CFLAGS. Removed triplicate -D_KERNEL from flags for compiling svr4_locore.s.
Notes
Notes: svn path=/head/; revision=55655
Diffstat (limited to 'sys')
-rw-r--r--sys/modules/svr4/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/modules/svr4/Makefile b/sys/modules/svr4/Makefile
index 7901455953a0..fbd5a0d5972f 100644
--- a/sys/modules/svr4/Makefile
+++ b/sys/modules/svr4/Makefile
@@ -10,7 +10,6 @@ SRCS= svr4_sysent.c svr4_sysvec.c opt_compat.h opt_global.h opt_vmpage.h \
OBJS= svr4_locore.o
NOMAN=1
MAN8= svr4.8
-CFLAGS+= -D_KERNEL
MAINTAINER= newton@freebsd.org
EXPORT_SYMS=_svr4_mod
@@ -19,14 +18,14 @@ CLEANFILES= svr4_assym.h svr4_genassym.o opt_svr4.h
svr4.h: opt_global.h opt_svr4.h
svr4_assym.h: svr4_genassym.o
- genassym -o ${.TARGET} ${.ALLSRC}
+ genassym ${.ALLSRC} > ${.TARGET}
svr4_locore.o: svr4_locore.s svr4_assym.h
- ${CC} -c -x assembler-with-cpp -DLOCORE -D_KERNEL ${CFLAGS} \
+ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
${.IMPSRC} -o ${.TARGET}
svr4_genassym.o: svr4_genassym.c svr4.h @ machine
- ${CC} -c ${CFLAGS} -U_KERNEL ${.IMPSRC}
+ ${CC} -c ${CFLAGS} ${.IMPSRC}
opt_compat.h:
echo "#define COMPAT_43 1" > opt_compat.h