Annotation of coherent/d/usr/bin/pax/shipping/Makefile, revision 1.1

1.1     ! root        1: #
        !             2: # PAX - read and write POSIX conformant tar and cpio archives 
        !             3: #
        !             4: # Written by Mark H. Colburn ([email protected])
        !             5: #
        !             6: # $Id: Makefile,v 1.1 88/12/23 18:02:42 mark Rel $
        !             7: #
        !             8: 
        !             9: #
        !            10: # CONFIGURATION SECTION
        !            11: #
        !            12: # The following defines may need to be changed for each system which PAX
        !            13: # is installed on.  Please review these settings before installing on your
        !            14: # system.
        !            15: 
        !            16: #
        !            17: # You should define _POSIX_SOURCE if you are running on a POSIX system.  This
        !            18: # include has to be in the command line because it has to appear before any
        !            19: # include file is included in the source.  For most systems in use today,
        !            20: # it should be left blank.
        !            21: # 
        !            22: # POSIX= -D_POSIX_SOURCE
        !            23: POSIX= 
        !            24: 
        !            25: #
        !            26: # Set CFLAGS to whatever makes your C compiler happy.  Be sure to include 
        !            27: # the definition of $(POSIX) in the flag.
        !            28: #
        !            29: CFLAGS = -O $(POSIX)
        !            30: CC = cc
        !            31: 
        !            32: #
        !            33: # Set LFLAGS to whatever makes your linker happy
        !            34: #
        !            35: #LDFLAGS = -s
        !            36: LDFLAGS=
        !            37: 
        !            38: #
        !            39: # Set LINTFLAGS to whatever makes your implementation of lint happy.  If
        !            40: # you don't undef __STDC__ and you have an ANSI C compiler, lints will choke 
        !            41: # on the function prototypes present in func.h
        !            42: #
        !            43: LINTFLAGS = -U__STDC__ $(POSIX)
        !            44: 
        !            45: #
        !            46: # BINDIR - points to the directory in which you want the final pax, ustar and
        !            47: # cpio binaries installed in.
        !            48: #
        !            49: BINDIR = /usr/lbin
        !            50: DESTDIR= /interim/usr/bin/
        !            51: 
        !            52: #
        !            53: # MANDIR - specify the directory in which the man pages will be installed
        !            54: #
        !            55: MAN5 = /usr/manl5
        !            56: MAN1 = /usr/manl
        !            57: 
        !            58: #
        !            59: # There are three different ways to get POSIX or BSD conformant directory 
        !            60: # access routines: 1) they are installed in your system library, 2) you 
        !            61: # are using Doug Gwyn's dirent library (/usr/lib/libdirent.a), or 3) you 
        !            62: # need the source for the dirent package.  Based on that, pick one of the 
        !            63: # following three options:
        !            64: #
        !            65: # 1. Pick the first dirent line and make sure that config.h is defined
        !            66: #    correctly for your version of directory access routines.  THIS IS
        !            67: #    THE LINE WHICH SHOULD BE USED FOR BSD SYSTEMS.
        !            68: # 2. Chose the second dirent line which  used a library at link time.  You
        !            69: #    may need to change the name of the library to match your system.
        !            70: # 3. If you need #3, then you must copy everything in the subdirectory dirent 
        !            71: #    to this directory and choose the DIROBJ lines.  Please note that this 
        !            72: #    version of dirent has been modified to work as a stand-alone. 
        !            73: #
        !            74: DIRENT= -lndir
        !            75: #DIRENT= -ldirent
        !            76: #DIROBJ= paxdir.o
        !            77: #DIRSOURCE= paxdir.c
        !            78: 
        !            79: #
        !            80: # END CONFIGURATION SECTION 
        !            81: #
        !            82: # Nothing beyond this point should need to be changed.
        !            83: #
        !            84: 
        !            85: MISC   = Makefile pax.1 ustar.5 cpio.5 README PATCHLEVEL
        !            86: HEADERS= config.h func.h limits.h port.h pax.h 
        !            87: SOURCE= pax.c append.c buffer.c cpio.c create.c extract.c fileio.c\
        !            88:        link.c list.c mem.c opendir.c namelist.c names.c pass.c pathname.c\
        !            89:        port.c regexp.c replace.c ustar.c ttyio.c warn.c wildmat.c $(DIRSOURCE)
        !            90: OBJECT= pax.o append.o buffer.o cpio.o create.o extract.o fileio.o\
        !            91:        link.o list.o mem.o namelist.o names.o opendir.o pass.o pathname.o\
        !            92:        port.o regexp.o replace.o ustar.o ttyio.o warn.o wildmat.o $(DIROBJ)
        !            93: PROGS = pax ustar cpio
        !            94: PMAN1 = pax.1 ustar.1
        !            95: PMAN5 = pax.5 ustar.5
        !            96: DESTDIR= /interim/usr/bin/
        !            97: 
        !            98: pax : $(OBJECT)
        !            99:        $(CC) $(CFLAGS) -o $(DESTDIR)pax $(OBJECT) $(DIRENT) 
        !           100:        fixstack +2000 $(DESTDIR)pax
        !           101:        su root chown bin $(DESTDIR)$@
        !           102:        su root chgrp bin $(DESTDIR)$@
        !           103:        su root chmod 511 $(DESTDIR)$@
        !           104:        su root ln -f $(DESTDIR)pax $(DESTDIR)ustar
        !           105:        su root ln -f $(DESTDIR)pax $(DESTDIR)cpio
        !           106: 

unix.superglobalmegacorp.com

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