X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=build%2Flib.mk;h=d62b0e80703da93b883861348fb654f5d6acd215;hb=5385d13bf89dd05da03a2df6e3a0de0385dc2a28;hp=b647665842f9e09c1d4d612b14201a652e256cfa;hpb=34edec3107b3a075d31d917e654f650c38ef19dc;p=openldap
diff --git a/build/lib.mk b/build/lib.mk
index b647665842..d62b0e8070 100644
--- a/build/lib.mk
+++ b/build/lib.mk
@@ -1,18 +1,29 @@
# $OpenLDAP$
-## Copyright 1998-2000 The OpenLDAP Foundation
-## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
-## of this package for details.
-##---------------------------------------------------------------------------
+## This work is part of OpenLDAP Software .
+##
+## Copyright 1998-2006 The OpenLDAP Foundation.
+## All rights reserved.
##
-## Makefile Template for Libraries
+## Redistribution and use in source and binary forms, with or without
+## modification, are permitted only as authorized by the OpenLDAP
+## Public License.
##
+## A copy of this license is available in the file LICENSE in the
+## top-level directory of the distribution or, alternatively, at
+## .
+##---------------------------------------------------------------------------
+#
+# Makefile Template for Libraries
+#
all-common: $(LIBRARY) $(PROGRAMS)
-version.c: $(OBJS)
+version.c: Makefile
$(RM) $@
$(MKVERSION) $(LIBRARY) > $@
+version.o version.lo: version.c $(OBJS)
+
install-common: FORCE
lint: lint-local FORCE
@@ -21,11 +32,17 @@ lint: lint-local FORCE
lint5: lint5-local FORCE
$(5LINT) $(DEFS) $(DEFINES) $(SRCS)
+#
+# In the mingw/cygwin environment, the so and dll files must be
+# deleted separately, instead of using the {.so*,*.dll} construct
+# that was previously used. It just didn't work.
+#
clean-common: FORCE
$(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
$(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
*.o *.lo a.out *.exe core version.c .libs/* \
- ../`$(BASENAME) $(LIBRARY) .la`{.a,.so*,*.dll}
+ ../`$(BASENAME) $(LIBRARY) .la`.so* \
+ ../`$(BASENAME) $(LIBRARY) .la`*.dll
depend-common: FORCE
$(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
@@ -34,3 +51,4 @@ lint-local: FORCE
lint5-local: FORCE
Makefile: $(top_srcdir)/build/lib.mk
+