+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.
##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
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
#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.
*/