X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/2005c53f45ed39adf0376cefc016907ce5b68022..7d80f297d51300c523019ed6f3f21d23a020f7ef:/usr/src/include/Makefile diff --git a/usr/src/include/Makefile b/usr/src/include/Makefile index 7ba9437d02..3d3eae3c68 100644 --- a/usr/src/include/Makefile +++ b/usr/src/include/Makefile @@ -1,4 +1,4 @@ -# @(#)Makefile 5.39 (Berkeley) %G% +# @(#)Makefile 5.43 (Berkeley) %G% # # Doing a make install builds /usr/include # @@ -7,25 +7,20 @@ # all clean cleandir depend lint tags: -SUBDIRS=arpa protocols -STD= a.out.h ar.h assert.h bitstring.h ctype.h ndbm.h \ - dirent.h disktab.h fstab.h fts.h glob.h grp.h kvm.h limits.h \ - math.h memory.h mp.h netdb.h nlist.h paths.h pcc.h pwd.h ranlib.h \ - regexp.h resolv.h setjmp.h sgtty.h stab.h stdarg.h stddef.h \ - stdlib.h stdio.h string.h strings.h struct.h sysexits.h time.h \ - ttyent.h tzfile.h utmp.h varargs.h vfont.h vis.h -LMCH= float.h frame.h -LSYS= errno.h fcntl.h signal.h syslog.h termios.h unistd.h -NOOBJ= noobj +FILES= a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \ + fstab.h fts.h glob.h grp.h kvm.h limits.h locale.h math.h memory.h \ + mp.h ndbm.h netdb.h nlist.h paths.h pcc.h pwd.h ranlib.h regexp.h \ + resolv.h setjmp.h sgtty.h stab.h stdarg.h stddef.h stdio.h \ + stdlib.h string.h strings.h struct.h sysexits.h time.h ttyent.h \ + tzfile.h unistd.h utime.h utmp.h varargs.h vfont.h vis.h + +MFILES= float.h frame.h +LFILES= errno.h fcntl.h signal.h syslog.h termios.h -DIRS= sys net netimp netinet netiso netns ufs nfs -.if (${MACHINE} == "hp300") -DIRS+= hp300 hpdev -.elif (${MACHINE} == "tahoe") -DIRS+= tahoe tahoemath tahoevba tahoeif -.elif (${MACHINE} == "vax") -DIRS+= vax vaxmba vaxuba vaxif -.endif +DIRS=arpa protocols +LDIRS= net netimp netinet netiso netns nfs sys ufs + +NOOBJ= noobj # Define SHARED to indicate whether you want symbolic links to the system # source (``symlinks''), or a separate copy (``copies''); (latter useful @@ -33,17 +28,15 @@ DIRS+= vax vaxmba vaxuba vaxif # SHARED= copies SHARED= symlinks -all include clean cleandir depend lint tags: - install: ${SHARED} - @echo installing ${STD} - @-for i in ${STD}; do \ + @echo installing ${FILES} + @-for i in ${FILES}; do \ cmp -s $$i ${DESTDIR}/usr/include/$$i || \ install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \ ${DESTDIR}/usr/include/$$i; \ done - @echo installing ${SUBDIRS} - @-for i in ${SUBDIRS}; do \ + @echo installing ${DIRS} + @-for i in ${DIRS}; do \ if [ ! -d ${DESTDIR}/usr/include/$$i ]; \ then \ mkdir ${DESTDIR}/usr/include/$$i; \ @@ -56,37 +49,37 @@ install: ${SHARED} ${DESTDIR}/usr/include/$$i/$$j; \ done); \ done - install -c -o ${BINOWN} -g ${BINGRP} -m 444 Makefile.install \ - ${DESTDIR}/usr/include/Makefile - rm -f ${DESTDIR}/usr/include/machine - ln -s ./${MACHINE} ${DESTDIR}/usr/include/machine - chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/machine; - @echo installing ${LSYS} - @-for i in ${LSYS}; do \ + @echo installing ${LFILES} + @-for i in ${LFILES}; do \ rm -f ${DESTDIR}/usr/include/$$i; \ ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \ chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ done - @echo installing ${LMCH} - @-for i in ${LMCH}; do \ + @echo installing ${MFILES} + @-for i in ${MFILES}; do \ rm -f ${DESTDIR}/usr/include/$$i; \ ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \ chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ done +copies: + @echo copies: ${LDIRS} + @-for i in ${LDIRS}; do \ rm -rf ${DESTDIR}/usr/include/$$i; \ - if [ ! -s ${DESTDIR}/usr/include/$$i ]; \ - then \ - ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ - chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ - else \ - echo ${DESTDIR}/usr/include/$$i not removed; \ - fi; \ + cd /sys; \ + tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \ done + rm -f ${DESTDIR}/usr/include/machine + mkdir ${DESTDIR}/usr/include/machine + cd /sys/${MACHINE}/include; \ + tar cf - *.h | (cd ${DESTDIR}/usr/include/machine; tar xpfB -); \ rm -rf ${DESTDIR}/usr/include/$$i; \ - cd /sys; \ - tar cf - $$i/*.h | (cd ${DESTDIR}/usr/include; tar xpfB -); \ + ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \ + chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \ done + rm -f ${DESTDIR}/usr/include/machine + ln -s /sys/${MACHINE}/include ${DESTDIR}/usr/include/machine + chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/machine .include