1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

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.
This commit is contained in:
Bruce Evans 2000-01-09 10:04:53 +00:00
parent 5f82b5ac07
commit 27e2d53c58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55653

View File

@ -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