]> diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/conf/makefiles/mts/mh
Removed hyphen from all occurrences of RFC-*.
[nmh] / docs / historical / mh-6.8.5 / conf / makefiles / mts / mh
1 ##############################################################################
2 # Instructions to Make, for compilation of standalone-MTS library
3 #
4 # @(MHWARNING)
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= @(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 LINT = lint
19 LFLAGS = -bhu $(OPTIONS)
20 LLIBS =
21 CP = @(CP)
22 LN = @(LN)
23
24 LIB = mhmts.a
25
26 CFILES = hosts.c netmail.c uucp.c
27 OFILES = hosts.o netmail.o uucp.o
28
29
30 @BEGIN: OPTIM
31 ##############################################################################
32 # Generation Rules
33 ##############################################################################
34 .c.o:; $(CC) $(CFLAGS) -c $*.c
35 @BEGIN: NEWLOAD
36 -ld -x -r $@
37 mv a.out $@
38 @END: NEWLOAD
39 @BEGIN: OLDLOAD
40 ${CC} -s -o $@
41 @END: OLDLOAD
42
43
44 @END: OPTIM
45 ##############################################################################
46 # Here it is...
47 ##############################################################################
48
49 all: $(LIB)
50 depend:;
51 lint: l-mhmts
52
53 $(LIB): $(OFILES)
54 -mv $@ z$@
55 @BEGIN: RANLIB
56 ar r $@ $(OFILES); ranlib $@
57 @END: RANLIB
58 @BEGIN: LORDER
59 ar r $@ `lorder $(OFILES) | tsort`
60 @END: LORDER
61 -rm -f ../libmts.a
62 -cd ..; $(LN) mh/$@ libmts.a
63 -rm -f ../llib-lmts
64 -cd .. ; $(LN) mh/llib-lmhmts llib-lmts
65 -@ls -l $@
66 -@echo "standalone-MTS library built normally"
67
68 l-mhmts:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
69
70 hosts.o: Makefile
71 netmail.o: Makefile
72 uucp.o: Makefile
73
74
75 ##############################################################################
76 # Miscellaneous tasks
77 ##############################################################################
78
79 unconfig: distribution
80 -rm -f Makefile
81
82 distribution: clean
83
84 clean: unclean
85 -rm -f *.o $(LIB) z$(LIB)
86
87 unclean:; -rm -f _* :* core