BSD 4_4_Lite1 release
[unix-history] / usr / src / contrib / mh-6.8.3a / conf / makefiles / mts / sendmail
CommitLineData
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
9OPTIONS = @(MHOPTIONS) -I..
10
11CC = @(MHCOMPILER)
12@BEGIN: OPTIM
13CFLAGS = $(OPTIONS)
14@END: OPTIM
15@BEGIN: DEBUG
16CFLAGS = $(OPTIONS)
17@END: DEBUG
18LFLAGS = -bhu $(OPTIONS)
19CP = @(CP)
20LN = @(LN)
21
22LIB = sendmts.a
23
24CFILES = hosts.c smail.c
25OFILES = 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
48all: $(LIB)
49depend:;
50lint: 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
67l-sendmts:; lint $(LFLAGS) $(CFILES) $(LLIBS)
68
69hosts.o: Makefile
70smail.o: Makefile smail.h
71
72
73##############################################################################
74# Miscellaneous tasks
75##############################################################################
76
77unconfig: distribution
78 -rm -f Makefile
79
80distribution: clean
81 -rm -f bboardsMH.m4 popMH.m4
82
83clean: unclean
84 -rm -f *.o $(LIB) z$(LIB)
85
86unclean:; -rm -f _* :* core