Removed mac dirs we don't really use
[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\sha\makefile \
135 ##DOS##         lib\crypto\md4\makefile lib\crypto\md5\makefile \
136 ##DOS##         lib\crypto\os\makefile lib\des425\makefile \
137 ##DOS##         lib\gssapi\makefile lib\gssapi\generic\makefile \
138 ##DOS##         lib\gssapi\krb5\makefile lib\gssapi\mechglue\makefile \
139 ##DOS##         lib\krb4\makefile lib\krb5\makefile \
140 ##DOS##         lib\krb5\asn.1\makefile lib\krb5\ccache\makefile \
141 ##DOS##         lib\krb5\ccache\file\makefile \
142 ##DOS##         lib\krb5\ccache\stdio\makefile \
143 ##DOS##         lib\krb5\ccache\memory\makefile \
144 ##DOS##         lib\krb5\error_tables\makefile \
145 ##DOS##         lib\krb5\keytab\makefile \
146 ##DOS##         lib\krb5\keytab\file\makefile lib\krb5\krb\makefile \
147 ##DOS##         lib\krb5\os\makefile lib\krb5\posix\makefile \
148 ##DOS##         lib\krb5\rcache\makefile \
149 ##DOS##         util\et\makefile util\profile\makefile \
150 ##DOS##         util\windows\makefile \
151 ##DOS##         windows\Makefile windows\lib\Makefile \
152 ##DOS##         windows\cns\Makefile windows\gina\Makefile \
153 ##DOS##         windows\gss\Makefile windows\wintel\Makefile
154 ##DOS## config\rm.bat wconfig.obj msvc.pdb
155
156 ##DOS##makefile: makefile.in $(MKFDEP)
157 ##DOS## $(WCONFIG) config < $@.in > $@
158 ##DOS##clients\makefile: clients\makefile.in $(MKFDEP)
159 ##DOS## $(WCONFIG) config < $@.in > $@
160 ##DOS##clients\kdestroy\makefile: clients\kdestroy\makefile.in $(MKFDEP)
161 ##DOS## $(WCONFIG) config < $@.in > $@
162 ##DOS##clients\kinit\makefile: clients\kinit\makefile.in $(MKFDEP)
163 ##DOS## $(WCONFIG) config < $@.in > $@
164 ##DOS##clients\klist\makefile: clients\klist\makefile.in $(MKFDEP)
165 ##DOS## $(WCONFIG) config < $@.in > $@
166 ##DOS##include\makefile: include\makefile.in $(MKFDEP)
167 ##DOS## $(WCONFIG) config < $@.in > $@
168 ##DOS##include\krb5\makefile: include\krb5\makefile.in $(MKFDEP)
169 ##DOS## $(WCONFIG) config < $@.in > $@
170 ##DOS##lib\makefile: lib\makefile.in $(MKFDEP)
171 ##DOS## $(WCONFIG) config < $@.in > $@
172 ##DOS##lib\crypto\makefile: lib\crypto\makefile.in $(MKFDEP)
173 ##DOS## $(WCONFIG) config < $@.in > $@
174 ##DOS##lib\crypto\crc32\makefile: lib\crypto\crc32\makefile.in $(MKFDEP)
175 ##DOS## $(WCONFIG) config < $@.in > $@
176 ##DOS##lib\crypto\des\makefile: lib\crypto\des\makefile.in $(MKFDEP)
177 ##DOS## $(WCONFIG) config < $@.in > $@
178 ##DOS##lib\crypto\sha\makefile: lib\crypto\sha\makefile.in $(MKFDEP)
179 ##DOS## $(WCONFIG) config < $@.in > $@
180 ##DOS##lib\crypto\md4\makefile: lib\crypto\md4\makefile.in $(MKFDEP)
181 ##DOS## $(WCONFIG) config < $@.in > $@
182 ##DOS##lib\crypto\md5\makefile: lib\crypto\md5\makefile.in $(MKFDEP)
183 ##DOS## $(WCONFIG) config < $@.in > $@
184 ##DOS##lib\crypto\os\makefile: lib\crypto\os\makefile.in $(MKFDEP)
185 ##DOS## $(WCONFIG) config < $@.in > $@
186 ##DOS##lib\des425\makefile: lib\des425\makefile.in $(MKFDEP)
187 ##DOS## $(WCONFIG) config < $@.in > $@
188 ##DOS##lib\gssapi\makefile: lib\gssapi\makefile.in $(MKFDEP)
189 ##DOS## $(WCONFIG) config < $@.in > $@
190 ##DOS##lib\gssapi\generic\makefile: lib\gssapi\generic\makefile.in $(MKFDEP)
191 ##DOS## $(WCONFIG) config < $@.in > $@
192 ##DOS##lib\gssapi\mechglue\makefile: lib\gssapi\mechglue\makefile.in $(MKFDEP)
193 ##DOS## $(WCONFIG) config < $@.in > $@
194 ##DOS##lib\gssapi\krb5\makefile: lib\gssapi\krb5\makefile.in $(MKFDEP)
195 ##DOS## $(WCONFIG) config < $@.in > $@
196 ##DOS##lib\krb4\makefile: lib\krb4\makefile.in $(MKFDEP)
197 ##DOS## $(WCONFIG) config < $@.in > $@
198 ##DOS##lib\krb5\makefile: lib\krb5\makefile.in $(MKFDEP)
199 ##DOS## $(WCONFIG) config < $@.in > $@
200 ##DOS##lib\krb5\asn.1\makefile: lib\krb5\asn.1\makefile.in $(MKFDEP)
201 ##DOS## $(WCONFIG) config < $@.in > $@
202 ##DOS##lib\krb5\ccache\makefile: lib\krb5\ccache\makefile.in $(MKFDEP)
203 ##DOS## $(WCONFIG) config < $@.in > $@
204 ##DOS##lib\krb5\ccache\file\makefile: lib\krb5\ccache\file\makefile.in $(MKFDEP)
205 ##DOS## $(WCONFIG) config < $@.in > $@
206 ##DOS##lib\krb5\ccache\stdio\makefile: lib\krb5\ccache\stdio\makefile.in $(MKFDEP)
207 ##DOS## $(WCONFIG) config < $@.in > $@
208 ##DOS##lib\krb5\ccache\memory\makefile: lib\krb5\ccache\memory\makefile.in $(MKFDEP)
209 ##DOS## $(WCONFIG) config < $@.in > $@
210 ##DOS##lib\krb5\error_tables\makefile: lib\krb5\error_tables\makefile.in $(MKFDEP)
211 ##DOS## $(WCONFIG) config < $@.in > $@
212 ##DOS##lib\krb5\keytab\makefile: lib\krb5\keytab\makefile.in $(MKFDEP)
213 ##DOS## $(WCONFIG) config < $@.in > $@
214 ##DOS##lib\krb5\keytab\file\makefile: lib\krb5\keytab\file\makefile.in $(MKFDEP)
215 ##DOS## $(WCONFIG) config < $@.in > $@
216 ##DOS##lib\krb5\krb\makefile: lib\krb5\krb\makefile.in $(MKFDEP)
217 ##DOS## $(WCONFIG) config < $@.in > $@
218 ##DOS##lib\krb5\os\makefile: lib\krb5\os\makefile.in $(MKFDEP)
219 ##DOS## $(WCONFIG) config < $@.in > $@
220 ##DOS##lib\krb5\posix\makefile: lib\krb5\posix\makefile.in $(MKFDEP)
221 ##DOS## $(WCONFIG) config < $@.in > $@
222 ##DOS##lib\krb5\rcache\makefile: lib\krb5\rcache\makefile.in $(MKFDEP)
223 ##DOS## $(WCONFIG) config < $@.in > $@
224 ##DOS##util\et\makefile: util\et\makefile.in $(MKFDEP)
225 ##DOS## $(WCONFIG) config < $@.in > $@
226 ##DOS##util\profile\makefile: util\profile\makefile.in $(MKFDEP)
227 ##DOS## $(WCONFIG) config < $@.in > $@
228 ##DOS##util\windows\makefile: util\windows\makefile.in $(MKFDEP)
229 ##DOS## $(WCONFIG) config < $@.in > $@
230 ##DOS##windows\Makefile:  windows\Makefile.in $(MKFDEP)
231 ##DOS## $(WCONFIG) config < $@.in > $@
232 ##DOS##windows\lib\Makefile:  windows\lib\Makefile.in $(MKFDEP)
233 ##DOS## $(WCONFIG) config < $@.in > $@
234 ##DOS##windows\cns\Makefile:  windows\cns\Makefile.in $(MKFDEP)
235 ##DOS## $(WCONFIG) config < $@.in > $@
236 ##DOS##windows\gina\Makefile:  windows\gina\Makefile.in $(MKFDEP)
237 ##DOS## $(WCONFIG) config < $@.in > $@
238 ##DOS##windows\gss\Makefile:  windows\gss\Makefile.in $(MKFDEP)
239 ##DOS## $(WCONFIG) config < $@.in > $@
240 ##DOS##windows\wintel\Makefile:  windows\wintel\Makefile.in $(MKFDEP)
241 ##DOS## $(WCONFIG) config < $@.in > $@
242
243 ##DOS##wconfig.exe: wconfig.c
244 ##DOS## SET CL=/nologo
245 ##DOS## $(CC) /AL wconfig.c
246
247 clean-windows::
248         @echo Making clean in include
249         cd include
250         -$(MAKE) -$(MAKEFLAGS) clean
251         @echo Making clean in util\et
252         cd ..\util\et
253         -$(MAKE) -$(MAKEFLAGS) clean
254         @echo Making clean in util\profile
255         cd ..\profile
256         -$(MAKE) -$(MAKEFLAGS) clean
257         @echo Making clean in lib
258         cd ..\..\lib
259         -$(MAKE) -$(MAKEFLAGS) clean
260         @echo Making clean in windows
261         cd ..\windows
262         -$(MAKE) -$(MAKEFLAGS) clean
263         cd ..
264         @echo Making clean in root
265         config\rm.bat *.obj msvc.pdb *.err wconfig.obj wconfig.exe
266
267 #
268 # Renames DOS 8.3 filenames back to their proper, longer names.
269 #
270 ren2long:
271         -sh config/ren2long
272
273 #
274 # Builds the file that distributes Kerberos sources for DOS and 
275 # Macintosh sites from the source tree on Unix.
276 #
277 ZIP=zip
278 FILES= ./* \
279         clients/* clients/kdestroy/* clients/kinit/* clients/klist/* \
280         config/* include/* include/kerberosIV/* \
281         include/krb5/* include/krb5/stock/* include/sys/* lib/* \
282         lib/crypto/* lib/crypto/crc32/* lib/crypto/des/* \
283         lib/crypto/sha/* lib/crypto/md4/* lib/crypto/md5/* lib/crypto/os/* \
284         lib/des425/* lib/gssapi/* lib/gssapi/generic/* lib/gssapi/krb5/* \
285         lib/gssapi/mechglue/* lib/krb4/* \
286         lib/krb5/* lib/krb5/asn.1/* lib/krb5/krb/* \
287         lib/krb5/ccache/* lib/krb5/ccache/file/* lib/krb5/ccache/memory/* \
288         lib/krb5/ccache/stdio/* lib/krb5/error_tables/* \
289         lib/krb5/keytab/* lib/krb5/keytab/file/* \
290         lib/krb5/os/* lib/krb5/posix/* lib/krb5/rcache/* \
291         util/et/* util/profile/*
292
293 WINFILES= util/windows/* windows/* windows/lib/* windows/cns/* \
294         windows/wintel/* windows/gss/* windows/gina/*
295
296 MACFILES= mac/* mac/kconfig/* mac/libraries/* config/* include/* \
297         include/krb5/* include/krb5/stock/* include/sys/* \
298         ./patchlevel.h
299
300 MITWINFILES= mit/windows/include/* 
301 MITWINBINARYFILES= mit/windows/lib/*
302
303 WINBINARYFILES= windows/*/*.ico windows/*/*.doc windows/*/*.hlp windows/*/*.hpj
304
305 #
306 # Part of building the PC release has to be done on Unix. This includes
307 # anything the requires awk.
308 #
309 AWK = gawk
310 AH  = util/et/et_h.awk
311 AC  = util/et/et_c.awk
312 INC = include/
313 ET  = lib/krb5/error_tables/
314 GG  = lib/gssapi/generic/
315 GK  = lib/gssapi/krb5/
316 PR  = util/profile/
317
318 ETOUT = $(INC)asn1_err.h $(ET)asn1_err.c \
319         $(INC)kdb5_err.h $(ET)kdb5_err.c \
320         $(INC)krb5_err.h $(ET)krb5_err.c \
321         $(INC)kv5m_err.h $(ET)kv5m_err.c \
322         $(INC)adm_err.h $(ET)adm_err.c \
323         $(INC)/kerberosIV/krb_err.h lib/krb4/krb_err.c \
324         $(PR)prof_err.h $(PR)prof_err.c \
325         $(GG)gssapi_err_generic.h $(GG)gssapi_err_generic.c \
326         $(GK)gssapi_err_krb5.h $(GK)gssapi_err_krb5.c
327
328 HOUT =  $(INC)krb5.h $(GG)gssapi.h $(PR)profile.h
329
330 CLEANUP= Makefile $(ETOUT) $(HOUT) \
331         include/profile.h include/krb5/osconf.h \
332         winfile.list macfile.list mkbin.bat
333
334
335 kerbsrc.win: kerbsrc.zip
336
337 winfile.list:
338         echo $(FILES) $(WINFILES) | tr ' ' \\012 | \
339                 sed -f config/winexclude.sed > winfile.list
340         if test -d mit ; then \
341                 echo $(MITWINFILES) | tr ' ' \\012 | \
342                 sed -f config/winexclude.sed >> winfile.list ; \
343         fi
344
345 MAC_SUBDIRS = lib util
346 macfile.list:
347         /bin/sh mac/macfiles.sh $(MAC_SUBDIRS) > macfile.list
348         find $(MACFILES) -prune -type f -print | \
349                 sed -f config/winexclude.sed >> macfile.list
350
351 dos-Makefile:
352         cat config/windows.in Makefile.in config/win-post.in | \
353                 sed -e 's/^##DOS##//' -e 's/^##DOS//' > Makefile
354         cp windows/mkbin.bat .
355
356 kerbsrc.zip: dos-Makefile awk-windows-mac winfile.list
357         rm -f kerbsrc.zip
358         $(ZIP) -Dlk kerbsrc.zip `cat winfile.list`
359         $(ZIP) -Dk kerbsrc.zip $(WINBINARYFILES)
360         if test -d mit ; then \
361                 $(ZIP) -Dk kerbsrc.zip $(MITWINBINARYFILES) ; \
362         fi
363         rm -f $(CLEANUP)
364
365 kerbsrc-nt.zip: dos-Makefile awk-windows-mac winfile.list
366         rm -f kerbsrc-nt.zip
367         $(ZIP) -Dl kerbsrc-nt.zip `cat winfile.list`
368         $(ZIP) -D kerbsrc-nt.zip $(WINBINARYFILES)
369         if test -d mit ; then \
370                 $(ZIP) -D kerbsrc-nt.zip $(MITWINBINARYFILES) ; \
371         fi
372         rm -f $(CLEANUP)
373
374 dos-zipfiles: dos-Makefile awk-windows-mac winfile.list
375         rm -f kerbsrc.zip
376         $(ZIP) -Dlk kerbsrc.zip `cat winfile.list`
377         $(ZIP) -Dk kerbsrc.zip $(WINBINARYFILES)
378         if test -d mit ; then \
379                 $(ZIP) -Dk kerbsrc.zip $(MITWINBINARYFILES) ; \
380         fi
381         rm -f kerbsrc-nt.zip
382         $(ZIP) -Dl kerbsrc-nt.zip `cat winfile.list`
383         $(ZIP) -D kerbsrc-nt.zip $(WINBINARYFILES)
384         if test -d mit ; then \
385                 $(ZIP) -D kerbsrc-nt.zip $(MITWINBINARYFILES) ; \
386         fi
387         rm -f $(CLEANUP)
388
389 Macfile: macfile.list 
390         rm -f Macfile
391         sed -e 's|/|:|g' -e 's/^/:/' -e '/:.:/d' -e '/:mac:/d' macfile.list > macfile.maclist
392         grep '\.c$$' macfile.maclist > macsrcsgss
393         grep -v ':gssapi:' macsrcsgss > macsrcsk5
394         echo SRCS = `cat macsrcsgss` >> Macfile
395         echo SRCDIRS = `sed -n -e 's/\(.*:\)[^:]*\.c$$/ \1/p' macfile.maclist | sort -u` >> Macfile
396         echo GSSOBJS68K = `sed -e 's/$$/.68K.o/' -e 's/.*://' \
397                 -e 's/^/:bin:68K:/' macsrcsgss` >> Macfile
398         echo GSSOBJS68KCFM = `sed -e 's/$$/.CFM68.o/' -e 's/.*://' \
399                 -e 's/^/:bin:CFM-68K:/' macsrcsgss` >> Macfile
400         echo GSSOBJSPPC = `sed -e 's/$$/.PPC.o/' -e 's/.*://' \
401                 -e 's/^/:bin:PPC:/' macsrcsgss` >> Macfile
402         echo K5OBJS68K = `sed -e 's/$$/.68K.o/' -e 's/.*://' \
403                 -e 's/^/:bin:68K:/' macsrcsk5` >> Macfile
404         echo K5OBJS68KCFM = `sed -e 's/$$/.CFM68.o/' -e 's/.*://' \
405                 -e 's/^/:bin:CFM-68K:/' macsrcsk5` >> Macfile
406         echo K5OBJSPPC = `sed -e 's/$$/.PPC.o/' -e 's/.*://' \
407                 -e 's/^/:bin:PPC:/' macsrcsk5` >> Macfile
408         echo INCLUDES = `sed -n -e 's/\(.*:\)[^:]*\.h$$/-i \1/p' macfile.maclist | sort -u` >> Macfile
409         echo "" >> Macfile
410         tr '@/:\\' '\245:\304\266'< mac/Makefile.tmpl >> Macfile
411
412 mac-bin-dirs:
413         rm -rf bin
414         mkdir bin bin/68K bin/CFM-68K bin/PPC
415         sh mac/mkbindirs.sh bin/68K $(MAC_SUBDIRS)
416         sh mac/mkbindirs.sh bin/CFM-68K $(MAC_SUBDIRS)
417         sh mac/mkbindirs.sh bin/PPC $(MAC_SUBDIRS)
418
419 kerbsrc.mac.tar: awk-windows-mac macfile.list mac-bin-dirs Macfile
420         cp mac/libraries/autoconf.h include/autoconf.h
421         mv Macfile Makefile
422         tar cvf kerbsrc.mac.tar Makefile include/autoconf.h bin \
423                 `cat macfile.list`
424         rm -f $(CLEANUP)
425         rm -rf bin
426         rm -f include/autoconf.h Makefile macsrc* macfile.maclist
427
428 $(INC)asn1_err.h: $(AH) $(ET)asn1_err.et
429         $(AWK) -f $(AH) outfile=$@ $(ET)asn1_err.et
430 $(INC)kdb5_err.h: $(AH) $(ET)kdb5_err.et
431         $(AWK) -f $(AH) outfile=$@ $(ET)kdb5_err.et
432 $(INC)krb5_err.h: $(AH) $(ET)krb5_err.et
433         $(AWK) -f $(AH) outfile=$@ $(ET)krb5_err.et
434 $(INC)kv5m_err.h: $(AH) $(ET)kv5m_err.et
435         $(AWK) -f $(AH) outfile=$@ $(ET)kv5m_err.et
436 $(INC)adm_err.h: $(AH) $(ET)adm_err.et
437         $(AWK) -f $(AH) outfile=$@ $(ET)adm_err.et
438 $(INC)/kerberosIV/krb_err.h: $(AH) lib/krb4/krb_err.et
439         $(AWK) -f $(AH) outfile=$@ lib/krb4/krb_err.et
440 $(PR)prof_err.h: $(AH) $(PR)prof_err.et
441         $(AWK) -f $(AH) outfile=$@ $(PR)prof_err.et
442 $(GG)gssapi_err_generic.h: $(AH) $(GG)gssapi_err_generic.et
443         $(AWK) -f $(AH) outfile=$@ $(GG)gssapi_err_generic.et
444 $(GK)gssapi_err_krb5.h: $(AH) $(GK)gssapi_err_krb5.et
445         $(AWK) -f $(AH) outfile=$@ $(GK)gssapi_err_krb5.et
446
447 $(ET)asn1_err.c: $(AC) $(ET)asn1_err.et
448         $(AWK) -f $(AC) outfile=$@ $(ET)asn1_err.et
449 $(ET)kdb5_err.c: $(AC) $(ET)kdb5_err.et
450         $(AWK) -f $(AC) outfile=$@ $(ET)kdb5_err.et
451 $(ET)krb5_err.c: $(AC) $(ET)krb5_err.et
452         $(AWK) -f $(AC) outfile=$@ $(ET)krb5_err.et
453 $(ET)kv5m_err.c: $(AC) $(ET)kv5m_err.et
454         $(AWK) -f $(AC) outfile=$@ $(ET)kv5m_err.et
455 $(ET)adm_err.c: $(AC) $(ET)adm_err.et
456         $(AWK) -f $(AC) outfile=$@ $(ET)adm_err.et
457 lib/krb4/krb_err.c: $(AC) lib/krb4/krb_err.et
458         $(AWK) -f $(AC) outfile=$@ lib/krb4/krb_err.et
459 $(PR)prof_err.c: $(AC) $(PR)prof_err.et
460         $(AWK) -f $(AC) outfile=$@ $(PR)prof_err.et
461 $(GG)gssapi_err_generic.c: $(AC) $(GG)gssapi_err_generic.et
462         $(AWK) -f $(AC) outfile=$@ $(GG)gssapi_err_generic.et
463 $(GK)gssapi_err_krb5.c: $(AC) $(GK)gssapi_err_krb5.et
464         $(AWK) -f $(AC) outfile=$@ $(GK)gssapi_err_krb5.et
465
466 KRBHDEP = $(INC)krb5.hin $(INC)krb5_err.h $(INC)kdb5_err.h \
467         $(INC)kv5m_err.h $(INC)asn1_err.h
468
469 $(INC)krb5.h: $(KRBHDEP)
470         rm -f $@
471         cat $(KRBHDEP) > $@
472 $(PR)profile.h: $(PR)profile.hin $(PR)prof_err.h
473         rm -f $@
474         cat $(PR)profile.hin $(PR)prof_err.h > $@
475 $(GG)gssapi.h: $(GG)gssapi.hin
476         rm -f $@
477         cat $(GG)gssapi.hin > $@
478
479 awk-windows-mac: $(ETOUT) $(HOUT)
480
481 clean-windows-mac:
482         rm -f $(CLEANUP)