Makefile.in, ChangeLog: Add support to compile shared libraries
authorTheodore Tso <tytso@mit.edu>
Sat, 18 Nov 1995 03:22:58 +0000 (03:22 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 18 Nov 1995 03:22:58 +0000 (03:22 +0000)
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
src/lib/gssapi/generic/Makefile.in
src/lib/gssapi/generic/configure.in
src/lib/gssapi/generic/gssapi.h

index 519809df0a72a00a2d064e2a467d405c26c2d92b..1bbc769b949daed710f5bd5750047f97fc627e55 100644 (file)
@@ -1,3 +1,10 @@
+Fri Nov 17 22:21:58 1995    <tytso@rsts-11.mit.edu>
+
+       * 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  <tytso@dcl>
 
        * Makefile.in: Remove ##DOS!include of config/windows.in.
index 2674873af45e01fd7763e39bc1f9f655c4efb643..718a5aaa2929abef616149d2b05e299db29611d5 100644 (file)
@@ -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
index 0a3cbfeacfbb26d121d39ca82ffbb4a4ece1c669..eed47343f4ea81826226efe76531a49a0e0670f4 100644 (file)
@@ -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)
index 99390059e80e8a3c3e6f6f5f24465aaa2fa6ad82..09201795741f4bbbc8f26c0eb29adc5602e845ee 100644 (file)
 #include <stddef.h>
 #endif /* HAVE_STDDEF_H */
 
+/*
+ * POSIX says that sys/types.h is where size_t is defined.
+ */
+#include <sys/types.h>
+
 /*
  * If the platform supports the xom.h header file, it should be included here.
  */