Annotation of 43BSDTahoe/new/X/Makefile, revision 1.1

1.1     ! root        1: #
        !             2: # Copyright 1985, 1986, Massachusetts Institute of Technology.
        !             3: #
        !             4: # $Header: Makefile,v 10.38 86/12/01 20:19:32 jg Exp $
        !             5: #
        !             6: # Subdirectories that have makefiles of their own.
        !             7: #
        !             8: # This is the master makefile for the X window system.
        !             9: # Please look at the document in doc/installation for installation
        !            10: # directions.
        !            11: #
        !            12: # If you have RCP'd the directory tree, you have destroyed
        !            13: # a number of symbolic links that are set up so that only a single
        !            14: # copy of some files exist.  We recommend 'tar'ing the files
        !            15: # to move them.
        !            16: #
        !            17: # The CONFDIR should be set to the location where you want executables to
        !            18: # be placed.  By default, it will put stuff in /usr/new.
        !            19: # If you change it here, you probably want to do a "make reconfig" to
        !            20: # change the makefiles one level down.
        !            21: # If you are on a stock 4.2 system, you may need to remove the
        !            22: # "#include <sys/types.h>" from Xlib/Xlib.h for many programs to build.
        !            23: #
        !            24: # The command
        !            25: #      make xlibchange
        !            26: # will remove the include line from Xlib/Xlib.h.
        !            27: #
        !            28: # On a Sun system, you should first
        !            29: #      make sun                # to set things up for a Sun workstation.
        !            30: #                              # also does 'make xlibchange'
        !            31: #
        !            32: # The basic procedure for 4.3 should be:
        !            33: #      make all                # build the binaries (as yourself)
        !            34: #      make install            # install the executables (as root)
        !            35: # You will also have to build a kernel with the Vs100 driver in it,
        !            36: # and add a line to /etc/ttys for each display (See the X(8c) manual page)
        !            37: # You must also rename a pseudo tty pair for each Display configured.
        !            38: # For example: mv /dev/ttyqf /dev/ttyv0; mv /dev/ptyqf /dev/ptyv0
        !            39: # Make sure to make as many pty's as possible.
        !            40: #
        !            41: # If you want DECnet support, you must define the symbol DNETCONN in
        !            42: # the X, Xlib, and xhost makefiles.  By default, only TCP and Unix domain
        !            43: # are built.
        !            44: #
        !            45: #                                      Jim Gettys 
        !            46: #
        !            47: # 
        !            48: CONFDIR= /usr/new
        !            49: # XDIR is where the fonts and firmware will be installed.
        !            50: # if you change XDIR, you must change libvs100/vssite.h to match.
        !            51: XDIR= /lib/X
        !            52: # The version should be increased when the protocol changes
        !            53: # by convention, stuff only available in binary form goes in exe.v{XVERSION}
        !            54: XVERSION= 10
        !            55: 
        !            56: DECDIR= inline libvs100
        !            57: SUNDIR= libsun
        !            58: ISDIR= libis
        !            59: IBMDIR= libibm
        !            60: APOLLODIR= libapollo
        !            61: 
        !            62: 
        !            63: OTHERDIR= rgb Xlib XMenu libnest X bitmap man keycomp\
        !            64:        pikapix uwm xterm xclock xcolors xcons xdvi xfd xgedit\
        !            65:        xhost ximpv xinit xload xnwm xperfmon xpr xrefresh xset\
        !            66:        xshell xsetroot xwininfo xwd xwud xwm
        !            67: 
        !            68: SUBDIR= ${DECDIR} ${OTHERDIR} ${SUNDIR} ${ISDIR} ${APOLLODIR} ${IBMDIR}
        !            69: 
        !            70: 
        !            71: #
        !            72: # If you want to build servers for the given machine type
        !            73: # automatically during the build, just add a dependency to the
        !            74: # all line.  
        !            75: # For DEC, Apollo, IBM, Integrated Solutions, or Sun workstations,
        !            76: # subsitute "dec", "apollo", "ibm", "is", "sun" in the "all:" target.
        !            77: # If you just want to build the client code, none should be in the
        !            78: # the "all:" target.
        !            79: #
        !            80: all:
        !            81:        for i in ${OTHERDIR}; do \
        !            82:            (cd $$i; echo "compiling $$i";\
        !            83:             make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} all;\
        !            84:             cd ..);\
        !            85:        done
        !            86: 
        !            87: dec:
        !            88:        for i in ${DECDIR}; do \
        !            89:            (cd $$i; echo "compiling $$i";\
        !            90:             make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} all;\
        !            91:             cd ..);\
        !            92:        done
        !            93:        cd X; make ${MFLAGS} dec
        !            94:        cd Xlib; make ${MFLAGS} -f Makefile.in
        !            95: 
        !            96: ibm:
        !            97:        for i in ${IBMDIR}; do \
        !            98:            (cd $$i; echo "compiling $$i";\
        !            99:             make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} all;\
        !           100:             cd ..);\
        !           101:        done
        !           102:        cd X; make ${MFLAGS} ibm
        !           103: 
        !           104: sun:
        !           105:        for i in ${SUNDIR}; do \
        !           106:            (cd $$i; echo "compiling $$i";\
        !           107:             make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} all;\
        !           108:             cd ..);\
        !           109:        done
        !           110:        cd X; make ${MFLAGS} sun
        !           111: # fixup Xlib.h to get rid of <sys/types.h> for Sun 2.0 and before.
        !           112: #      make xlibchange
        !           113: # replace VAX demo executables with Sun executables.
        !           114:        for i in exe.v${XVERSION}/*.sun;  do \
        !           115:                -mv $$i exe.v${XVERSION}/`basename $$i .sun` ; \
        !           116:        done
        !           117: 
        !           118: is:
        !           119:        for i in ${ISDIR}; do \
        !           120:            (cd $$i; echo "compiling $$i";\
        !           121:             make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} all;\
        !           122:             cd ..);\
        !           123:        done
        !           124:        cd X; make ${MFLAGS} is
        !           125: 
        !           126: apollo:
        !           127:        for i in ${APOLLODIR}; do \
        !           128:            (cd $$i; echo "compiling $$i";\
        !           129:             make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} all;\
        !           130:             cd ..);\
        !           131:        done
        !           132:        cd X; make ${MFLAGS} apollo
        !           133: 
        !           134: # the following is for use when the X library changes
        !           135: relink:
        !           136:        for i in ${OTHERDIR}; do \
        !           137:            rm -f $$i/$$i; \
        !           138:        done
        !           139:        make all
        !           140: 
        !           141: install:
        !           142: #      echo "Moving X library directory to .old"
        !           143: #      -mv -f ${DESTDIR}${CONFDIR}${XDIR} ${DESTDIR}${CONFDIR}${XDIR}.old
        !           144: #      echo "Make sure the installation directories exist..."
        !           145:        -mkdir ${DESTDIR}${CONFDIR} > /dev/null 2>&1
        !           146:        -mkdir ${DESTDIR}${CONFDIR}/lib > /dev/null 2>&1
        !           147:        -mkdir ${DESTDIR}${CONFDIR}${XDIR} > /dev/null 2>&1
        !           148:        make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} inc
        !           149:        for i in ${OTHERDIR}; do \
        !           150:            (cd $$i;  echo "installing $$i";\
        !           151:             make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} install;\
        !           152:             cd ..); \
        !           153:        done
        !           154: #      (cd exe.v${XVERSION}; install -c xfax  ${DESTDIR}${CONFDIR};\
        !           155: #              install -c xdemo ${DESTDIR}${CONFDIR};\
        !           156: #              install -c xted  ${DESTDIR}${CONFDIR}; cd ..)
        !           157:        echo "Copying fonts."
        !           158:        cp -r font ${DESTDIR}${CONFDIR}${XDIR}
        !           159:        cp -r s-code ${DESTDIR}${CONFDIR}${XDIR}
        !           160: 
        !           161: inc:
        !           162: #      echo "Removing /usr/include/X.old if any exists....."
        !           163: #      rm -rf ${DESTDIR}/usr/include/X.old/
        !           164: #      echo "/usr/include/X being moved to /usr/include/X.old"
        !           165: #      -mv -f ${DESTDIR}/usr/include/X ${DESTDIR}/usr/include/X.old
        !           166:        -mkdir ${DESTDIR}/usr/include/X > /dev/null 2>&1
        !           167:        for i in X Xlib XMenu; do \
        !           168:            (cd $$i;  echo "copying include files $$i";\
        !           169:             make ${MFLAGS} DESTDIR=${DESTDIR} CONFDIR=${CONFDIR} include;\
        !           170:             cd ..); \
        !           171:        done
        !           172: 
        !           173: clean:
        !           174:        rm -f a.out core *~ *.o errs ERRS \#*
        !           175:        for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean; cd ..); done
        !           176:        -rm -rf ${DESTDIR}${CONFDIR}${XDIR}.old ${DESTDIR}/usr/include/X.old
        !           177: 
        !           178: 
        !           179: # useful entry if you decide to change your configuration for binaries.
        !           180: reconfig:
        !           181:        for i in ${SUBDIR}; do \
        !           182:           (umask 222; cd $$i; \
        !           183:           sed -e "s[/usr/new[${CONFDIR}[" <Makefile >Makefile.new;\
        !           184:           mv -f Makefile.new Makefile; cd .. ); \
        !           185:        done
        !           186: 
        !           187: 
        !           188: # move bin directory into ${CONFDIR}
        !           189: berkeleydist:  clean
        !           190:        rm -rf xperfmon test
        !           191:        rm -rf man/xperfmon.1
        !           192:        rm -f xted/*.bin xdemo/*.bin xfax/*.bin
        !           193:        rm -rf RCS */RCS */*/RCS */*/*/RCS
        !           194:        rm -rf maint
        !           195: 
        !           196: mitdist:
        !           197:        rm -rf test
        !           198:        rm -rf RCS */RCS */*/RCS */*/*/RCS
        !           199:        rm -rf maint
        !           200: 
        !           201: 
        !           202: xlibchange:
        !           203:        fgrep -v '#include <sys/types.h>' Xlib/Xlib.h >/tmp/nxlib
        !           204:        mv -f /tmp/nxlib Xlib/Xlib.h

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.