diff options
author | bde <bde@FreeBSD.org> | 2000-01-09 10:16:12 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-01-09 10:16:12 +0000 |
commit | 661138e5c354be51262483b1dda694f64c0319fb (patch) | |
tree | f286bbe867535a19d64f878a80423d762ddd4bec /sys/modules | |
parent | 21fa5046a39b6be14930e3fe3d6cf3da8765118d (diff) | |
download | FreeBSD-src-661138e5c354be51262483b1dda694f64c0319fb.zip FreeBSD-src-661138e5c354be51262483b1dda694f64c0319fb.tar.gz |
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.
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/svr4/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/modules/svr4/Makefile b/sys/modules/svr4/Makefile index 7901455..fbd5a0d 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 |