Add the source code for /usr/src/usr.bin from the Net/2 tape
[unix-history] / usr / src / include / Makefile
index 2361f35..b854a00 100644 (file)
@@ -1,4 +1,11 @@
-#      @(#)Makefile    5.31 (Berkeley) %G%
+#      @(#)Makefile    5.45.1.1 (Berkeley) 5/6/91
+#
+# PATCHES MAGIC                LEVEL   PATCH THAT GOT US HERE
+# --------------------         -----   ----------------------
+# CURRENT PATCH LEVEL:         1       00123
+# --------------------         -----   ----------------------
+#
+# 04 Apr 93    Rodney W. Grimes        Removed added netccitt and vm
 #
 # Doing a make install builds /usr/include
 #
 #
 # Doing a make install builds /usr/include
 #
 #
 all clean cleandir depend lint tags:
 
 #
 all clean cleandir depend lint tags:
 
-SUBDIRS=arpa pascal protocols
-STD=   a.out.h ar.h assert.h bitstring.h vis.h ctype.h curses.h ndbm.h \
-       dirent.h disktab.h fcntl.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 stdio.h string.h \
-       strings.h struct.h sysexits.h time.h ttyent.h tzfile.h unistd.h \
-       utmp.h varargs.h vfont.h
-LMCH=  float.h frame.h
-LSYS=  errno.h signal.h syslog.h termios.h
+# Missing: mp.h
+
+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 \
+       ndbm.h netdb.h nlist.h paths.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 vis.h
+
+MFILES=        float.h frame.h
+LFILES=        errno.h fcntl.h signal.h syslog.h termios.h
+
+DIRS=arpa protocols
+LDIRS= net netccitt netimp netinet netiso netns nfs sys ufs vm
 
 
-DIRS=  sys net netimp netinet netiso netns ufs nfs
-.if (${MACHINE} == "tahoe")
-DIRS+= tahoe tahoemath tahoevba tahoeif
-.elif (${MACHINE} == "vax")
-DIRS+= vax vaxmba vaxuba vaxif
-.endif
+NOOBJ= noobj
 
 # Define SHARED to indicate whether you want symbolic links to the system
 # source (``symlinks''), or a separate copy (``copies''); (latter useful
 
 # Define SHARED to indicate whether you want symbolic links to the system
 # source (``symlinks''), or a separate copy (``copies''); (latter useful
@@ -31,14 +38,14 @@ DIRS+=      vax vaxmba vaxuba vaxif
 SHARED=        symlinks
 
 install: ${SHARED}
 SHARED=        symlinks
 
 install: ${SHARED}
-       @echo installing ${STD}
-       @-for i in ${STD}; do \
-               cmp -s $$i ${DESTDIR}/usr/Xinclude/$$i || \
+       @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
                    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; \
                if [ ! -d ${DESTDIR}/usr/include/$$i ]; \
                then \
                        mkdir ${DESTDIR}/usr/include/$$i; \
@@ -46,38 +53,45 @@ install: ${SHARED}
                chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
                chmod 755 ${DESTDIR}/usr/include/$$i; \
                (cd $$i; for j in *.[ih]; do \
                chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
                chmod 755 ${DESTDIR}/usr/include/$$i; \
                (cd $$i; for j in *.[ih]; do \
-                       cmp -s $$j ${DESTDIR}/usr/Xinclude/$$i/$$j || \
+                       cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
                        install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$j \
                            ${DESTDIR}/usr/include/$$i/$$j; \
                done); \
        done
                        install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$j \
                            ${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
-       @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; \
                rm -f ${DESTDIR}/usr/include/$$i; \
                ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
+               chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
        done
        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; \
                rm -f ${DESTDIR}/usr/include/$$i; \
                ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \
+               chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
        done
 
        done
 
+copies:
+       @echo copies: ${LDIRS}
+       @-for i in ${LDIRS}; do \
                rm -rf ${DESTDIR}/usr/include/$$i; \
                rm -rf ${DESTDIR}/usr/include/$$i; \
-               if [ ! -s ${DESTDIR}/usr/include/$$i ]; \
-               then \
-                       ln -s /sys/$$i ${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
        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 -); \
 
 
+symlinks:
+       @echo symlinks: ${LDIRS}
+       @for i in ${LDIRS}; do \
                rm -rf ${DESTDIR}/usr/include/$$i; \
                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
        done
+       rm -f ${DESTDIR}/usr/include/machine
+       ln -s /sys/${MACHINE}/include ${DESTDIR}/usr/include/machine
+       chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/machine
 
 
-.include <bsd.own.mk>
+.include <bsd.prog.mk>