|
|
1.1 ! root 1: # $Header: Makefile,v 2.2 87/01/31 12:55:03 jqj Exp $ ! 2: # ! 3: # $Log: Makefile,v $ ! 4: # Revision 2.2 87/01/31 12:55:03 jqj ! 5: # make sure include/xnscourier directory exists ! 6: # ! 7: # Revision 2.1 87/01/05 12:10:14 ed ! 8: # Webster version -- redo make and make install ! 9: # ! 10: # Revision 2.1 87/01/05 12:10:14 ed ! 11: # Updated to new directory structure ! 12: # ! 13: # Revision 2.0 85/11/21 07:22:01 jqj ! 14: # 4.3BSD standard release ! 15: # ! 16: # Revision 1.3 85/11/20 12:28:16 jqj ! 17: # 4.3BSD standard release ! 18: # ! 19: # Revision 1.2 85/10/21 12:45:32 jqj ! 20: # Gould version: -g option breaks the compiler, so build -lcourier without ! 21: # it. ! 22: # ! 23: # Revision 1.1 85/10/18 08:52:09 jqj ! 24: # Initial revision ! 25: # ! 26: # Revision 1.5 85/03/26 06:08:22 jqj ! 27: # Revised public alpha-test version, released 26 March 1985 ! 28: # ! 29: # Revision 1.4 85/03/11 16:36:33 jqj ! 30: # Public alpha-test version, released 11 March 1985 ! 31: # ! 32: # Revision 1.3 85/03/11 16:34:14 jqj ! 33: # Public alpha-test version, released 11 March 1985 ! 34: # ! 35: ! 36: DESTDIR = ! 37: DESTBIN = ${DESTDIR}/usr/new ! 38: DESTCOURIER = ${DESTDIR}/usr/new/lib/xnscourier ! 39: ! 40: BINDIR = ../bin ! 41: LIBDIR = ../lib ! 42: MANDIR = ../man ! 43: INCDIR = ../include ! 44: COURIERDIR = ../xnscourier ! 45: ! 46: MFLAGS = DESTDIR=${DESTDIR} DESTBIN=${DESTBIN} DESTCOURIER=${DESTCOURIER} \ ! 47: BINDIR=../${BINDIR} LIBDIR=../${LIBDIR} MANDIR=../${MANDIR} \ ! 48: INCDIR=../${INCDIR} COURIERDIR=../${COURIERDIR} ! 49: ! 50: SRCS= client.c server.c readwrite.c misc.c bdt.c names.c options.c \ ! 51: lookahead.c sppclose.c getcourierent.c getcservice.c except.c ! 52: OBJS= client.o server.o readwrite.o misc.o bdt.o names.o options.o \ ! 53: lookahead.o sppclose.o getcourierent.o getcservice.o except.o ! 54: HDRS= courier.h courierconnection.h courierdb.h except.h \ ! 55: realcourierconnection.h ! 56: #CFLAGS= -g -DDEBUG -I. ! 57: CFLAGS= -O -I. ! 58: DESTDIR= ! 59: RCSREV= ! 60: RCSNAME=current ! 61: OUT = ${LIBDIR}/libcourier.a ! 62: OUT_P = ${LIBDIR}/libcourier_p.a ! 63: ! 64: .c.o: ! 65: ${CC} -c ${CFLAGS} -p $*.c ! 66: mv $*.o profiled/$*.o ! 67: ${CC} -c ${CFLAGS} $*.c ! 68: ! 69: install: all ! 70: -mkdir ${INCDIR} ! 71: -mkdir ${INCDIR}/xnscourier ! 72: install -c -m 644 courier.h ${INCDIR}/xnscourier ! 73: install -c -m 644 courierdb.h ${INCDIR}/xnscourier ! 74: install -c -m 644 realcourierconnection.h ${INCDIR}/xnscourier ! 75: install -c -m 644 courierconnection.h ${INCDIR}/xnscourier ! 76: install -c -m 644 except.h ${INCDIR}/xnscourier ! 77: ar cr ${OUT} ${OBJS} ! 78: cd profiled; ar cr ../${OUT_P} ${OBJS} ! 79: ranlib ${OUT} ${OUT_P} ! 80: ! 81: all: ${OBJS} ! 82: ! 83: getcourierent.o: courierdb.h getcourierent.c ! 84: ${CC} -c ${CFLAGS} -D'CSERVICES="${DESTCOURIER}/Courierservices"' \ ! 85: -p getcourierent.c ! 86: mv getcourierent.o profiled/getcourierent.o ! 87: ${CC} -c ${CFLAGS} -D'CSERVICES="${DESTCOURIER}/Courierservices"' \ ! 88: getcourierent.c ! 89: ! 90: lookahead.o: courierdb.h lookahead.o ! 91: ${CC} -c ${CFLAGS} -D'COURLIB="${DESTCOURIER}"' -p lookahead.c ! 92: mv lookahead.o profiled/lookahead.o ! 93: ${CC} -c ${CFLAGS} -D'COURLIB="${DESTCOURIER}"' lookahead.c ! 94: ! 95: bdt.o client.o lookahead.o misc.o readwrite.o server.o: courier.h ! 96: ! 97: bdt.o client.o lookahead.o readwrite.o server.o: realcourierconnection.h ! 98: ! 99: ! 100: lint: ${SRCS} ! 101: lint -hux ${SRCS} ! 102: ! 103: tags: ${SRCS} courier.h realcourierconnection.h ! 104: ctags ${SRCS} courier.h realcourierconnection.h ! 105: ! 106: ! 107: clean: ! 108: -rm -f ${OBJS} profiled/*.o *.BAK *.CKP ! 109: ! 110: rcs: ! 111: rcs -l RCS/* ! 112: cat ../rcsdescription | ci -u${RCSREV} -q -N${RCSNAME} RCS/*
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.