Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / zotnet / Makefile
1 ##############################################################################
2 #    Instructions to Make, for compilation of ZOT UIP/utility processes
3 #
4 #       This file is automatically generated.  Do not edit!
5 # @(#)$Id: zotnetM,v 2.7 1992/10/29 16:25:20 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
10
11 CC      =       cc
12 CFLAGS  =       $(OPTIONS) -I.
13 LFLAGS  =       -bhu $(OPTIONS) -I.
14
15 LIB     =       libzot.a
16 LLIB    =       llib-lzotnet
17
18 OFILES  =       mts/mts.o mts/lock.o mts/client.o mf/mf.o \
19                 bboards/getbbent.o \
20                 tws/dtime.o tws/dtimep.o tws/lexstring.o
21
22 MAKE    =       make DESTDIR=$(DESTDIR) $(MFLAGS)
23 SHELL   =       /bin/sh
24
25 DIRS    =       mts bboards tws mf
26
27
28 ##############################################################################
29 #       Generation Rules
30 ##############################################################################
31
32 .c.o:;          $(CC) $(CFLAGS) -c $*.c
33
34
35
36 .c:;            echo $@
37
38 ##############################################################################
39 #       Generate ZOTnet subroutine library
40 ##############################################################################
41
42 all:            allaux $(LIB)
43
44 $(LIB):         $(OFILES)
45                 -mv $@ z$@
46                 ar r $@ `lorder $(OFILES) | tsort`
47                 -@ls -l $@
48                 -@echo "ZOTnet library built normally"
49
50 allaux:;        for d in $(DIRS); do (cd $$d; $(MAKE) all); done
51
52 depend:;        for d in $(DIRS); do (cd $$d; $(MAKE) depend); done
53
54 lint:;          for d in $(DIRS); do (cd $$d; $(MAKE) lint); done
55
56
57 ##############################################################################
58 #       Installation
59 ##############################################################################
60
61 install:        inst-all clean
62
63 inst-all:;      for d in $(DIRS); do (cd $$d; $(MAKE) inst-all); done
64
65 tar:;           @for d in $(DIRS); \
66                     do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done
67
68 uninstall:;     for d in $(DIRS); do (cd $$d; $(MAKE) uninstall); done
69
70
71 ##############################################################################
72 #       Miscellaneous tasks
73 ##############################################################################
74
75 unconfig:;      -rm -f $(LIB) z$(LIB) _* :* *.o core
76                 for d in $(DIRS); do (cd $$d; $(MAKE) unconfig); done
77                 -rm -f Makefile
78
79 distribution:;  -rm -f $(LIB) z$(LIB) _* :*
80                 for d in $(DIRS); do (cd $$d; $(MAKE) distribution); done
81
82 clean:;         -rm -f $(LIB) z$(LIB) _* :* *.o core
83                 for d in $(DIRS); do (cd $$d; $(MAKE) clean); done
84
85 unclean:;       -rm -f z$(LIB) _* :* core
86                 for d in $(DIRS); do (cd $$d; $(MAKE) unclean); done