Mercurial > hg > Applications > mh
comparison conf/makefiles/mts/mh @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children | 441a2190cfae |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bce86c4163a3 |
---|---|
1 ############################################################################## | |
2 # Instructions to Make, for compilation of standalone-MTS library | |
3 # | |
4 # @(MHWARNING) | |
5 # @(#)$Id$ | |
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 -if [ -f $@ ]; then \ | |
55 mv $@ z$@; \ | |
56 fi | |
57 @BEGIN: RANLIB | |
58 ar r $@ $(OFILES); ranlib $@ | |
59 @END: RANLIB | |
60 @BEGIN: LORDER | |
61 ar r $@ `lorder $(OFILES) | tsort` | |
62 @END: LORDER | |
63 -rm -f ../libmts.a | |
64 -cd ..; $(LN) mh/$@ libmts.a | |
65 -rm -f ../llib-lmts | |
66 -cd .. ; $(LN) mh/llib-lmhmts llib-lmts | |
67 -@ls -l $@ | |
68 -@echo "standalone-MTS library built normally" | |
69 | |
70 l-mhmts:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS) | |
71 | |
72 hosts.o: Makefile | |
73 netmail.o: Makefile | |
74 uucp.o: Makefile | |
75 | |
76 | |
77 ############################################################################## | |
78 # Miscellaneous tasks | |
79 ############################################################################## | |
80 | |
81 unconfig: distribution | |
82 -rm -f Makefile | |
83 | |
84 distribution: clean | |
85 | |
86 clean: unclean | |
87 -rm -f *.o $(LIB) z$(LIB) | |
88 | |
89 unclean:; -rm -f _* :* core *.core |