Commit | Line | Data |
---|---|---|
53102063 C |
1 | ############################################################################### |
2 | # Instructions to Make, for compilation of ISODE FTAM processes | |
3 | ############################################################################### | |
4 | ||
5 | ############################################################################### | |
6 | # | |
7 | # $Header: /f/osi/ftam/RCS/Makefile,v 7.7 91/02/22 09:22:22 mrose Interim $ | |
8 | # | |
9 | # | |
10 | # $Log: Makefile,v $ | |
11 | # Revision 7.7 91/02/22 09:22:22 mrose | |
12 | # Interim 6.8 | |
13 | # | |
14 | # Revision 7.6 91/01/24 14:50:14 mrose | |
15 | # update | |
16 | # | |
17 | # Revision 7.5 90/12/23 18:39:53 mrose | |
18 | # update | |
19 | # | |
20 | # Revision 7.4 90/07/27 08:44:37 mrose | |
21 | # update | |
22 | # | |
23 | # Revision 7.3 90/07/09 14:36:30 mrose | |
24 | # sync | |
25 | # | |
26 | # Revision 7.2 90/07/01 21:02:59 mrose | |
27 | # pepsy | |
28 | # | |
29 | # Revision 7.1 90/03/06 13:56:31 mrose | |
30 | # touch-up | |
31 | # | |
32 | # Revision 7.0 89/11/23 21:53:13 mrose | |
33 | # Release 6.0 | |
34 | # | |
35 | ############################################################################### | |
36 | ||
37 | ############################################################################### | |
38 | # | |
39 | # NOTICE | |
40 | # | |
41 | # Acquisition, use, and distribution of this module and related | |
42 | # materials are subject to the restrictions of a license agreement. | |
43 | # Consult the Preface in the User's Manual for the full terms of | |
44 | # this agreement. | |
45 | # | |
46 | ############################################################################### | |
47 | ||
48 | ||
49 | PEPYPATH= -DPEPYPATH | |
50 | ||
51 | .SUFFIXES: .py .c .o | |
52 | ||
53 | ||
54 | LIBES = libftam.a $(TOPDIR)libisode.a | |
55 | LLIBS = $(TOPDIR)llib-lisode | |
56 | HFILES = $(HDIR)ftam.h \ | |
57 | $(HDIR)acsap.h $(HDIR)psap2.h $(HDIR)psap.h $(HDIR)ssap.h \ | |
58 | $(HDIR)isoaddrs.h \ | |
59 | $(HDIR)manifest.h $(HDIR)general.h $(HDIR)config.h | |
60 | HXFILES = $(HFILES) $(HDIR)fpkt.h CONT-types.h FADU-types.h \ | |
61 | FTAM-types.h | |
62 | ||
63 | ||
64 | ################################################################## | |
65 | # Here it is... | |
66 | ################################################################## | |
67 | ||
68 | all: libftam | |
69 | inst-all: inst-libftam documents manuals | |
70 | install: inst-all clean | |
71 | lint: l-libftam | |
72 | ||
73 | ||
74 | ################################################################## | |
75 | # libftam | |
76 | ################################################################## | |
77 | ||
78 | CFILES = ftamprovider.c ftamerror.c ftaminitiate.c ftamrespond.c \ | |
79 | ftamrelease1.c ftamrelease2.c ftamabort.c ftamgroup1.c \ | |
80 | ftamgroup2.c ftamaccess1.c ftamaccess2.c ftambulk.c \ | |
81 | ftambulk1.c ftambulk2.c ftamselect.c ftamtrace.c ftamacl.c \ | |
82 | ftamattr.c ftambits.c ftamchrg.c ftamconctl.c ftamdiag.c \ | |
83 | ftamfaduid.c ftampass.c ftamshare.c ftamlose.c ftamdocument.c \ | |
84 | ftamfdf.c | |
85 | PYFILES = cont.py fadu.py ftam.py | |
86 | OFILES = ftamprovider.o ftamerror.o ftaminitiate.o ftamrespond.o \ | |
87 | ftamrelease1.o ftamrelease2.o ftamabort.o ftamgroup1.o \ | |
88 | ftamgroup2.o ftamaccess1.o ftamaccess2.o ftambulk.o \ | |
89 | ftambulk1.o ftambulk2.o ftamselect.o ftamtrace.o ftamacl.o \ | |
90 | ftamattr.o ftambits.o ftamchrg.o ftamconctl.o ftamdiag.o \ | |
91 | ftamfaduid.o ftampass.o ftamshare.o ftamlose.o ftamdocument.o \ | |
92 | ftamfdf.o \ | |
93 | $(OSTRINGS) | |
94 | ||
95 | HEADERS = CONT.ph CONT-types.h CONT_defs.h CONT_pre_defs.h \ | |
96 | FADU.ph FADU-types.h FADU_defs.h FADU_pre_defs.h \ | |
97 | FTAM.ph FTAM-types.h FTAM_defs.h FTAM_pre_defs.h | |
98 | ||
99 | inst-libftam: $(LIBDIR)libftam.a inst-headers $(LINTDIR)llib-lftam | |
100 | ||
101 | $(LIBDIR)libftam.a: libftam.a | |
102 | -rm -f $@ | |
103 | cp libftam.a $@ | |
104 | @$(UTILDIR)make-lib.sh $(SYSTEM) $@ -ranlib | |
105 | -@ls -gls $@ | |
106 | -@echo "" | |
107 | ||
108 | $(LINTDIR)llib-lftam: llib-lftam | |
109 | -cp $@ zllib-lftam | |
110 | -rm -f $@ | |
111 | sed -e 's%#include "\(.*\)"%#include "$(INCDIR)\1"%' \ | |
112 | < llib-lftam | \ | |
113 | sed -e 's%#include "/usr/include/\(.*\)"%#include <\1>%' > $@ | |
114 | @$(UTILDIR)inst-lint.sh $(SYSTEM) $(OPTIONS) $@ | |
115 | -@ls -gls $@ $@.ln | |
116 | -@echo "" | |
117 | ||
118 | inst-headers:; @cd $(TOPDIR)h; $(MAKE) inst-ftam | |
119 | @for h in $(HEADERS); do $(MAKE) TARGET=$$h inst-target; done | |
120 | ||
121 | inst-target: $(PEPSYDIR)$(TARGET) | |
122 | ||
123 | $(PEPSYDIR)$(TARGET): $(TARGET) | |
124 | -cp $@ z$(TARGET) | |
125 | cp $(TARGET) $@ | |
126 | -@ls -gls $@ | |
127 | -@echo "" | |
128 | ||
129 | libftam: libftam.a true | |
130 | -@rm -f $(TOPDIR)h/CONT*.h $(TOPDIR)h/FADU*.h \ | |
131 | $(TOPDIR)h/FTAM*.h | |
132 | -@$(LN) CONT-types.h $(TOPDIR)h/CONT-types.h | |
133 | -@$(LN) CONT_defs.h $(TOPDIR)h/CONT_defs.h | |
134 | -@$(LN) CONT_pre_defs.h $(TOPDIR)h/CONT_pre_defs.h | |
135 | -@$(LN) FADU-types.h $(TOPDIR)h/FADU-types.h | |
136 | -@$(LN) FADU_defs.h $(TOPDIR)h/FADU_defs.h | |
137 | -@$(LN) FADU_pre_defs.h $(TOPDIR)h/FADU_pre_defs.h | |
138 | -@$(LN) FTAM-types.h $(TOPDIR)h/FTAM-types.h | |
139 | -@$(LN) FTAM_defs.h $(TOPDIR)h/FTAM_defs.h | |
140 | -@$(LN) FTAM_pre_defs.h $(TOPDIR)h/FTAM_pre_defs.h | |
141 | ||
142 | libftam.a: ftamvrsn.o | |
143 | -rm -f $@ | |
144 | @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) \ | |
145 | CONT_tables.o FADU_tables.o FTAM_tables.o ftamvrsn.o | |
146 | -@rm -f $(TOPDIR)libftam.a $(TOPDIR)llib-lftam | |
147 | -@$(LN) libftam.a $(TOPDIR)libftam.a | |
148 | -@$(LN) llib-lftam $(TOPDIR)llib-lftam | |
149 | -@ls -l $@ | |
150 | -@echo "FTAM library built normally" | |
151 | ||
152 | FTAM_tables.o: FTAM_tables.c FTAM-types.h CONT-types.h FADU-types.h | |
153 | ||
154 | FTAM_tables.c FTAM-types.h: ftam.py $(TOPDIR)pepsy/xpepsy | |
155 | $(TOPDIR)pepsy/xpepsy -A -f -h -m ftam.py | |
156 | ||
157 | FADU_tables.o: FADU_tables.c FADU-types.h | |
158 | ||
159 | FADU_tables.c FADU-types.h: fadu.py $(TOPDIR)pepsy/xpepsy | |
160 | $(TOPDIR)pepsy/xpepsy -A -f -h -m fadu.py | |
161 | ||
162 | CONT_tables.o: CONT_tables.c CONT-types.h | |
163 | ||
164 | CONT_tables.c CONT-types.h: cont.py $(TOPDIR)pepsy/xpepsy | |
165 | $(TOPDIR)pepsy/xpepsy -A -f -h -m cont.py | |
166 | ||
167 | ||
168 | ftamvrsn.c: $(OFILES) CONT_tables.o FADU_tables.o FTAM_tables.o | |
169 | @$(UTILDIR)version.sh ftam > $@ | |
170 | ||
171 | l-libftam: CONT_tables.c FADU_tables.c FTAM_tables.c true | |
172 | $(LINT) $(LFLAGS) $(CFILES) CONT_tables.c FADU_tables.c \ | |
173 | FTAM_tables.c ftamvrsn.c $(LLIBS) \ | |
174 | | grep -v "warning: possible pointer alignment problem" | |
175 | ||
176 | ftamprovider.o: $(HXFILES) | |
177 | ftamerror.o: $(HFILES) | |
178 | ftaminitiate.o: $(HXFILES) | |
179 | ftamrespond.o: $(HXFILES) | |
180 | ftamrelease1.o: $(HXFILES) | |
181 | ftamrelease2.o: $(HXFILES) | |
182 | ftamabort.o: $(HXFILES) | |
183 | ftamgroup1.o: $(HXFILES) | |
184 | ftamgroup2.o: $(HXFILES) | |
185 | ftamaccess1.o: $(HXFILES) | |
186 | ftamaccess2.o: $(HXFILES) | |
187 | ftambulk.o: $(HXFILES) | |
188 | ftambulk1.o: $(HXFILES) | |
189 | ftambulk2.o: $(HXFILES) | |
190 | ftamselect.o: $(HXFILES) | |
191 | ftamtrace.o: $(HXFILES) | |
192 | ftamacl.o: $(HXFILES) | |
193 | ftambits.o: $(HXFILES) | |
194 | ftamattr.o: $(HXFILES) | |
195 | ftamchrg.o: $(HXFILES) | |
196 | ftamconctl.o: $(HXFILES) | |
197 | ftamdiag.o: $(HXFILES) | |
198 | ftamfaduid.o: $(HXFILES) | |
199 | ftampass.o: $(HXFILES) | |
200 | ftamshare.o: $(HXFILES) | |
201 | ftamlose.o: $(HXFILES) | |
202 | ftamdocument.o: $(HFILES) $(HDIR)tailor.h $(HDIR)logger.h | |
203 | ftamfdf.o: $(HXFILES) | |
204 | ||
205 | ||
206 | ################################################################ | |
207 | # documents | |
208 | ################################################################ | |
209 | ||
210 | documents: $(ETCDIR)isodocuments | |
211 | ||
212 | $(ETCDIR)isodocuments: isodocuments | |
213 | -cp $@ zisodocuments | |
214 | cp isodocuments $@ | |
215 | -@ls -gls $@ | |
216 | -@echo "" | |
217 | ||
218 | ||
219 | ################################################################## | |
220 | # manual pages | |
221 | ################################################################## | |
222 | ||
223 | MANUALS = libftam.3n isodocuments.5 | |
224 | ||
225 | manuals:; @$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS) | |
226 | -@echo "" | |
227 | ||
228 | ||
229 | ################################################################## | |
230 | # clean | |
231 | ################################################################## | |
232 | ||
233 | clean:; rm -f *.o *.a *.ph CONT* FADU* FTAM* z* _* core \ | |
234 | ftamvrsn.c \ | |
235 | $(TOPDIR)h/CONT*.h $(TOPDIR)h/FADU*.h \ | |
236 | $(TOPDIR)h/FTAM*.h | |
237 | ||
238 | grind:; iprint Makefile isodocuments | |
239 | tgrind -lc $(CFILES) ftamvrsn.c llib-lftam | |
240 | tgrind -lpepy -d $(TOPDIR)pepy/grindefs $(PYFILES) | |
241 | @echo $(MANUALS) | \ | |
242 | tr " " "\012" | \ | |
243 | sed -e "s%.*%itroff -man &%" | \ | |
244 | sh -ve | |
245 | ||
246 | true:; |