From 1c510a288bbc873c50f1166b493a65009a72cf75 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 9 Jan 2000 10:16:12 +0000 Subject: 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. --- sys/modules/svr4/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys') 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 -- cgit v1.2.3