summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-08-28 17:34:16 +0000
committerbde <bde@FreeBSD.org>1994-08-28 17:34:16 +0000
commitaf9bbad3e5aef213859f9162549b873846b30ad0 (patch)
treed383bcbb037712db9b607477e2ce176b63734f22 /lib
parent46a749221817e9edeff21e5fc75cd5778b9f4bcf (diff)
downloadFreeBSD-src-af9bbad3e5aef213859f9162549b873846b30ad0.zip
FreeBSD-src-af9bbad3e5aef213859f9162549b873846b30ad0.tar.gz
Don't build .po's if NOPROFILE is defined.
Don't build .so's if NOPIC is defined. Use ${ECHO} instead of `echo' so that `make -s' is fairly quiet.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/Makefile.inc37
1 files changed, 27 insertions, 10 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 47d73b2..7b5b7db 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -32,37 +32,54 @@ ASM= accept.o access.o acct.o adjtime.o bind.o chdir.o chflags.o chmod.o \
swapon.o symlink.o sync.o umask.o unlink.o unmount.o \
utimes.o vadvise.o wait4.o write.o writev.o __syscall.o __sysctl.o
+PASM= ${ASM:.o=.po}
+SASM= ${ASM:.o=.so}
+
PSEUDO= _exit.o _getlogin.o
+PPSEUDO=${PSEUDO:.o=.po}
+SPSEUDO=${PSEUDO:.o=.so}
OBJS+= ${ASM} ${PSEUDO}
-POBJS+= ${ASM:.o=.po} ${PSEUDO:.o=.po}
-SOBJS+= ${ASM:.o=.so} ${PSEUDO:.o=.so}
+POBJS+= ${PASM} ${PPSEUDO}
+SOBJS+= ${SASM} ${SPSEUDO}
CLEANFILES+=${ASM} ${PSEUDO} ${POBJS} ${SOBJS}
${ASM}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h
- @echo creating ${.PREFIX}.o ${.PREFIX}.po ${.PREFIX}.so
- @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
+ @${ECHO} creating ${.PREFIX}.o
+ printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o
@${LD} -x -r ${.PREFIX}.o
@mv a.out ${.PREFIX}.o
- @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
+
+${PASM}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h
+ @${ECHO} creating ${.PREFIX}.po
+ printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po
@${LD} -x -r ${.PREFIX}.po
@mv a.out ${.PREFIX}.po
- @printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
+
+${SASM}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h
+ @${ECHO} creating ${.PREFIX}.so
+ printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.PREFIX}.so
${PSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h
- @echo creating ${.PREFIX}.o ${.PREFIX}.po ${.PREFIX}.so
- @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
+ @${ECHO} creating ${.PREFIX}.o
+ printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.o
@${LD} -x -r ${.PREFIX}.o
@mv a.out ${.PREFIX}.o
- @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
+
+${PPSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h
+ @${ECHO} creating ${.PREFIX}.po
+ printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.PREFIX}.po
@${LD} -x -r ${.PREFIX}.po
@mv a.out ${.PREFIX}.po
- @printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
+
+${SPSEUDO}: ${.CURDIR}/${MACHINE}/SYS.h /usr/include/sys/syscall.h
+ @${ECHO} creating ${.PREFIX}.so
+ printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.PREFIX}.so
MAN2+= sys/accept.2 sys/access.2 sys/acct.2 sys/adjtime.2 sys/bind.2 \
OpenPOWER on IntegriCloud