Annotation of coherent/e/bin/pax/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.2 92/08/28 08:43:25 bin Exp Locker: bin $
        !             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: COPY = /bin/cp
        !            32: DESTDIR=/bin386/usr/bin/
        !            33: DESTDIR2=/bin386/bin/
        !            34: 
        !            35: #
        !            36: # Set LFLAGS to whatever makes your linker happy
        !            37: #
        !            38: #LDFLAGS = -s
        !            39: LDFLAGS = 
        !            40: 
        !            41: #
        !            42: # Set LINTFLAGS to whatever makes your implementation of lint happy.  If
        !            43: # you don't undef __STDC__ and you have an ANSI C compiler, lint will choke 
        !            44: # on the function prototypes present in func.h
        !            45: #
        !            46: LINTFLAGS = -U__STDC__ $(POSIX)
        !            47: 
        !            48: #
        !            49: # BINDIR - points to the directory in which you want the final pax, tar and
        !            50: # cpio binaries installed in.
        !            51: #
        !            52: BINDIR = /usr/local/bin
        !            53: 
        !            54: #
        !            55: # MANDIR - specify the directory in which the man pages will be installed
        !            56: #
        !            57: MAN5 = /usr/man/man5
        !            58: MAN1 = /usr/man/manl
        !            59: 
        !            60: #
        !            61: # There are three different ways to get POSIX or BSD conformant directory 
        !            62: # access routines: 1) they are installed in your system library, 2) you 
        !            63: # are using Doug Gwyn's dirent library (/usr/lib/libdirent.a), or 3) you 
        !            64: # need the source for the dirent package.  Based on that, pick one of the 
        !            65: # following three options:
        !            66: #
        !            67: # 1. Pick the first dirent line and make sure that config.h is defined
        !            68: #    correctly for your version of directory access routines.  THIS IS
        !            69: #    THE LINE WHICH SHOULD BE USED FOR BSD SYSTEMS.
        !            70: # 2. Chose the second dirent line which  used a library at link time.  You
        !            71: #    may need to change the name of the library to match your system.
        !            72: # 3. If you need #3, then you must copy everything in the subdirectory dirent 
        !            73: #    to this directory and choose the DIROBJ lines.  Please note that this 
        !            74: #    version of dirent has been modified to work as a stand-alone. 
        !            75: #
        !            76: DIRENT=
        !            77: #DIRENT= -ldirent
        !            78: #DIROBJ= paxdir.o
        !            79: 
        !            80: #
        !            81: # END CONFIGURATION SECTION 
        !            82: #
        !            83: # Nothing beyond this point should need to be changed.
        !            84: #
        !            85: 
        !            86: MISC   = Makefile pax.1 tar.5 cpio.5 README PATCHLEVEL
        !            87: HEADERS= config.h func.h limits.h port.h pax.h 
        !            88: SOURCE= pax.c append.c buffer.c cpio.c create.c extract.c fileio.c\
        !            89:        link.c list.c mem.c namelist.c names.c pass.c pathname.c\
        !            90:        port.c regexp.c replace.c tar.c ttyio.c warn.c wildmat.c
        !            91: OBJECT= pax.o append.o buffer.o cpio.o create.o extract.o fileio.o\
        !            92:        link.o list.o mem.o namelist.o names.o pass.o pathname.o\
        !            93:        port.o regexp.o replace.o tar.o ttyio.o warn.o wildmat.o $(DIROBJ)
        !            94: PROGS = pax tar cpio
        !            95: PMAN1 = pax.1 tar.1
        !            96: PMAN5 = pax.5 tar.5
        !            97: 
        !            98: romana: pax
        !            99:        >done!
        !           100: 
        !           101: all: $(PROGS)
        !           102: 
        !           103: install: $(PROGS)
        !           104:        mv $(PROGS) $(BINDIR)
        !           105: #      cp $(PMAN1) $(MAN1)
        !           106:        cp pax.1 $(MAN1)/pax.l
        !           107:        chmod 644 $(MAN1)/pax.l
        !           108:        cp cpio.1 $(MAN1)/cpio.l
        !           109:        chmod 644 $(MAN1)/cpio.l
        !           110:        cp tar.1 $(MAN1)/tar.l
        !           111:        chmod 644 $(MAN1)/tar.l
        !           112: #      cp $(PMAN5) $(MAN5)
        !           113: 
        !           114: clean:
        !           115:        rm -f $(OBJECT)
        !           116:        rm -f $(PROGS) a.out *.BAK *.bak 
        !           117: 
        !           118: lint:
        !           119:        lint $(LINTFLAGS) $(SOURCE)
        !           120: 
        !           121: pax : $(OBJECT)
        !           122:        $(CC) $(CFLAGS) -o $(DESTDIR)pax $(OBJECT) $(DIRENT) 
        !           123:        ln -f $(DESTDIR)pax $(DESTDIR)cpio
        !           124:        ln -f $(DESTDIR)pax $(DESTDIR)ustar
        !           125:        ln -f $(DESTDIR)pax $(DESTDIR2)tar
        !           126: 
        !           127: tar: pax
        !           128:        rm -f tar
        !           129:        $(COPY) pax tar
        !           130: 
        !           131: cpio: pax
        !           132:        rm -f cpio
        !           133:        $(COPY) pax cpio
        !           134: 
        !           135: $(OBJECT): $(HEADERS)

unix.superglobalmegacorp.com

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