Commit | Line | Data |
---|---|---|
ad787160 C |
1 | ############################################################################## |
2 | # Instructions to Make, for compilation of SendMail/SMTP-MTS library | |
3 | # | |
4 | # @(MHWARNING) | |
5 | # @(#)$Id: sendmail,v 1.10 1992/11/20 17:14:07 jromine Exp $ | |
6 | ############################################################################## | |
7 | ||
8 | # The following entries were inserted during MH configuration | |
9 | OPTIONS = @(MHOPTIONS) -I.. | |
10 | ||
11 | CC = @(MHCOMPILER) | |
12 | @BEGIN: OPTIM | |
13 | CFLAGS = $(OPTIONS) | |
14 | @END: OPTIM | |
15 | @BEGIN: DEBUG | |
16 | CFLAGS = $(OPTIONS) | |
17 | @END: DEBUG | |
18 | LFLAGS = -bhu $(OPTIONS) | |
19 | CP = @(CP) | |
20 | LN = @(LN) | |
21 | ||
22 | LIB = sendmts.a | |
23 | ||
24 | CFILES = hosts.c smail.c | |
25 | OFILES = hosts.o smail.o | |
26 | ||
27 | ||
28 | @BEGIN: OPTIM | |
29 | ############################################################################## | |
30 | # Generation Rules | |
31 | ############################################################################## | |
32 | ||
33 | .c.o:; $(CC) $(CFLAGS) -c $*.c | |
34 | @BEGIN: NEWLOAD | |
35 | -ld -x -r $@ | |
36 | mv a.out $@ | |
37 | @END: NEWLOAD | |
38 | @BEGIN: OLDLOAD | |
39 | ${CC} -s -o $@ | |
40 | @END: OLDLOAD | |
41 | ||
42 | ||
43 | @END: OPTIM | |
44 | ############################################################################## | |
45 | # Here it is... | |
46 | ############################################################################## | |
47 | ||
48 | all: $(LIB) | |
49 | depend:; | |
50 | lint: l-sendmts | |
51 | ||
52 | $(LIB): $(OFILES) | |
53 | -mv $@ z$@ | |
54 | @BEGIN: RANLIB | |
55 | ar r $@ $(OFILES); ranlib $@ | |
56 | @END: RANLIB | |
57 | @BEGIN: LORDER | |
58 | ar r $@ `lorder $(OFILES) | tsort` | |
59 | @END: LORDER | |
60 | -rm -f ../libmts.a | |
61 | -cd ..; $(LN) sendmail/$@ libmts.a | |
62 | -rm -f ../llib-lmts | |
63 | -cd .. ; $(LN) sendmail/llib-lsendmail llib-lmts | |
64 | -@ls -l $@ | |
65 | -@echo "SendMail/SMTP-MTS library built normally" | |
66 | ||
67 | l-sendmts:; lint $(LFLAGS) $(CFILES) $(LLIBS) | |
68 | ||
69 | hosts.o: Makefile | |
70 | smail.o: Makefile smail.h | |
71 | ||
72 | ||
73 | ############################################################################## | |
74 | # Miscellaneous tasks | |
75 | ############################################################################## | |
76 | ||
77 | unconfig: distribution | |
78 | -rm -f Makefile | |
79 | ||
80 | distribution: clean | |
81 | -rm -f bboardsMH.m4 popMH.m4 | |
82 | ||
83 | clean: unclean | |
84 | -rm -f *.o $(LIB) z$(LIB) | |
85 | ||
86 | unclean:; -rm -f _* :* core |