[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / include

Annotation of src/include/Makefile, Revision 1.26

1.26    ! pefo        1: #      $OpenBSD: Makefile,v 1.25 1996/09/29 23:52:34 millert Exp $
1.8       deraadt     2: #      $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $
1.1       deraadt     3:
                      4: #      @(#)Makefile    5.45.1.1 (Berkeley) 5/6/91
                      5:
                      6: # The ``rm -rf''s used below are safe because rm doesn't follow symbolic
                      7: # links.
                      8:
                      9: # Missing: mp.h
                     10:
1.4       niklas     11: FILES= a.out.h ar.h assert.h bitstring.h bm.h cpio.h ctype.h db.h dirent.h \
1.8       deraadt    12:        disktab.h elf_abi.h err.h fnmatch.h fstab.h fts.h glob.h \
                     13:        grp.h ieeefp.h iso646.h kvm.h langinfo.h limits.h locale.h \
1.25      millert    14:        malloc.h math.h md4.h md5.h memory.h mpool.h ndbm.h netdb.h \
1.12      niklas     15:        netgroup.h nlist.h nl_types.h paths.h poll.h pwd.h ranlib.h re_comp.h \
1.24      millert    16:        regex.h resolv.h search.h setjmp.h sgtty.h sha1.h signal.h stab.h \
                     17:        stddef.h stdio.h stdlib.h string.h strings.h struct.h sysexits.h \
                     18:        tar.h time.h ttyent.h tzfile.h unistd.h utime.h utmp.h vis.h
1.8       deraadt    19:
1.22      pefo       20: .if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "mips")
1.8       deraadt    21: FILES+=        dlfcn.h link.h
                     22: .endif
1.1       deraadt    23:
                     24: MFILES=        float.h frame.h stdarg.h varargs.h
                     25: LFILES=        errno.h fcntl.h syslog.h termios.h
1.26    ! pefo       26:
        !            27: .if (${MACHINE_ARCH} == "mips")
        !            28: MFILES+= link.h dlfcn.h
        !            29: .endif
1.1       deraadt    30:
                     31: DIRS=  arpa protocols rpc rpcsvc
1.21      mickey     32: LDIRS= dev net netinet netccitt netiso netns netipx nfs sys ufs vm ddb scsi
1.1       deraadt    33:
1.20      downsj     34: RDIRS= ../lib/libcompat ../lib/libcurses ../lib/libform ../lib/libmenu \
1.23      millert    35:        ../lib/libocurses ../lib/libpanel ../lib/librpcsvc ../lib/libskey \
                     36:        ../lib/libtermlib ../lib/libedit ../lib/libpcap ../lib/libutil \
                     37:        ../lib/libz ../sys/arch/${MACHINE}
1.7       deraadt    38:
1.1       deraadt    39: NOOBJ= noobj
                     40:
                     41: # Change SYS_INCLUDE in bsd.own.mk to "symlinks" if you don't want copies
                     42: .include <bsd.own.mk>
                     43: SYS_INCLUDE?=  copies
1.9       tholo      44: .if defined(KERBEROS)
                     45: RDIRS+=        ../kerberosIV/include ../kerberosIV/kadm ../kerberosIV/krb ../kerberosIV/ss
                     46: .endif
1.1       deraadt    47:
1.6       deraadt    48: includes:
1.1       deraadt    49:        @echo installing ${FILES}
                     50:        @-for i in ${FILES}; do \
                     51:                cmp -s $$i ${DESTDIR}/usr/include/$$i || \
                     52:                    install -c -m 444 $$i ${DESTDIR}/usr/include/$$i; \
                     53:        done
                     54:        @echo installing ${DIRS}
                     55:        @-for i in ${DIRS}; do \
                     56:                install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
                     57:                        ${DESTDIR}/usr/include/$$i; \
                     58:                (cd $$i; for j in *.[ih]; do \
                     59:                        cmp -s $$j ${DESTDIR}/usr/include/$$i/$$j || \
                     60:                        install -c -m 444 $$j ${DESTDIR}/usr/include/$$i/$$j; \
                     61:                done); \
                     62:        done
                     63:        @echo installing ${LFILES}
                     64:        @-for i in ${LFILES}; do \
                     65:                rm -f ${DESTDIR}/usr/include/$$i; \
                     66:                ln -s sys/$$i ${DESTDIR}/usr/include/$$i; \
                     67:        done
                     68:        @echo installing ${MFILES}
                     69:        @-for i in ${MFILES}; do \
                     70:                rm -f ${DESTDIR}/usr/include/$$i; \
                     71:                ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \
