source: trunk/third/cns/src/Makefile.in @ 8789

Revision 8789, 7.5 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8788, which included commits to RCS files with non-trunk default branches.
Line 
1### Makefile for kerberos tree -- maximal passed arguments
2srcdir = $(C)
3
4prefix = $(R)usr$(S)kerberos
5
6program_transform_name =
7
8##
9
10SHELL = /bin/sh
11
12SUBDIRS = "this is set via configure, don't edit this"
13OTHERS =
14
15INSTALL_TARGET = install
16
17RUNTEST = runtest
18RUNTESTFLAGS =
19
20##DOS!include config\common
21##DOS!include config\mt-win
22#### host and target specific makefile fragments come in here.
23###
24
25
26# The first rule in the file had better be this one.  Don't put any above it.
27all: all-$(WHAT)
28
29all-unix:
30        @for i in $(SUBDIRS); do \
31          if (cd $$i; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" \
32                RESOLV=$(RESOLV) all) ; then \
33            true; \
34          else \
35            exit 1; \
36          fi; \
37        done
38
39# Windows nmake is too stupid to be able to iterate over a list, use
40# semicolons, or keep track of anything but the current directory.
41# unix configure will make all-unix the default in config/common
42all-: all-windows
43all-windows: makefile-windows
44        cd include
45        $(MAKE)
46        cd ..\lib\des
47        $(MAKE)
48        cd ..\kadm
49        $(MAKE)
50        cd ..\kstream
51        $(MAKE)
52        cd ..\krb
53        $(MAKE)
54        cd ..\..\kwin
55        $(MAKE)
56        cd ..\wintel
57        $(MAKE)
58        cd ..
59
60#
61# cygin
62#
63# The all-in-one program that logs you in to a remote Kerberos site
64# in one operation.
65#
66# These rules are sufficient to build this from a working tree, but don't have
67# enough dependencies, so don't use for development!
68cygin: appl/bsd/cygin
69         rm -f cygin
70         ln appl/bsd/cygin .
71
72install-cygin:
73        $(INSTALLPROG) appl/bsd/cygin $(DESTDIR)$(PROGDIR)/cygin
74
75appl/bsd/cygin: include/krb.h lib/kstream/libkstream.a lib/krb/libkrb.a lib/des/libdes.a
76        (cd appl/bsd; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" RESOLV=$(RESOLV) cygin)
77
78include/krb.h:
79        (cd include; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" RESOLV=$(RESOLV) all)
80
81lib/kstream/libkstream.a:
82        (cd lib/kstream; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" RESOLV=$(RESOLV) all)
83
84lib/krb/libkrb.a:
85        (cd lib/krb; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" RESOLV=$(RESOLV) all)
86
87lib/des/libdes.a:
88        (cd lib/des; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" RESOLV=$(RESOLV) all)
89
90roll:
91        for i in $(SUBDIRS); do \
92        (cd $$i; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" RESOLV=$(RESOLV) all);\
93        (cd $$i; $(RM) *.o);\
94        done
95
96depend:
97        for i in $(SUBDIRS); do \
98        (cd $$i; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" depend)\
99        done
100
101install:: install-$(WHAT)
102
103install-unix:
104        @for i in $(SUBDIRS); do \
105          if (cd $$i; $(MAKE) $(MFLAGS) "CC=$(CC)" "DBG=$(DBG)" \
106                DESTDIR=$(DESTDIR) install); \
107            then true; \
108          else \
109            exit 1; \
110          fi; \
111        done
112        if test -d $(DESTDIR)$(S)$(KDBDIR); then \
113          true; \
114        else \
115          mkdir $(DESTDIR)$(S)$(KDBDIR); \
116        fi
117        @echo " "
118        @echo "Remember to run $(DESTDIR)/usr/kerberos/install/configure"
119        @echo "to set permissions and other configuration correctly."
120        @echo " "
121
122install-windows:
123        copy doc\*.txt floppy
124        copy doc\*.htm floppy
125        cd include
126        $(MAKE) install
127        cd ..\lib\des
128        $(MAKE) install
129        cd ..\kadm
130        $(MAKE) install
131        cd ..\kstream
132        $(MAKE) install
133        cd ..\krb
134        $(MAKE) install
135        cd ..\..\kwin
136        $(MAKE) install
137        cd ..\wintel
138        $(MAKE) install
139        cd ..
140
141install-mac:
142        cp ../doc/*.txt $(DESTDIR)
143        cp ../doc/*.html $(DESTDIR)
144        (cd include; $(MAKE) -f Makefile.in DESTDIR=$(DESTDIR) install-mac)
145        cp lib/krb/mac_stubs.c $(DESTDIR)
146        cp driver/'%CNS Kerberos' $(DESTDIR)
147        cp driver/'%Kerberos Client Preferences' $(DESTDIR)
148        cp kconfig/kconfig/'%CNS Config' $(DESTDIR)
149        cp mactelnet/'%CNS Telnet' $(DESTDIR)
150        rm -f $(DESTDIR)/README
151        echo "Cygnus Network Security release for Macintosh." > $(DESTDIR)/README
152        echo "Full instructions are in mac.txt or mac.html." >> $(DESTDIR)/README
153
154dist:: dist-$(WHAT)
155
156dist-unix::
157
158dist-windows::
159        cd floppy
160        pkzip ..\cns95q1.zip *.*
161
162dist-mac:
163        echo "Run StuffIt on the Mac, with the whole DESTDIR"
164       
165
166clean: clean-$(WHAT)
167
168clean-:: clean-unix
169clean-unix:
170        rm -rf tmpdir
171        for i in $(SUBDIRS); do \
172        (cd $$i; $(MAKE) $(MFLAGS) clean)\
173        done
174
175clean-windows:
176        cd lib\des
177        $(MAKE) clean
178        cd ..\kadm
179        $(MAKE) clean
180        cd ..\kstream
181        $(MAKE) clean
182        cd ..\krb
183        $(MAKE) clean
184        cd ..\..\kwin
185        $(MAKE) clean
186        cd ..\wintel
187        $(MAKE) clean
188        cd ..
189        -del include\makefile
190        -del lib\des\makefile
191        -del lib\kadm\makefile
192        -del lib\kstream\makefile
193        -del lib\krb\makefile
194        -del floppy\*.exe
195        -del floppy\*.dll
196        -del floppy\*.lib
197        -del floppy\*.h
198        -del floppy\*.txt
199        -del floppy\*.htm
200        -del makefile
201        -del cns95q1.zip
202
203uninstall:
204        @echo "the uninstall target is not supported in this tree"
205
206# Testsuite targets.
207site.exp: config.status Makefile
208        if [ -f site.exp ]; then \
209          mv site.exp site.bak; \
210        else \
211          touch site.bak; \
212        fi
213        rm -f site.tmp
214        echo "## variables are automatically generated by make ##" > site.tmp
215        echo "# Do not edit here. If you wish to override these" >> site.tmp
216        echo "# values, add them to the last section" >> site.tmp
217        echo "set objdir `pwd`" >> site.tmp
218        echo "## Variables generated by configure. Do Not Edit ##" >> site.tmp
219        cat site.bak | \
220          sed -e '1,/^## Variables generated by.*##/ d' >> site.tmp
221        mv site.tmp site.exp
222
223check: site.exp
224        $(RUNTEST) --tool krb --srcdir $(srcdir)/testsuite $(RUNTESTFLAGS)
225
226#
227# Part of building the Mac release has to be done on Unix at the moment.
228# That's done by `make unixmac'.
229#
230unixmac:
231        (cd include; $(MAKE) -f Makefile.uni unixmac S=/)
232        (cd ../doc; $(MAKE) -f Makefile.in macdoc)
233
234#
235# Rename 8.3 truncated file names back to thier proper unix names
236#
237ren2long:
238        -(cd config; sh ../lib/krb/ren2long.sh)
239        -(cd include; sh ../lib/krb/ren2long.sh)
240        -(cd kwin; sh ../lib/krb/ren2long.sh)
241        -(cd lib/des; sh ../krb/ren2long.sh)
242        -(cd lib/kadm; sh ../krb/ren2long.sh)
243        -(cd lib/kstream; sh ../krb/ren2long.sh)
244        -(cd lib/krb; sh ren2long.sh)
245        -(sh lib/krb/ren2long.sh)
246
247#
248# Build the zip file that distributes Kerberos sources for DOS sites.
249#
250ZIPFILES=config include lib/des lib/krb lib/kadm lib/kstream kwin wintel \
251        Makefile.in configure.in floppy \
252        wconfig.c ren.msg util/et/et_h.awk util/et/et_c.awk ChangeLog
253ZIPBINARYFILES=kwin/*.ico wintel/*.ico
254ZIPEXCLUDE=INCLUDE/.CVS LIB/DES/.CVS LIB/DES/%DESLIB- LIB/KRB/%KRBLIB- \
255        CONFIG/CVS/* INCLUDE/CVS/* LIB/KRB/CVS/* LIB/DES/CVS/* \
256        LIB/DES/DOC/CVS/* LIB/KADM/CVS/* LIB/KSTREAM/CVS/* KWIN/CVS/* \
257        KWIN/*.ICO WINTEL/CVS/* WINTEL/*.ICO
258kerbsrc.zip: force
259        -rm -f kerbsrc.zip
260        awk -f util/et/et_h.awk outfile=lib/krb/krb_err.h lib/krb/krb_err.et
261        awk -f util/et/et_h.awk outfile=lib/kadm/kadm_err.h lib/kadm/kadm_err.et
262        -mkdir floppy
263        cp prototypes/etc.krb.realms floppy/krb.rea
264        cp prototypes/etc.krb.conf floppy/krb.con
265        (cd ../doc; $(MAKE) -f Makefile.in windoc)
266        zip -lrk kerbsrc.zip $(ZIPFILES) -x $(ZIPEXCLUDE)
267        zip -rk kerbsrc.zip $(ZIPBINARYFILES)
268        (cd ..; zip -lrk src/kerbsrc.zip doc -x DOC/CVS/*)
269        rm lib/krb/krb_err.h lib/kadm/kadm_err.h
270        rm -r floppy
271
272force:
273
274# with the gnu make, this is done automatically.
275
276Makefile: $(srcdir)$(S)Makefile.in $(host_makefile_frag) $(target_makefile_frag) $(package_makefile_frag)
277        $(SHELL) ./config.status
278
279makefile-windows: wconfig.c makefile.in config\common config\mt-win \
280        config\host config\postfix lib\des\makefile.in lib\kadm\makefile.in \
281        lib\kstream\makefile.in lib\krb\makefile.in include\makefile.in
282        SET CL=
283        $(CC) /AL /Iinclude wconfig.c
284        .\wconfig <makefile.in >makefile
285        .\wconfig <include\makefile.in >include\makefile
286        .\wconfig <lib\des\makefile.in >lib\des\makefile
287        .\wconfig <lib\kadm\makefile.in >lib\kadm\makefile
288        .\wconfig <lib\kstream\makefile.in >lib\kstream\makefile
289        .\wconfig <lib\krb\makefile.in >lib\krb\makefile
290        del wconfig.obj
291        del wconfig.exe
292
293distclean: distclean-$(WHAT)
294
295distclean-:: distclean-unix
296distclean-unix:: clean-unix
297        for i in $(SUBDIRS); do \
298        (cd $$i; $(MAKE) $(MFLAGS) distclean)\
299        done
300        -rm -f *~ core
301        -rm -f Makefile config.status
302
303# end of Makefile.in
304# NOPOSTFIX
Note: See TracBrowser for help on using the repository browser.