##DOSLIBNAME=comerr.lib
##DOS!include $(BUILDTOP)\config\windows.in
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
LIBDONE=DONE
LIB_SUBDIRS=.
INSTALLFILE = cp
# real entries...
#
-all-unix:: compile_et includes
+all-unix:: compile_et includes shared
all-mac:: libcom_err.a
+shared:
+ mkdir shared
# The real compile_et just isn't portable. (But then again, anything using
# lex and yacc isn't portable by definition. :-( )
AC_CHECK_HEADERS(stdarg.h)
AC_HAVE_HEADERS(stdlib.h)
CopySrcHeader(com_err.h,$(BUILDTOP)/include)
+V5_SHARED_LIB_OBJS
V5_MAKE_SHARED_LIB(libcom_err)
AC_ARG_ENABLE([shared],
[ --enable-shared build shared libraries],[
[$](INSTALL_DATA) libcom_err.[$](SHEXT) \
[$](DESTDIR)[$](KRB5_SHLIBDIR)[$](S)libcom_err.[$](SHEXT)])
])dnl
-if test -n "$krb5_cv_enable_staticlibs" ; then
+if test -n "$krb5_cv_staticlibs_enabled" ; then
AppendRule([install:: libcom_err.[$](STEXT)
[$](INSTALL_DATA) libcom_err.[$](STEXT) [$](DESTDIR)[$](KRB5_LIBDIR)[$](S)libcom_err.[$](STEXT)])
LinkFileDir([$](TOPLIBD)/libcom_err.[$](STEXT),libcom_err.[$](STEXT),../util/et)