diff options
author | Bruce Evans <bde@FreeBSD.org> | 2000-01-09 10:16:12 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2000-01-09 10:16:12 +0000 |
commit | 1c510a288bbc873c50f1166b493a65009a72cf75 (patch) | |
tree | c729c620aaab8decfd249f017c3d9ba5e593706e /sys/modules | |
parent | 8ab773c3cf4d00008d06f941195929131050c278 (diff) | |
download | src-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/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 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 |