Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / mts / mh / Makefile
1 ##############################################################################
2 #    Instructions to Make, for compilation of standalone-MTS library
3 #
4 #       This file is automatically generated.  Do not edit!
5 # @(#)$Id: mh,v 1.10 1992/11/20 17:14:07 jromine Exp $
6 ##############################################################################
7
8 # The following entries were inserted during MH configuration
9 OPTIONS=        -DSYS5 -DSVR4 -DFCNTL -DRENAME -DVSPRINTF -DATTVIBUG -DDBMPWD -DDUMB -DMORE='"/usr/bin/more"' -DMSGPROT='"0600"' -DMSGID -DRPATHS -DSOCKETS -DFOLDPROT='"0711"' -DSHADOW -DSYS5DIR -DMHRC -DMHE -DMIME -DSENDMTS -DSMTP -DSPRINTFTYPE=int -DTYPESIG=void -O -g -I..
10
11 CC      =       cc
12 CFLAGS  =       $(OPTIONS)
13 LINT    =       lint
14 LFLAGS  =       -bhu $(OPTIONS)
15 LLIBS   =       
16 CP      =       cp
17 LN      =       ln
18
19 LIB     =       mhmts.a
20
21 CFILES  =       hosts.c netmail.c uucp.c
22 OFILES  =       hosts.o netmail.o uucp.o
23
24
25 ##############################################################################
26 #       Generation Rules
27 ##############################################################################
28 .c.o:;          $(CC) $(CFLAGS) -c $*.c
29
30
31 ##############################################################################
32 #       Here it is...
33 ##############################################################################
34
35 all:            $(LIB)
36 depend:;
37 lint:           l-mhmts
38
39 $(LIB):         $(OFILES)
40                 -mv $@ z$@
41                 ar r $@ `lorder $(OFILES) | tsort`
42                 -rm -f ../libmts.a
43                 -cd ..; $(LN) mh/$@ libmts.a
44                 -rm -f ../llib-lmts
45                 -cd .. ; $(LN) mh/llib-lmhmts llib-lmts
46                 -@ls -l $@
47                 -@echo "standalone-MTS library built normally"
48
49 l-mhmts:;       $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
50
51 hosts.o:        Makefile
52 netmail.o:      Makefile
53 uucp.o:         Makefile
54
55
56 ##############################################################################
57 #       Miscellaneous tasks
58 ##############################################################################
59
60 unconfig:       distribution
61                 -rm -f Makefile
62
63 distribution:   clean
64
65 clean:          unclean
66                 -rm -f *.o $(LIB) z$(LIB)
67
68 unclean:;       -rm -f _* :* core