From: Keith Vetter Date: Tue, 21 Feb 1995 22:45:04 +0000 (+0000) Subject: Updated krb5/error_tables for the PC. Makefile.in set up to run awk if one X-Git-Tag: krb5-1.0-beta5~701 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b43cc2e29f2e16debad40ddc1289b76f90f65c51;p=krb5.git Updated krb5/error_tables for the PC. Makefile.in set up to run awk if one is available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4961 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/error_tables/ChangeLog b/src/lib/krb5/error_tables/ChangeLog index 23bcddd9e..bef83255e 100644 --- a/src/lib/krb5/error_tables/ChangeLog +++ b/src/lib/krb5/error_tables/ChangeLog @@ -1,3 +1,10 @@ +Tue Feb 21 0:57:40 1995 Keith Vetter (keithv@fusion.com) + + * Makefile.in: made to work for PC + * init_ets.c: + added INTERFACE for windows + removed PROTOTYPE macro from the function + Fri Feb 10 14:56:57 1995 Theodore Y. Ts'o * Makefile: diff --git a/src/lib/krb5/error_tables/Makefile.in b/src/lib/krb5/error_tables/Makefile.in index 6b3614ef4..2cd8496f5 100644 --- a/src/lib/krb5/error_tables/Makefile.in +++ b/src/lib/krb5/error_tables/Makefile.in @@ -1,24 +1,53 @@ CFLAGS = $(CCOPTS) $(DEFS) LDFLAGS = -g -EHDRDIR=$(BUILDTOP)/include/krb5 +##DOSBUILDTOP = ..\..\.. +##DOSLIBNAME=..\libkrb5.lib +##DOS!include $(BUILDTOP)\config\windows.in + +EHDRDIR=$(BUILDTOP)$(S)include$(S)krb5 HDRS= asn1_err.h kdb5_err.h krb5_err.h kv5m_err.h adm_err.h -OBJS= asn1_err.o kdb5_err.o krb5_err.o kv5m_err.o adm_err.o init_ets.o +OBJS= asn1_err.$(OBJEXT) kdb5_err.$(OBJEXT) krb5_err.$(OBJEXT) \ + kv5m_err.$(OBJEXT) adm_err.$(OBJEXT) init_ets.$(OBJEXT) ETSRCS= asn1_err.c kdb5_err.c krb5_err.c kv5m_err.c adm_err.c SRCS=$(ETSRCS) $(srcdir)/init_ets.c -all:: ${HDRS} includes ${OBJS} +all:: all-$(WHAT) + +all-unix:: $(HDRS) includes $(OBJS) + +all-windows:: awk-windows $(OBJS) +awk-windows: + $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=asn1_err.h asn1_err.et + $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=kdb5_err.h kdb5_err.et + $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=krb5_err.h krb5_err.et + $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=adm_err.h adm_err.et + $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=kv5m_err.h kv5m_err.et + $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=asn1_err.c asn1_err.et + $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=kdb5_err.c kdb5_err.et + $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=krb5_err.c krb5_err.et + $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=adm_err.c adm_err.et + $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=kv5m_err.c kv5m_err.et + if exist asn1_err.h copy asn1_err.h $(EHDRDIR) + if exist kdb5_err.h copy kdb5_err.h $(EHDRDIR) + if exist krb5_err.h copy krb5_err.h $(EHDRDIR) + if exist adm_err.h copy adm_err.h $(EHDRDIR) + if exist kv5m_err.h copy kv5m_err.h $(EHDRDIR) # # dependencies for traditional makes # -asn1_err.o: asn1_err.c -isode_err.o: isode_err.c -kdb5_err.o: kdb5_err.c -krb5_err.o: krb5_err.c -adm_err.o: adm_err.c -kv5m_err.o: kv5m_err.c - -clean:: +asn1_err.$(OBJEXT): asn1_err.c +isode_err.$(OBJEXT): isode_err.c +kdb5_err.$(OBJEXT): kdb5_err.c +krb5_err.$(OBJEXT): krb5_err.c +adm_err.$(OBJEXT): adm_err.c +kv5m_err.$(OBJEXT): kv5m_err.c + +clean:: clean-$(WHAT) + +clean-unix:: $(RM) $(HDRS) $(ETSRCS) + +clean-windows:: diff --git a/src/lib/krb5/error_tables/init_ets.c b/src/lib/krb5/error_tables/init_ets.c index ca440f818..f1ea18b83 100644 --- a/src/lib/krb5/error_tables/init_ets.c +++ b/src/lib/krb5/error_tables/init_ets.c @@ -27,8 +27,8 @@ #include -void -krb5_init_ets PROTOTYPE((krb5_context context)) +void INTERFACE +krb5_init_ets (krb5_context context) { static int initialized = 0;