|
|
1.1 root 1: ##############################################################################
2: # Instructions to Make, for compilation of MMDF-MTS library
3: #
4: # @(MHWARNING)
5: ##############################################################################
6:
7: # The following entries were inserted during MH configuration
8: OPTIONS = @(MHOPTIONS) -I..
9:
10: CC = @(CC)
11: @BEGIN: OPTIM
12: CFLAGS = -O $(OPTIONS)
13: @END: OPTIM
14: @BEGIN: DEBUG
15: CFLAGS = $(OPTIONS)
16: @END: DEBUG
17: LINT = lint
18: LFLAGS = -bhu $(OPTIONS)
19: LLIBS =
20:
21: LIB = mmdfmts.a
22:
23: CFILES = hosts.c
24: OFILES = hosts.o
25:
26:
27: @BEGIN: OPTIM
28: ##############################################################################
29: # Generation Rules
30: ##############################################################################
31:
32: .c.o:; $(CC) $(CFLAGS) -c $*.c
33: @BEGIN: NEWLOAD
34: -ld -x -r $@
35: mv a.out $@
36: @END: NEWLOAD
37: @BEGIN: OLDLOAD
38: cc -s -o $@
39: @END: OLDLOAD
40:
41:
42: @END: OPTIM
43: ##############################################################################
44: # Here it is...
45: ##############################################################################
46:
47: all: $(LIB)
48: depend:;
49: lint: l-mmdf
50:
51: @BEGIN: MMDFIMTS
52: $(LIB): $(OFILES) mmdf_lib.a util_lib.a
53: -mv $(LIB) z$(LIB)
54: -rm -fr tmp
55: mkdir tmp mmdf util
56: ln hosts.o mmdf_lib.a util_lib.a tmp
57: cd mmdf; ar x ../mmdf_lib.a; ln *.o ../tmp
58: cd util; ar x ../util_lib.a; ln *.o ../tmp
59: -@rm -f tmp/signal.o #dont want 4.1 signal package
60: @BEGIN: RANLIB
61: cd tmp; ar r ../$@ *.o; ranlib $@
62: @END: RANLIB
63: @BEGIN: LORDER
64: cd tmp; ar r ../$@ `lorder *.o | tsort`
65: @END: LORDER
66: rm -fr tmp mmdf util
67: -rm -f ../libmts.a
68: ln $@ ../libmts.a
69: -rm -f ../llib-lmts
70: ln llib-lmmdf ../llib-lmts
71: -@ls -l $@
72: -@echo "MMDFI-MTS library built normally"
73: @END: MMDFIMTS
74:
75: @BEGIN: MMDFIIMTS
76: $(LIB): $(OFILES) libmmdf.a
77: -mv $(LIB) z$(LIB)
78: @BEGIN: RANLIB
79: cp libmmdf.a $@
80: ar r $@ hosts.o; ranlib $@
81: @END: RANLIB
82: @BEGIN: LORDER
83: mkdir tmp
84: cd tmp; ar x ../libmmdf.a
85: ln hosts.o tmp
86: cd tmp; ar r ../$@ `lorder *.o | tsort`
87: rm -fr tmp
88: @END: LORDER
89: -rm -f ../libmts.a
90: ln $@ ../libmts.a
91: -rm -f ../llib-lmts
92: ln llib-lmmdf ../llib-lmts
93: -@ls -l $@
94: -@echo "MMDFII-MTS library built normally"
95: @END: MMDFIIMTS
96:
97: l-mmdf:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
98:
99: hosts.o: Makefile
100:
101:
102: ##############################################################################
103: # Miscellaneous tasks
104: ##############################################################################
105:
106: distribution: clean
107:
108: clean: unclean
109: -rm -f *.o $(LIB) z$(LIB) ../libmts.a ../llib-lmts
110:
111: unclean:; -rm -f _* :* core
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.