1.2       deraadt    72:        done
1.1       deraadt    73:        chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include
                     74:        find ${DESTDIR}/usr/include -type f | \
                     75:                xargs chmod a=r
                     76:        find ${DESTDIR}/usr/include -type d | \
                     77:                xargs chmod u=rwx,go=rx
1.7       deraadt    78:        @-for i in ${RDIRS}; do \
                     79:                echo installing in ${.CURDIR}/$$i; \
                     80:                (cd ${.CURDIR}/$$i; ${MAKE} includes) \
                     81:        done
1.1       deraadt    82:
                     83: copies:
                     84:        @echo copies: ${LDIRS}
                     85:        @-for i in ${LDIRS}; do \
                     86:                rm -rf ${DESTDIR}/usr/include/$$i; \
                     87:                install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
                     88:                        ${DESTDIR}/usr/include/$$i ; \
                     89:        done
                     90:        cd ../sys; \
                     91:        pax -rw -pa -L \
                     92:            `find ${LDIRS} -follow -type f -name '*.h' '!' -path \
                     93:            'netiso/xebec/*' -print` ${DESTDIR}/usr/include
                     94:        rm -rf ${DESTDIR}/usr/include/machine
                     95:        install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
                     96:                ${DESTDIR}/usr/include/machine
                     97:        pax -rw -pa -s "|../sys/arch/${MACHINE}/include||" \
                     98:            ../sys/arch/${MACHINE}/include/*.h \
                     99:            ${DESTDIR}/usr/include/machine
                    100:        rm -rf ${DESTDIR}/usr/include/${MACHINE_ARCH}
                    101:        if test ${MACHINE} != ${MACHINE_ARCH} -a \
                    102:            -d ../sys/arch/${MACHINE_ARCH}/include; then \
                    103:                install -d -o ${BINOWN} -g ${BINGRP} -m 755 \
                    104:                    ${DESTDIR}/usr/include/${MACHINE_ARCH}; \
                    105:                pax -rw -pa -s "|../sys/arch/${MACHINE_ARCH}/include||" \
                    106:                    ../sys/arch/${MACHINE_ARCH}/include/*.h \
                    107:                    ${DESTDIR}/usr/include/${MACHINE_ARCH}; \
                    108:        else \
                    109:                ln -s machine ${DESTDIR}/usr/include/${MACHINE_ARCH}; \
                    110:        fi
                    111:
                    112: symlinks:
                    113:        @echo symlinks: ${LDIRS}
                    114:        @for i in ${LDIRS}; do \
                    115:                rm -rf ${DESTDIR}/usr/include/$$i; \
                    116:                ln -s /sys/$$i ${DESTDIR}/usr/include/$$i; \
                    117:        done
                    118:        rm -rf ${DESTDIR}/usr/include/machine
                    119:        ln -s /sys/arch/${MACHINE}/include ${DESTDIR}/usr/include/machine
                    120:        rm -rf ${DESTDIR}/usr/include/${MACHINE_ARCH}
                    121:        if test ${MACHINE} != ${MACHINE_ARCH} -a \
                    122:            -d ../sys/arch/${MACHINE_ARCH}/include ; then \
                    123:                ln -s /sys/arch/${MACHINE_ARCH}/include \
                    124:                    ${DESTDIR}/usr/include/${MACHINE_ARCH} ; \
                    125:        else \
                    126:                ln -s machine ${DESTDIR}/usr/include/${MACHINE_ARCH} ; \
                    127:        fi
                    128:
1.6       deraadt   129: includes: ${SYS_INCLUDE}
                    130:
1.1       deraadt   131: .include <bsd.prog.mk>