Updated krb5/error_tables for the PC. Makefile.in set up to run awk if one
authorKeith Vetter <keithv@fusion.com>
Tue, 21 Feb 1995 22:45:04 +0000 (22:45 +0000)
committerKeith Vetter <keithv@fusion.com>
Tue, 21 Feb 1995 22:45:04 +0000 (22:45 +0000)
is available.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4961 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/error_tables/ChangeLog
src/lib/krb5/error_tables/Makefile.in
src/lib/krb5/error_tables/init_ets.c

index 23bcddd9eb549a18c5f7577c5da614a987782765..bef83255ee2140a0c496acdb7b41ad6f64aeb279 100644 (file)
@@ -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  <tytso@dcl>
 
        * Makefile:
index 6b3614ef4fcc123e177376281cf4ca21542b733a..2cd8496f538e56fa95d99758ec20a5ffc6cd6a5b 100644 (file)
@@ -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::
index ca440f818e1b7ddc03e77e7d559ad0d81ed503cc..f1ea18b83525359eb746f90fc559d71f1077945c 100644 (file)
@@ -27,8 +27,8 @@
 
 #include <krb5/krb5.h>
 
-void
-krb5_init_ets PROTOTYPE((krb5_context context))
+void INTERFACE
+krb5_init_ets (krb5_context context)
 {
     static int initialized = 0;