From 18807359c9885fc7e1ca3aa37db1998364fb9d79 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 18 Nov 1995 03:22:58 +0000 Subject: [PATCH] Makefile.in, ChangeLog: Add support to compile shared libraries gssapi.h: Include sys/types.h, since that's where POSIX says size_t is defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7116 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/generic/ChangeLog | 7 +++++++ src/lib/gssapi/generic/Makefile.in | 19 ++++++++++++++++--- src/lib/gssapi/generic/configure.in | 1 + src/lib/gssapi/generic/gssapi.h | 5 +++++ 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index 519809df0..1bbc769b9 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,10 @@ +Fri Nov 17 22:21:58 1995 + + * Makefile.in, ChangeLog: Add support to compile shared libraries. + + * gssapi.h: Include sys/types.h, since that's where POSIX says + size_t is defined. + Fri Oct 6 22:01:57 1995 Theodore Y. Ts'o * Makefile.in: Remove ##DOS!include of config/windows.in. diff --git a/src/lib/gssapi/generic/Makefile.in b/src/lib/gssapi/generic/Makefile.in index 2674873af..718a5aaa2 100644 --- a/src/lib/gssapi/generic/Makefile.in +++ b/src/lib/gssapi/generic/Makefile.in @@ -3,13 +3,26 @@ CFLAGS = $(CCOPTS) $(DEFS) -I. -I$(srcdir) -DUSE_AUTOCONF_H ##DOSBUILDTOP = ..\..\.. ##DOSLIBNAME=..\gssapi.$(LIBEXT) -all:: $(OBJS) +.c.o: + $(CC) $(CFLAGS) -c $(srcdir)/$*.c +@SHARED_RULE@ + +all-unix:: shared $(OBJS) + +all-mac:: shared $(OBJS) + +all-windows:: $(OBJS) + +shared: + mkdir shared ETSRCS= gssapi_err_generic.c ETOBJS= gssapi_err_generic.$(OBJEXT) ETHDRS= gssapi_err_generic.h gssapi_err_generic.$(OBJEXT): gssapi_err_generic.c + $(CC) $(CFLAGS) -c $*.c +@SHARED_RULE_LOCAL@ gssapi_err_generic.h: gssapi_err_generic.et @@ -71,10 +84,10 @@ all-windows:: $(SRCS) $(HDRS) includes $(OBJS) unixmac: $(SRCS) $(HDRS) includes clean-unix:: - $(RM) $(ETHDRS) $(ETSRCS) + $(RM) $(ETHDRS) $(ETSRCS) shared/* clean-mac:: - $(RM) $(ETHDRS) $(ETSRCS) + $(RM) $(ETHDRS) $(ETSRCS) shared/* clean-windows:: $(RM) $(EHDRDIR)\gssapi.h $(EHDRDIR)\gssapi_generic.h diff --git a/src/lib/gssapi/generic/configure.in b/src/lib/gssapi/generic/configure.in index 0a3cbfeac..eed47343f 100644 --- a/src/lib/gssapi/generic/configure.in +++ b/src/lib/gssapi/generic/configure.in @@ -2,6 +2,7 @@ AC_INIT(configure.in) CONFIG_RULES AC_PROG_INSTALL ET_RULES +V5_SHARED_LIB_OBJS SubdirLibraryRule([${OBJS}]) AC_SIZE_T AC_CHECK_SIZEOF(short) diff --git a/src/lib/gssapi/generic/gssapi.h b/src/lib/gssapi/generic/gssapi.h index 99390059e..092017957 100644 --- a/src/lib/gssapi/generic/gssapi.h +++ b/src/lib/gssapi/generic/gssapi.h @@ -92,6 +92,11 @@ #include #endif /* HAVE_STDDEF_H */ +/* + * POSIX says that sys/types.h is where size_t is defined. + */ +#include + /* * If the platform supports the xom.h header file, it should be included here. */ -- 2.26.2