1 CFLAGS = $(CCOPTS) $(DEFS)
3 ##DOSBUILDTOP = ..\..\..
4 ##DOSLIBNAME=..\krb5.lib
5 ##DOS!include $(BUILDTOP)\config\windows.in
7 EHDRDIR=$(BUILDTOP)$(S)include$(S)krb5
9 # The "unixmac" and "includes" rules need to run in Makefile.in,
10 # without all the support glop like $(S) and $(BUILDTOP)...so, fake it.
12 # Faking things breaks VPATH support, which is a requirement for me -- TYT.
13 # You need to do this right! Whatever config tools that you're using under
14 # the macintosh, is going to need to handle BUILDTOP and SRCTOP explicitly.
15 # Setting BUILDTOP and SRCTOP to be the same is Right Out.
18 #SRCTOP2 = $(BUILDTOP2)
19 #EHDRDIR2=$(BUILDTOP2)/include/krb5
21 HDRS= asn1_err.h kdb5_err.h krb5_err.h kv5m_err.h adm_err.h
22 OBJS= asn1_err.$(OBJEXT) kdb5_err.$(OBJEXT) krb5_err.$(OBJEXT) \
23 kv5m_err.$(OBJEXT) adm_err.$(OBJEXT) init_ets.$(OBJEXT)
24 ETSRCS= asn1_err.c kdb5_err.c krb5_err.c kv5m_err.c adm_err.c
25 SRCS=$(ETSRCS) init_ets.c
29 all-unix:: $(HDRS) includes $(OBJS)
34 unixmac: $(HDRS) includes $(SRCS)
37 $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=asn1_err.h asn1_err.et
38 $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=kdb5_err.h kdb5_err.et
39 $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=krb5_err.h krb5_err.et
40 $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=adm_err.h adm_err.et
41 $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=kv5m_err.h kv5m_err.et
42 $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=asn1_err.c asn1_err.et
43 $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=kdb5_err.c kdb5_err.et
44 $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=krb5_err.c krb5_err.et
45 $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=adm_err.c adm_err.et
46 $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=kv5m_err.c kv5m_err.et
47 if exist asn1_err.h copy asn1_err.h $(EHDRDIR)
48 if exist kdb5_err.h copy kdb5_err.h $(EHDRDIR)
49 if exist krb5_err.h copy krb5_err.h $(EHDRDIR)
50 if exist adm_err.h copy adm_err.h $(EHDRDIR)
51 if exist kv5m_err.h copy kv5m_err.h $(EHDRDIR)
54 @set -x; for f in $(HDRS) ; \
55 do if cmp -s $$f $(DESTDIR)$(KRB5_INCDIR)/krb5/$$f; \
57 $(RM) $(DESTDIR)$(KRB5_INCDIR)/krb5/$$f; \
58 cp $$f $(DESTDIR)$(KRB5_INCDIR)/krb5/$$f ; \
62 # dependencies for traditional makes
64 asn1_err.$(OBJEXT): asn1_err.c
65 isode_err.$(OBJEXT): isode_err.c
66 kdb5_err.$(OBJEXT): kdb5_err.c
67 krb5_err.$(OBJEXT): krb5_err.c
68 adm_err.$(OBJEXT): adm_err.c
69 kv5m_err.$(OBJEXT): kv5m_err.c
73 clean-unix:: clean-hdrs
74 $(RM) $(HDRS) $(ETSRCS)
75 clean-mac:: clean-hdrs
76 $(RM) $(HDRS) $(ETSRCS)
81 for x in $(HDRS); do \
82 if cmp $$x $(EHDRDIR)/$$x >/dev/null 2>&1; then :; \
84 (set -x; rm -f $(EHDRDIR)/$$x; cp $$x $(EHDRDIR)/$$x) \
88 for x in $(HDRS); do \
89 rm -f $(EHDRDIR)/$$x; \
93 # This stuff is already dropped in by the autoconf generated configure scripts.
94 # (Blame Mark, not me for that; this was before we had pre.in and post.in,
95 # we should probably move the error table rules from aclocal.m4 to pre.in)
97 #.SUFFIXES: .h .c .et .ct
100 # awk -f $(SRCTOP2)/util/et/et_h.awk outfile=$*.h $<
103 # awk -f $(SRCTOP2)/util/et/et_c.awk outfile=$*.c $<