Annotation of 43BSD/contrib/xns/courierlib/Makefile, revision 1.1.1.1

1.1       root        1: # $Header: Makefile,v 2.0 85/11/21 07:21:59 jqj Exp $
                      2: 
                      3: # $Log:        Makefile,v $
                      4: # Revision 2.0  85/11/21  07:21:59  jqj
                      5: # 4.3BSD standard release
                      6: # 
                      7: # Revision 1.1  85/11/04  11:27:24  jqj
                      8: # Initial revision
                      9: # 
                     10: # Revision 1.5  85/05/23  06:21:01  jqj
                     11: # Public Beta-test version, released 24 May 1985
                     12: # 
                     13: # Revision 1.4  85/03/26  06:11:32  jqj
                     14: # Revised public alpha-test version, released 26 March 1985
                     15: # 
                     16: # Revision 1.3  85/03/12  04:49:31  jqj
                     17: # added "clean" entry point
                     18: # 
                     19: # Revision 1.2  85/03/11  16:44:09  jqj
                     20: # Public alpha-test version, released 11 March 1985
                     21: # 
                     22: 
                     23: CFLAGS= -O
                     24: CRLIB = ${DESTDIR}/usr/new/lib/xnscourier
                     25: OUT = ${DESTDIR}/usr/local/lib/libcourier.a
                     26: OUT_P = ${DESTDIR}/usr/local/lib/libcourier_p.a
                     27: RCSREV=
                     28: RCSNAME=current
                     29: BINDIR=/usr/new
                     30: 
                     31: # order is important in the following:
                     32: SRCS=Time2.cr Authentication1.cr BulkData1.cr Clearinghouse2.cr \
                     33:                Authentication2.cr Printing3.cr
                     34: 
                     35: CRHDRS=Time2.h Authentication1.h BulkData1.h Clearinghouse2.h \
                     36:                Authentication2.h Printing3.h
                     37: 
                     38: # these names must be 12 chars or less for ar
                     39: OBJS=Time2.o Authent1.o BulkData1.o CH2.o Authent2.o Printing3.o CHEntries.o
                     40: 
                     41: .SUFFIXES: .h .cr
                     42: 
                     43: # build the standard library entries
                     44: install: all
                     45:        ar rv ${OUT} ${OBJS} *_c.o
                     46:        cd profiled; ar rv ${OUT_P} ${OBJS} *_c.o
                     47:        ranlib ${OUT} ${OUT_P}
                     48:        date > install
                     49: 
                     50: # order is important here too
                     51: all:   libcourier Courierservices ${CRHDRS} ${OBJS}
                     52: 
                     53: 
                     54: # for the following to work, we first need:
                     55: #  1) /usr/local/lib/courier and /usr/include/courier directories
                     56: #  2) Courierservices in its appropriate place
                     57: #  3) for any DEPENDS UPON construct, the associated .h and .cr
                     58: #     files must already be installed
                     59: 
                     60: .cr.h:
                     61:        ${BINDIR}/xnscourier $*.cr
                     62:        install -c -m 644 $*.h ${DESTDIR}/usr/include/xnscourier/$*.h
                     63:        install -c -m 644 $*.cr ${CRLIB}/$*.cr
                     64: .h.o:
                     65:        ${CC} ${CFLAGS} -p -c $*_support.c
                     66:        mv $*_support.o profiled/$*.o
                     67:        ${CC} ${CFLAGS} -c $*_support.c
                     68:        mv $*_support.o $*.o
                     69:        -if [ -f $*_client.c ]; then ${CC} ${CFLAGS} -p -c $*_client.c; \
                     70:        mv $*_client.o profiled/$*_c.o; \
                     71:        ${CC} ${CFLAGS} -c $*_client.c; \
                     72:        mv $*_client.o $*_c.o;  fi
                     73: 
                     74: # CHEntries is a bit special
                     75: CHEntries.o: CHEntries0.o
                     76:        cp /usr/include/xnscourier/CHEntries0.h /usr/include/xnscourier/CHEntries.h
                     77:        cp CHEntries0.o CHEntries.o
                     78:        -mv profiled/CHEntries0.o profiled/CHEntries.o
                     79: 
                     80: # ar restricts the lengths of entry names
                     81: Authent1.o: Authentication1.o
                     82:        cp Authentication1.o Authent1.o
                     83:        -mv profiled/Authentication1.o profiled/Authent1.o
                     84: 
                     85: Authent2.o: Authentication2.o
                     86:        cp Authentication2.o Authent2.o
                     87:        -mv Authentication2_c.o Authent2_c.o
                     88:        -mv profiled/Authentication2.o profiled/Authent2.o
                     89:        -mv profiled/Authentication2_c.o profiled/Authent2_c.o
                     90: 
                     91: CH2.o: Clearinghouse2.o
                     92:        cp Clearinghouse2.o CH2.o
                     93:        -mv Clearinghouse2_c.o CH2_c.o
                     94:        -mv profiled/Clearinghouse2.o profiled/CH2.o
                     95:        -mv profiled/Clearinghouse2_c.o profiled/CH2_c.o
                     96: 
                     97: Time2.o: Time2.h
                     98: 
                     99: Authentication1.o: Authentication1.h
                    100: 
                    101: BulkData1.o: BulkData1.h
                    102: 
                    103: Clearinghouse2.o: Clearinghouse2.h
                    104: 
                    105: Authentication2.o: Authentication2.h
                    106: 
                    107: Printing3.o: Printing3.h
                    108: 
                    109: CHEntries0.o: CHEntries0.h
                    110: 
                    111: libcourier:
                    112:        @-if [ ! -d ${CRLIB} ]; then mkdir ${CRLIB}; fi;
                    113: 
                    114: 
                    115: Courierservices:
                    116:        rm -f Courierservices
                    117:        sed -e 's@/usr/local/lib/courier@${CRLIB}@g' services.txt >Courierservices
                    118:        cp Courierservices ${CRLIB}/Courierservices
                    119:        chmod 644 ${CRLIB}/Courierservices
                    120: 
                    121: clean:
                    122:        rm -f Courierservices *.h *.c *.o all profiled/*.[och] \
                    123:                profiled/all profile/install
                    124: 
                    125: rcs:
                    126:        rcs -l RCS/*
                    127:        cat ../rcsdescription | ci -q -u${RCSREV} -N${RCSNAME} RCS/*

unix.superglobalmegacorp.com

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