home *** CD-ROM | disk | FTP | other *** search
Makefile | 1986-11-30 | 3.0 KB | 117 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.5 86/02/26 03:33:10 sob Exp $
- #***************************************************************************
- # This work in its current form is Copyright 1986 Stan Barber
- # with the exception of opath, gethostname and the original getpath which
- # as far as I know are in the Public Domain. This software may be distributed
- # freely as long as no profit is made from such distribution and this notice
- # is reproducted in whole.
- # ***************************************************************************
- #
- ###############################################################
- .SUFFIXES: .c,v .h,v
-
-
-
- LIBS=
-
- BINDIR=/usr/lbin
-
- UUCPDIR=/usr/lib/uucp
-
- LIBDIR=/usr/lib
-
- UUMAIL=$(UUCPDIR)/uumail
-
- REALUUX=/usr/bin/uux
-
- OPTIONS= -DOPATH -DSYSIII -DDEBUG -DUGLYUUCP -DLOG -DSORTED
-
- CFLAGS= -O -DUUMAIL='"$(UUMAIL)"' -DREALUUX='"$(REALUUX)"' $(OPTIONS)
-
- SHELL=/bin/sh
- DIST1=README domains palias rmail.c
- DIST2= opath.c uumail.c uuconf.h gethostnam.c getpath.c alias.c
- DIST3= address.c makefile uux.c
- DIST4= uumail.1 opath.3 address.1 Alias.Design Sendmail Binary.Only
-
- DIST= $(DIST1) $(DIST2) $(DIST3) $(DIST4)
-
-
- .c,v.c:
- co -q $*.c
-
- .h,v.h:
- co -q $*.h
-
- all: uumail rmail address uux
-
- uumail: getpath.o uumail.o gethostnam.o opath.o alias.o
- cc $(CFLAGS) getpath.o uumail.o gethostnam.o opath.o alias.o -o uumail $(LIBS)
-
- address:address.o opath.o getpath.o
- cc $(CFLAGS) address.o opath.o getpath.o -o address $(LIBS)
-
- uux: uux.o
- cc $(CFLAGS) uux.o -o $@ $(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
-
- alias.o:alias.c
-
- aliascheck.o:aliascheck.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 $(UUCPDIR)
- if [ ! -r $(UUCPDIR)/domains ]; then cp domains $(UUCPDIR); fi
- if [ ! -r $(UUCPDIR)/palias ]; then cp palias $(UUCPDIR); fi
- @echo "To install rmail in place of the current rmail, type"
- @echo "make mailer"
- @echo "To intercept uux commands, you need to be sure"
- @echo "that you correctly specified REALUUX in makefile"
- @echo "Then type make fakeuux"
- ln $(UUCPDIR)/uumail $(BINDIR)/uupath
-
- mailer: rmail
- make install
- rm -rf /bin/rmail
- cp rmail /bin/rmail
-
- fakeuux: uux
- make install
- cp /usr/bin/uux $(REALUUX)
- cp uux /usr/bin/uux
- chmod 6755 /usr/bin/uux
-
- lint:
- lint $(CFLAGS) getpath.c uumail.c gethostnam.c opath.c alias.c
-
- clean:
- rm -f *.o uumail address rmail uux
-
- 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: $(DIST)
- shar -v $(DIST1) > dist1.out;shar -v $(DIST2)> dist2.out;shar -v $(DIST3) > dist3.out;shar -v $(DIST4) > dist4.out
-
-
-