Makefile.in: Updated windows configuration rules to work with the new
[krb5.git] / src / Makefile.in
1 thisconfigdir=.
2 BUILDTOP=$(REL)$(C)
3 CFLAGS = $(CCOPTS) $(DEFS)
4
5 ##DOS##BUILDTOP = .
6
7 SRCS =  
8 HDRS = 
9
10 DISTFILES = $(SRCS) $(HDRS) COPYING COPYING.LIB ChangeLog Makefile.in
11
12 all-unix::
13
14 all-mac::
15
16 all-windows:: makefile-windows
17         @echo Making in util\windows
18         cd util\windows
19         -$(MAKE) -$(MAKEFLAGS)
20         @echo Making in include
21         cd ..\..\include
22         -$(MAKE) -$(MAKEFLAGS) 
23         @echo Making in util\et
24         cd ..\util\et
25         -$(MAKE) -$(MAKEFLAGS) 
26         @echo Making in util\profile
27         cd ..\profile
28         -$(MAKE) -$(MAKEFLAGS) 
29         @echo Making in lib
30         cd ..\..\lib
31         -$(MAKE) -$(MAKEFLAGS) 
32         @echo Making in windows
33         cd ..\windows
34         -$(MAKE) -$(MAKEFLAGS) 
35         @echo Making in clients
36         cd ..\clients
37         -$(MAKE) -$(MAKEFLAGS)
38         cd ..
39
40 world::
41         date
42         make $(MFLAGS) all
43         date
44
45 INSTALLMKDIRS = $(KRB5ROOT) $(KRB5MANROOT) $(KRB5OTHERMKDIRS) \
46                 $(ADMIN_BINDIR) $(SERVER_BINDIR) $(CLIENT_BINDIR) \
47                 $(ADMIN_MANDIR) $(SERVER_MANDIR) $(CLIENT_MANDIR) \
48                 $(FILE_MANDIR) $(KRB5_LIBDIR) $(KRB5_INCDIR) \
49                 $(KRB5_INCSUBDIRS)
50
51 install-recurse: install-mkdirs
52
53 install-mkdirs:
54         @for i in $(INSTALLMKDIRS); do \
55                 if test -d $(DESTDIR)$$i; then :; else (set -x; mkdir -p $(DESTDIR)$$i); fi ; \
56         done
57
58 # install::
59 #       $(MAKE) $(MFLAGS) install.man
60
61 .c.o:
62         $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) $<
63
64 TAGS: $(SRCS)
65         etags $(SRCS)
66
67 clean-:: clean-windows
68 clean-mac:: clean-unix
69 clean-unix::
70         $(RM) *.o core
71
72 mostlyclean: clean
73
74 # This doesn't work; if you think you need it, you should use a
75 # separate build directory.
76
77 # distclean: clean
78 #       rm -f Makefile config.status
79
80 # realclean: distclean
81 #       rm -f TAGS
82
83 dist: $(DISTFILES)
84         echo cpio-`sed -e '/version_string/!d' \
85         -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
86         rm -rf `cat .fname`
87         mkdir `cat .fname`
88         -ln $(DISTFILES) `cat .fname`
89         for file in $(DISTFILES); do \
90           test -r `cat .fname`/$$file || cp -p $$file `cat .fname`; \
91         done
92         tar chzf `cat .fname`.tar.gz `cat .fname`
93         rm -rf `cat .fname` .fname
94
95 GZIPPROG= gzip -9v
96 PKGDIR=`pwd`/pkgdir
97 pkgdir:
98         if test ! -d $(PKGDIR); then mkdir $(PKGDIR); else true; fi
99 tgz-bin: pkgdir
100         rm -rf $(PKGDIR)/install cns5-bin.tgz
101         mkdir $(PKGDIR)/install
102         $(MAKE) install DESTDIR=$(PKGDIR)/install
103         (cd $(PKGDIR)/install && tar cf - usr/cygnus) | $(GZIPPROG) > cns5-bin.tgz
104         rm -rf $(PKGDIR)/install
105
106 # Macintosh build process...
107
108 # Build all things for the Mac build, which need to be built on
109 # Unix first.
110 unixmac:
111         (cd lib/krb5/error_tables; make -f Makefile.in unixmac)
112         (cd lib/gssapi/generic; make -f Makefile.in unixmac)
113
114
115 # Microsoft Windows build process...
116 #
117
118 config-windows:: makefile-windows
119         @echo Making in include
120         cd include
121         -$(MAKE) -$(MAKEFLAGS)
122         cd ..
123
124 ##DOS##MKFDEP= wconfig.exe config\pre.in config\post.in \
125 ##DOS## config\windows.in config\win-post.in
126 ##DOS##WCONFIG= .\wconfig $(WFLAGS)
127
128 ##DOS##makefile-windows:: $(MKFDEP) makefile \
129 ##DOS##         clients\makefile clients\kdestroy\makefile \
130 ##DOS##         clients\kinit\makefile clients\klist\makefile \
131 ##DOS##         include\makefile include\krb5\makefile \
132 ##DOS##         lib\makefile lib\crypto\makefile \
133 ##DOS##         lib\crypto\crc32\makefile lib\crypto\des\makefile \
134 ##DOS##         lib\crypto\dk\makefile lib\crypto\enc_provider\makefile \
135 ##DOS##         lib\crypto\hash_provider\makefile \
136 ##DOS##         lib\crypto\keyhash_provider\makefile \
137 ##DOS##         lib\crypto\raw\makefile lib\crypto\old\makefile \
138 ##DOS##         lib\crypto\sha1\makefile \
139 ##DOS##         lib\crypto\md4\makefile lib\crypto\md5\makefile \
140 ##DOS##         lib\des425\makefile \
141 ##DOS##         lib\gssapi\makefile lib\gssapi\generic\makefile \
142 ##DOS##         lib\gssapi\krb5\makefile lib\gssapi\mechglue\makefile \
143 ##DOS##         lib\krb4\makefile lib\krb5\makefile \
144 ##DOS##         lib\krb5\asn.1\makefile lib\krb5\ccache\makefile \
145 ##DOS##         lib\krb5\ccache\file\makefile \
146 ##DOS##         lib\krb5\ccache\stdio\makefile \
147 ##DOS##         lib\krb5\ccache\memory\makefile \
148 ##DOS##         lib\krb5\ccache\ccapi\makefile \
149 ##DOS##         lib\krb5\error_tables\makefile \
150 ##DOS##         lib\krb5\keytab\makefile \
151 ##DOS##         lib\krb5\keytab\file\makefile lib\krb5\krb\makefile \
152 ##DOS##         lib\krb5\os\makefile lib\krb5\posix\makefile \
153 ##DOS##         lib\krb5\rcache\makefile \
154 ##DOS##         util\et\makefile util\profile\makefile \
155 ##DOS##         util\windows\makefile \
156 ##DOS##         windows\Makefile windows\lib\Makefile \
157 ##DOS##         windows\cns\Makefile windows\gina\Makefile \
158 ##DOS##         windows\gss\Makefile windows\wintel\Makefile
159 ##DOS## config\rm.bat wconfig.obj msvc.pdb
160
161 ##DOS##makefile: makefile.in $(MKFDEP)
162 ##DOS## $(WCONFIG) config < $@.in > $@
163 ##DOS##clients\makefile: clients\makefile.in $(MKFDEP)
164 ##DOS## $(WCONFIG) config < $@.in > $@
165 ##DOS##clients\kdestroy\makefile: clients\kdestroy\makefile.in $(MKFDEP)
166 ##DOS## $(WCONFIG) config < $@.in > $@
167 ##DOS##clients\kinit\makefile: clients\kinit\makefile.in $(MKFDEP)
168 ##DOS## $(WCONFIG) config < $@.in > $@
169 ##DOS##clients\klist\makefile: clients\klist\makefile.in $(MKFDEP)
170 ##DOS## $(WCONFIG) config < $@.in > $@
171 ##DOS##include\makefile: include\makefile.in $(MKFDEP)
172 ##DOS## $(WCONFIG) config < $@.in > $@
173 ##DOS##include\krb5\makefile: include\krb5\makefile.in $(MKFDEP)
174 ##DOS## $(WCONFIG) config < $@.in > $@
175 ##DOS##lib\makefile: lib\makefile.in $(MKFDEP)
176 ##DOS## $(WCONFIG) config < $@.in > $@
177 ##DOS##lib\crypto\makefile: lib\crypto\makefile.in $(MKFDEP)
178 ##DOS## $(WCONFIG) config < $@.in > $@
179 ##DOS##lib\crypto\crc32\makefile: lib\crypto\crc32\makefile.in $(MKFDEP)
180 ##DOS## $(WCONFIG) config < $@.in > $@
181 ##DOS##lib\crypto\des\makefile: lib\crypto\des\makefile.in $(MKFDEP)
182 ##DOS## $(WCONFIG) config < $@.in > $@
183 ##DOS##lib\crypto\dk\makefile: lib\crypto\dk\makefile.in $(MKFDEP)
184 ##DOS## $(WCONFIG) config < $@.in > $@
185 ##DOS##lib\crypto\enc_provider\makefile: lib\crypto\enc_provider\makefile.in $(MKFDEP)
186 ##DOS## $(WCONFIG) config < $@.in > $@
187 ##DOS##lib\crypto\hash_provider\makefile: lib\crypto\hash_provider\makefile.in $(MKFDEP)
188 ##DOS## $(WCONFIG) config < $@.in > $@
189 ##DOS##lib\crypto\keyhash_provider\makefile: lib\crypto\keyhash_provider\makefile.in $(MKFDEP)
190 ##DOS## $(WCONFIG) config < $@.in > $@
191 ##DOS##lib\crypto\sha1\makefile: lib\crypto\sha1\makefile.in $(MKFDEP)
192 ##DOS## $(WCONFIG) config < $@.in > $@
193 ##DOS##lib\crypto\md4\makefile: lib\crypto\md4\makefile.in $(MKFDEP)
194 ##DOS## $(WCONFIG) config < $@.in > $@
195 ##DOS##lib\crypto\md5\makefile: lib\crypto\md5\makefile.in $(MKFDEP)
196 ##DOS## $(WCONFIG) config < $@.in > $@
197 ##DOS##lib\crypto\old\makefile: lib\crypto\old\makefile.in $(MKFDEP)
198 ##DOS## $(WCONFIG) config < $@.in > $@
199 ##DOS##lib\crypto\raw\makefile: lib\crypto\raw\makefile.in $(MKFDEP)
200 ##DOS## $(WCONFIG) config < $@.in > $@
201 ##DOS##lib\des425\makefile: lib\des425\makefile.in $(MKFDEP)
202 ##DOS## $(WCONFIG) config < $@.in > $@
203 ##DOS##lib\gssapi\makefile: lib\gssapi\makefile.in $(MKFDEP)
204 ##DOS## $(WCONFIG) config < $@.in > $@
205 ##DOS##lib\gssapi\generic\makefile: lib\gssapi\generic\makefile.in $(MKFDEP)
206 ##DOS## $(WCONFIG) config < $@.in > $@
207 ##DOS##lib\gssapi\mechglue\makefile: lib\gssapi\mechglue\makefile.in $(MKFDEP)
208 ##DOS## $(WCONFIG) config < $@.in > $@
209 ##DOS##lib\gssapi\krb5\makefile: lib\gssapi\krb5\makefile.in $(MKFDEP)
210 ##DOS## $(WCONFIG) config < $@.in > $@
211 ##DOS##lib\krb4\makefile: lib\krb4\makefile.in $(MKFDEP)
212 ##DOS## $(WCONFIG) config < $@.in > $@
213 ##DOS##lib\krb5\makefile: lib\krb5\makefile.in $(MKFDEP)
214 ##DOS## $(WCONFIG) config < $@.in > $@
215 ##DOS##lib\krb5\asn.1\makefile: lib\krb5\asn.1\makefile.in $(MKFDEP)
216 ##DOS## $(WCONFIG) config < $@.in > $@
217 ##DOS##lib\krb5\ccache\makefile: lib\krb5\ccache\makefile.in $(MKFDEP)
218 ##DOS## $(WCONFIG) config < $@.in > $@
219 ##DOS##lib\krb5\ccache\file\makefile: lib\krb5\ccache\file\makefile.in $(MKFDEP)
220 ##DOS## $(WCONFIG) config < $@.in > $@
221 ##DOS##lib\krb5\ccache\stdio\makefile: lib\krb5\ccache\stdio\makefile.in $(MKFDEP)
222 ##DOS## $(WCONFIG) config < $@.in > $@
223 ##DOS##lib\krb5\ccache\memory\makefile: lib\krb5\ccache\memory\makefile.in $(MKFDEP)
224 ##DOS## $(WCONFIG) config < $@.in > $@
225 ##DOS##lib\krb5\ccache\ccapi\makefile: lib\krb5\ccache\ccapi\makefile.in $(MKFDEP)
226 ##DOS## $(WCONFIG) config < $@.in > $@
227 ##DOS##lib\krb5\error_tables\makefile: lib\krb5\error_tables\makefile.in $(MKFDEP)
228 ##DOS## $(WCONFIG) config < $@.in > $@
229 ##DOS##lib\krb5\keytab\makefile: lib\krb5\keytab\makefile.in $(MKFDEP)
230 ##DOS## $(WCONFIG) config < $@.in > $@
231 ##DOS##lib\krb5\keytab\file\makefile: lib\krb5\keytab\file\makefile.in $(MKFDEP)
232 ##DOS## $(WCONFIG) config < $@.in > $@
233 ##DOS##lib\krb5\krb\makefile: lib\krb5\krb\makefile.in $(MKFDEP)
234 ##DOS## $(WCONFIG) config < $@.in > $@
235 ##DOS##lib\krb5\os\makefile: lib\krb5\os\makefile.in $(MKFDEP)
236 ##DOS## $(WCONFIG) config < $@.in > $@
237 ##DOS##lib\krb5\posix\makefile: lib\krb5\posix\makefile.in $(MKFDEP)
238 ##DOS## $(WCONFIG) config < $@.in > $@
239 ##DOS##lib\krb5\rcache\makefile: lib\krb5\rcache\makefile.in $(MKFDEP)
240 ##DOS## $(WCONFIG) config < $@.in > $@
241 ##DOS##util\et\makefile: util\et\makefile.in $(MKFDEP)
242 ##DOS## $(WCONFIG) config < $@.in > $@
243 ##DOS##util\profile\makefile: util\profile\makefile.in $(MKFDEP)
244 ##DOS## $(WCONFIG) config < $@.in > $@
245 ##DOS##util\windows\makefile: util\windows\makefile.in $(MKFDEP)
246 ##DOS## $(WCONFIG) config < $@.in > $@
247 ##DOS##windows\Makefile:  windows\Makefile.in $(MKFDEP)
248 ##DOS## $(WCONFIG) config < $@.in > $@
249 ##DOS##windows\lib\Makefile:  windows\lib\Makefile.in $(MKFDEP)
250 ##DOS## $(WCONFIG) config < $@.in > $@
251 ##DOS##windows\cns\Makefile:  windows\cns\Makefile.in $(MKFDEP)
252 ##DOS## $(WCONFIG) config < $@.in > $@
253 ##DOS##windows\gina\Makefile:  windows\gina\Makefile.in $(MKFDEP)
254 ##DOS## $(WCONFIG) config < $@.in > $@
255 ##DOS##windows\gss\Makefile:  windows\gss\Makefile.in $(MKFDEP)
256 ##DOS## $(WCONFIG) config < $@.in > $@
257 ##DOS##windows\wintel\Makefile:  windows\wintel\Makefile.in $(MKFDEP)
258 ##DOS## $(WCONFIG) config < $@.in > $@
259
260 ##DOS##wconfig.exe: wconfig.c
261 ##DOS## SET CL=/nologo
262 ##DOS## $(CC) /AL wconfig.c
263
264 clean-windows::
265         @echo Making clean in include
266         cd include
267         -$(MAKE) -$(MAKEFLAGS) clean
268         @echo Making clean in util\et
269         cd ..\util\et
270         -$(MAKE) -$(MAKEFLAGS) clean
271         @echo Making clean in util\profile
272         cd ..\profile
273         -$(MAKE) -$(MAKEFLAGS) clean
274         @echo Making clean in lib
275         cd ..\..\lib
276         -$(MAKE) -$(MAKEFLAGS) clean
277         @echo Making clean in windows
278         cd ..\windows
279         -$(MAKE) -$(MAKEFLAGS) clean
280         cd ..
281         @echo Making clean in root
282         config\rm.bat *.obj msvc.pdb *.err wconfig.obj wconfig.exe
283
284 #
285 # Renames DOS 8.3 filenames back to their proper, longer names.
286 #
287 ren2long:
288         -sh config/ren2long
289
290 #
291 # Builds the file that distributes Kerberos sources for DOS and 
292 # Macintosh sites from the source tree on Unix.
293 #
294 ZIP=zip
295 FILES= ./* \
296         clients/* clients/kdestroy/* clients/kinit/* clients/klist/* \
297         config/* include/* include/kerberosIV/* \
298         include/krb5/* include/krb5/stock/* include/sys/* lib/* \
299         lib/crypto/* lib/crypto/crc32/* lib/crypto/des/* lib/crypto/dk/* \
300         lib/crypto/enc_provider/* lib/crypto/hash_provider/* \
301         lib/crypto/keyhash_provider/* lib/crypto/old/* lib/crypto/raw/* \
302         lib/crypto/sha1/* lib/crypto/md4/* lib/crypto/md5/* \
303         lib/des425/* lib/gssapi/* lib/gssapi/generic/* lib/gssapi/krb5/* \
304         lib/gssapi/mechglue/* lib/krb4/* \
305         lib/krb5/* lib/krb5/asn.1/* lib/krb5/krb/* \
306         lib/krb5/ccache/* lib/krb5/ccache/file/* lib/krb5/ccache/memory/* \
307         lib/krb5/ccache/stdio/* lib/krb5/ccache/ccapi/* \
308         lib/krb5/error_tables/* \
309         lib/krb5/keytab/* lib/krb5/keytab/file/* \
310         lib/krb5/os/* lib/krb5/posix/* lib/krb5/rcache/* \
311         util/et/* util/profile/*
312
313 WINFILES= util/windows/* windows/* windows/lib/* windows/cns/* \
314         windows/wintel/* windows/gss/* windows/gina/*
315
316 MACFILES= mac/* mac/kconfig/* mac/libraries/* config/* include/* \
317         include/krb5/* include/krb5/stock/* include/sys/* \
318         ./patchlevel.h
319
320 MITWINFILES= mit/windows/include/* 
321 MITWINBINARYFILES= mit/windows/lib/*
322
323 WINBINARYFILES= windows/*/*.ico windows/*/*.doc windows/*/*.hlp windows/*/*.hpj
324
325 #
326 # Part of building the PC release has to be done on Unix. This includes
327 # anything the requires awk.
328 #
329 AWK = gawk
330 AH  = util/et/et_h.awk
331 AC  = util/et/et_c.awk
332 INC = include/
333 ET  = lib/krb5/error_tables/
334 GG  = lib/gssapi/generic/
335 GK  = lib/gssapi/krb5/
336 PR  = util/profile/
337
338 ETOUT = $(INC)asn1_err.h $(ET)asn1_err.c \
339         $(INC)kdb5_err.h $(ET)kdb5_err.c \
340         $(INC)krb5_err.h $(ET)krb5_err.c \
341         $(INC)kv5m_err.h $(ET)kv5m_err.c \
342         $(INC)adm_err.h $(ET)adm_err.c \
343         $(INC)/kerberosIV/krb_err.h lib/krb4/krb_err.c \
344         $(PR)prof_err.h $(PR)prof_err.c \
345         $(GG)gssapi_err_generic.h $(GG)gssapi_err_generic.c \
346         $(GK)gssapi_err_krb5.h $(GK)gssapi_err_krb5.c
347
348 HOUT =  $(INC)krb5.h $(GG)gssapi.h $(PR)profile.h
349
350 CLEANUP= Makefile $(ETOUT) $(HOUT) \
351         include/profile.h include/krb5/osconf.h \
352         winfile.list macfile.list mkbin.bat
353
354
355 kerbsrc.win: kerbsrc.zip
356
357 winfile.list:
358         echo $(FILES) $(WINFILES) | tr ' ' \\012 | \
359                 sed -f config/winexclude.sed > winfile.list
360         if test -d mit ; then \
361                 echo $(MITWINFILES) | tr ' ' \\012 | \
362                 sed -f config/winexclude.sed >> winfile.list ; \
363         fi
364
365 MAC_SUBDIRS = lib util
366 macfile.list:
367         /bin/sh mac/macfiles.sh $(MAC_SUBDIRS) > macfile.list
368         find $(MACFILES) -prune -type f -print | \
369                 sed -f config/winexclude.sed >> macfile.list
370
371 dos-Makefile:
372         cat config/windows.in Makefile.in config/win-post.in | \
373                 sed -e 's/^##DOS##//' -e 's/^##DOS//' > Makefile
374         cp windows/mkbin.bat .
375
376 kerbsrc.zip: dos-Makefile awk-windows-mac winfile.list
377         rm -f kerbsrc.zip
378         $(ZIP) -Dlk kerbsrc.zip `cat winfile.list`
379         $(ZIP) -Dk kerbsrc.zip $(WINBINARYFILES)
380         if test -d mit ; then \
381                 $(ZIP) -Dk kerbsrc.zip $(MITWINBINARYFILES) ; \
382         fi
383         rm -f $(CLEANUP)
384
385 kerbsrc-nt.zip: dos-Makefile awk-windows-mac winfile.list
386         rm -f kerbsrc-nt.zip
387         $(ZIP) -Dl kerbsrc-nt.zip `cat winfile.list`
388         $(ZIP) -D kerbsrc-nt.zip $(WINBINARYFILES)
389         if test -d mit ; then \
390                 $(ZIP) -D kerbsrc-nt.zip $(MITWINBINARYFILES) ; \
391         fi
392         rm -f $(CLEANUP)
393
394 dos-zipfiles: dos-Makefile awk-windows-mac winfile.list
395         rm -f kerbsrc.zip
396         $(ZIP) -Dlk kerbsrc.zip `cat winfile.list`
397         $(ZIP) -Dk kerbsrc.zip $(WINBINARYFILES)
398         if test -d mit ; then \
399                 $(ZIP) -Dk kerbsrc.zip $(MITWINBINARYFILES) ; \
400         fi
401         rm -f kerbsrc-nt.zip
402         $(ZIP) -Dl kerbsrc-nt.zip `cat winfile.list`
403         $(ZIP) -D kerbsrc-nt.zip $(WINBINARYFILES)
404         if test -d mit ; then \
405                 $(ZIP) -D kerbsrc-nt.zip $(MITWINBINARYFILES) ; \
406         fi
407         rm -f $(CLEANUP)
408
409 Macfile: macfile.list 
410         rm -f Macfile
411         sed -e 's|/|:|g' -e 's/^/:/' -e '/:.:/d' -e '/:mac:/d' macfile.list > macfile.maclist
412         grep '\.c$$' macfile.maclist > macsrcsgss
413         grep -v ':gssapi:' macsrcsgss > macsrcsk5
414         echo SRCS = `cat macsrcsgss` >> Macfile
415         echo SRCDIRS = `sed -n -e 's/\(.*:\)[^:]*\.c$$/ \1/p' macfile.maclist | sort -u` >> Macfile
416         echo GSSOBJS68K = `sed -e 's/$$/.68K.o/' -e 's/.*://' \
417                 -e 's/^/:bin:68K:/' macsrcsgss` >> Macfile
418         echo GSSOBJS68KCFM = `sed -e 's/$$/.CFM68.o/' -e 's/.*://' \
419                 -e 's/^/:bin:CFM-68K:/' macsrcsgss` >> Macfile
420         echo GSSOBJSPPC = `sed -e 's/$$/.PPC.o/' -e 's/.*://' \
421                 -e 's/^/:bin:PPC:/' macsrcsgss` >> Macfile
422         echo K5OBJS68K = `sed -e 's/$$/.68K.o/' -e 's/.*://' \
423                 -e 's/^/:bin:68K:/' macsrcsk5` >> Macfile
424         echo K5OBJS68KCFM = `sed -e 's/$$/.CFM68.o/' -e 's/.*://' \
425                 -e 's/^/:bin:CFM-68K:/' macsrcsk5` >> Macfile
426         echo K5OBJSPPC = `sed -e 's/$$/.PPC.o/' -e 's/.*://' \
427                 -e 's/^/:bin:PPC:/' macsrcsk5` >> Macfile
428         echo INCLUDES = `sed -n -e 's/\(.*:\)[^:]*\.h$$/-i \1/p' macfile.maclist | sort -u` >> Macfile
429         echo "" >> Macfile
430         tr '@/:\\' '\245:\304\266'< mac/Makefile.tmpl >> Macfile
431
432 mac-bin-dirs:
433         rm -rf bin
434         mkdir bin bin/68K bin/CFM-68K bin/PPC
435         sh mac/mkbindirs.sh bin/68K $(MAC_SUBDIRS)
436         sh mac/mkbindirs.sh bin/CFM-68K $(MAC_SUBDIRS)
437         sh mac/mkbindirs.sh bin/PPC $(MAC_SUBDIRS)
438
439 kerbsrc.mac.tar: awk-windows-mac macfile.list mac-bin-dirs Macfile
440         cp mac/libraries/autoconf.h include/autoconf.h
441         mv Macfile Makefile
442         tar cvf kerbsrc.mac.tar Makefile include/autoconf.h bin \
443                 `cat macfile.list`
444         rm -f $(CLEANUP)
445         rm -rf bin
446         rm -f include/autoconf.h Makefile macsrc* macfile.maclist
447
448 $(INC)asn1_err.h: $(AH) $(ET)asn1_err.et
449         $(AWK) -f $(AH) outfile=$@ $(ET)asn1_err.et
450 $(INC)kdb5_err.h: $(AH) $(ET)kdb5_err.et
451         $(AWK) -f $(AH) outfile=$@ $(ET)kdb5_err.et
452 $(INC)krb5_err.h: $(AH) $(ET)krb5_err.et
453         $(AWK) -f $(AH) outfile=$@ $(ET)krb5_err.et
454 $(INC)kv5m_err.h: $(AH) $(ET)kv5m_err.et
455         $(AWK) -f $(AH) outfile=$@ $(ET)kv5m_err.et
456 $(INC)adm_err.h: $(AH) $(ET)adm_err.et
457         $(AWK) -f $(AH) outfile=$@ $(ET)adm_err.et
458 $(INC)/kerberosIV/krb_err.h: $(AH) lib/krb4/krb_err.et
459         $(AWK) -f $(AH) outfile=$@ lib/krb4/krb_err.et
460 $(PR)prof_err.h: $(AH) $(PR)prof_err.et
461         $(AWK) -f $(AH) outfile=$@ $(PR)prof_err.et
462 $(GG)gssapi_err_generic.h: $(AH) $(GG)gssapi_err_generic.et
463         $(AWK) -f $(AH) outfile=$@ $(GG)gssapi_err_generic.et
464 $(GK)gssapi_err_krb5.h: $(AH) $(GK)gssapi_err_krb5.et
465         $(AWK) -f $(AH) outfile=$@ $(GK)gssapi_err_krb5.et
466
467 $(ET)asn1_err.c: $(AC) $(ET)asn1_err.et
468         $(AWK) -f $(AC) outfile=$@ $(ET)asn1_err.et
469 $(ET)kdb5_err.c: $(AC) $(ET)kdb5_err.et
470         $(AWK) -f $(AC) outfile=$@ $(ET)kdb5_err.et
471 $(ET)krb5_err.c: $(AC) $(ET)krb5_err.et
472         $(AWK) -f $(AC) outfile=$@ $(ET)krb5_err.et
473 $(ET)kv5m_err.c: $(AC) $(ET)kv5m_err.et
474         $(AWK) -f $(AC) outfile=$@ $(ET)kv5m_err.et
475 $(ET)adm_err.c: $(AC) $(ET)adm_err.et
476         $(AWK) -f $(AC) outfile=$@ $(ET)adm_err.et
477 lib/krb4/krb_err.c: $(AC) lib/krb4/krb_err.et
478         $(AWK) -f $(AC) outfile=$@ lib/krb4/krb_err.et
479 $(PR)prof_err.c: $(AC) $(PR)prof_err.et
480         $(AWK) -f $(AC) outfile=$@ $(PR)prof_err.et
481 $(GG)gssapi_err_generic.c: $(AC) $(GG)gssapi_err_generic.et
482         $(AWK) -f $(AC) outfile=$@ $(GG)gssapi_err_generic.et
483 $(GK)gssapi_err_krb5.c: $(AC) $(GK)gssapi_err_krb5.et
484         $(AWK) -f $(AC) outfile=$@ $(GK)gssapi_err_krb5.et
485
486 KRBHDEP = $(INC)krb5.hin $(INC)krb5_err.h $(INC)kdb5_err.h \
487         $(INC)kv5m_err.h $(INC)asn1_err.h
488
489 $(INC)krb5.h: $(KRBHDEP)
490         rm -f $@
491         cat $(KRBHDEP) > $@
492 $(PR)profile.h: $(PR)profile.hin $(PR)prof_err.h
493         rm -f $@
494         cat $(PR)profile.hin $(PR)prof_err.h > $@
495 $(GG)gssapi.h: $(GG)gssapi.hin
496         rm -f $@
497         cat $(GG)gssapi.hin > $@
498
499 awk-windows-mac: $(ETOUT) $(HOUT)
500
501 clean-windows-mac:
502         rm -f $(CLEANUP)