2 ## Copyright 1998-2003 The OpenLDAP Foundation
3 ## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
4 ## of this package for details.
5 ##---------------------------------------------------------------------------
7 ## Makefile Template for Libraries
10 all-common: $(LIBRARY) $(PROGRAMS)
14 $(MKVERSION) $(LIBRARY) > $@
16 version.o version.lo: version.c $(OBJS)
20 lint: lint-local FORCE
21 $(LINT) $(DEFS) $(DEFINES) $(SRCS)
23 lint5: lint5-local FORCE
24 $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
27 # In the mingw/cygwin environment, the so and dll files must be
28 # deleted separately, instead of using the {.so*,*.dll} construct
29 # that was previously used. It just didn't work.
32 $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
33 $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
34 *.o *.lo a.out *.exe core version.c .libs/* \
35 ../`$(BASENAME) $(LIBRARY) .la`.so* \
36 ../`$(BASENAME) $(LIBRARY) .la`*.dll
39 $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
44 Makefile: $(top_srcdir)/build/lib.mk