Start development on 386BSD 0.0
[unix-history] / .ref-BSD-4_3_Net_2 / usr / src / contrib / isode / ftam / Makefile
CommitLineData
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
49PEPYPATH= -DPEPYPATH
50
51.SUFFIXES: .py .c .o
52
53
54LIBES = libftam.a $(TOPDIR)libisode.a
55LLIBS = $(TOPDIR)llib-lisode
56HFILES = $(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
60HXFILES = $(HFILES) $(HDIR)fpkt.h CONT-types.h FADU-types.h \
61 FTAM-types.h
62
63
64##################################################################
65# Here it is...
66##################################################################
67
68all: libftam
69inst-all: inst-libftam documents manuals
70install: inst-all clean
71lint: l-libftam
72
73
74##################################################################
75# libftam
76##################################################################
77
78CFILES = 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
85PYFILES = cont.py fadu.py ftam.py
86OFILES = 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
95HEADERS = 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
99inst-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
118inst-headers:; @cd $(TOPDIR)h; $(MAKE) inst-ftam
119 @for h in $(HEADERS); do $(MAKE) TARGET=$$h inst-target; done
120
121inst-target: $(PEPSYDIR)$(TARGET)
122
123$(PEPSYDIR)$(TARGET): $(TARGET)
124 -cp $@ z$(TARGET)
125 cp $(TARGET) $@
126 -@ls -gls $@
127 -@echo ""
128
129libftam: 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
142libftam.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
152FTAM_tables.o: FTAM_tables.c FTAM-types.h CONT-types.h FADU-types.h
153
154FTAM_tables.c FTAM-types.h: ftam.py $(TOPDIR)pepsy/xpepsy
155 $(TOPDIR)pepsy/xpepsy -A -f -h -m ftam.py
156
157FADU_tables.o: FADU_tables.c FADU-types.h
158
159FADU_tables.c FADU-types.h: fadu.py $(TOPDIR)pepsy/xpepsy
160 $(TOPDIR)pepsy/xpepsy -A -f -h -m fadu.py
161
162CONT_tables.o: CONT_tables.c CONT-types.h
163
164CONT_tables.c CONT-types.h: cont.py $(TOPDIR)pepsy/xpepsy
165 $(TOPDIR)pepsy/xpepsy -A -f -h -m cont.py
166
167
168ftamvrsn.c: $(OFILES) CONT_tables.o FADU_tables.o FTAM_tables.o
169 @$(UTILDIR)version.sh ftam > $@
170
171l-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
176ftamprovider.o: $(HXFILES)
177ftamerror.o: $(HFILES)
178ftaminitiate.o: $(HXFILES)
179ftamrespond.o: $(HXFILES)
180ftamrelease1.o: $(HXFILES)
181ftamrelease2.o: $(HXFILES)
182ftamabort.o: $(HXFILES)
183ftamgroup1.o: $(HXFILES)
184ftamgroup2.o: $(HXFILES)
185ftamaccess1.o: $(HXFILES)
186ftamaccess2.o: $(HXFILES)
187ftambulk.o: $(HXFILES)
188ftambulk1.o: $(HXFILES)
189ftambulk2.o: $(HXFILES)
190ftamselect.o: $(HXFILES)
191ftamtrace.o: $(HXFILES)
192ftamacl.o: $(HXFILES)
193ftambits.o: $(HXFILES)
194ftamattr.o: $(HXFILES)
195ftamchrg.o: $(HXFILES)
196ftamconctl.o: $(HXFILES)
197ftamdiag.o: $(HXFILES)
198ftamfaduid.o: $(HXFILES)
199ftampass.o: $(HXFILES)
200ftamshare.o: $(HXFILES)
201ftamlose.o: $(HXFILES)
202ftamdocument.o: $(HFILES) $(HDIR)tailor.h $(HDIR)logger.h
203ftamfdf.o: $(HXFILES)
204
205
206################################################################
207# documents
208################################################################
209
210documents: $(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
223MANUALS = libftam.3n isodocuments.5
224
225manuals:; @$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS)
226 -@echo ""
227
228
229##################################################################
230# clean
231##################################################################
232
233clean:; 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
238grind:; 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
246true:;