home *** CD-ROM | disk | FTP | other *** search
Makefile | 1986-11-30 | 3.2 KB | 109 lines |
- ####################################################################
- # makefile for uumail & uupath
- # program to integrate with pathalias created uucpmap databases
- # programs originally developed by Jeff Donnelly
- # updated to use pathalias database by Stan Barber
- # $Header: makefile,v 1.4 85/12/10 20:40:45 sob Exp $
- #
- # the following defines should be configured for you site
- # add -DDBM to CCFLAGS if your pathalias database used the
- # dbm(3) routines
- # if you are a ATT system III or system V site
- # or a masscomp add the -DSYSIII flags
- # If you want to use the opath subroutine to deal with
- # domain names add the -DOPATH flag to the CFLAGS line
- # you may want to modify the LIBS line to correspond to
- # libraries that you may need at you site
- # see conf.h for other changes that may need be made
- # If you DO NOT use a DBM formatted database and would like to
- # get the best possible speed from uumail, add the -DSORTED
- # flag and be sure to sort your database
- # IMPORTANT INFORMATION ABOUT UUCP
- # If your uucp does not understand the -g (grade) flag
- # add the -DNOGRADE flag to CFLAGS.
- # If your uucp does not know about the -a (returnto) flag
- # add the -DNORETURN flag to CFLAGS
- # $Log: makefile,v $
- # Revision 1.4 85/12/10 20:40:45 sob
- # Added install, mailer and all make options. Also defined BINDIR, UUCPDIR
- # and other useful things
- #
- # Revision 1.3 85/08/03 00:38:33 UUCP
- # Added support for shar and RCS.
- # Changed name of gethostname to gethostnam to allow RCS to work right.
- # Stan Barber
- #
- # Revision 1.2 85/07/11 19:28:52 sob
- # updated with gethostname.c
- #
- # Revision 1.1 85/07/11 19:23:22 sob
- # Initial revision
- #
- ###############################################################
- .SUFFIXES: .c,v .h,v
-
- CFLAGS= -O -DSYSIII -DDEBUG -DOPATH -DUGLYUUCP -DLOG -DSORTED
-
- LIBS=
-
- BINDIR=/usr/lbin
-
- UUCPDIR=/usr/lib/uucp
-
- LIBDIR=/usr/lib
-
- .c,v.c:
- co -q $*.c
-
- .h,v.h:
- co -q $*.h
-
- all: uumail rmail address
-
- uumail: getpath.o uumail.o gethostnam.o opath.o
- cc $(CFLAGS) getpath.o uumail.o gethostnam.o opath.o -o uumail $(LIBS)
-
- address:address.o opath.o getpath.o
- cc $(CFLAGS) address.o opath.o getpath.o -o address $(LIBS)
-
- getpath.o: getpath.c uuconf.h
-
- uupath.o: uupath.c uuconf.h
-
- uumail.o: uumail.c uuconf.h
-
- gethostnam.o:gethostnam.c
-
- address.o:address.c
-
- opath.o:opath.c
-
- rmail: rmail.c gethostnam.o
- cc $(CFLAGS) rmail.c gethostnam.o -o rmail $(LIBS)
-
- install: uumail address domains palias
- cp address $(BINDIR)
- cp uumail domains palias $(UUCPDIR)
- @echo "To install rmail in place of the current rmail, type"
- @echo "make mailer"
- ln $(UUCPDIR)/uumail $(BINDIR)/uupath
-
- mailer: rmail
- make install
- rm -rf /bin/rmail
- cp rmail /bin/rmail
-
-
- lint:
- lint $(CFLAGS) getpath.c uumail.c gethostnam.c opath.c
-
- clean:
- rm -f *.o *.CKP *.BAK *.bak
-
- doc: uumail.1 uupath.1 address.1 opath.3
- nroff -man uumail.1 >uumail.cat; nroff -man uupath.1 >uupath.cat; nroff -man address.1 >address.cat; nroff -man opath.3 >opath.cat
-
- shar: domains palias rmail.c opath.c address.c uumail.c uuconf.h gethostnam.c uupath.c getpath.c README makefile uumail.1 uupath.1 opath.3 address.1
- shar README domains palias rmail.c opath.c address.c uumail.c uuconf.h gethostnam.c uupath.c getpath.c makefile uumail.1 uupath.1 opath.3 address.1> shar.out
-
-