2 ## Copyright 1998-2003 The OpenLDAP Foundation.
3 ## All rights reserved.
5 ## Redistribution and use in source and binary forms, with or without
6 ## modification, are permitted only as authorized by the OpenLDAP
9 ## A copy of this license is available in the file LICENSE in the
10 ## top-level directory of the distribution or, alternatively, at
11 ## <http://www.OpenLDAP.org/license.html>.
12 ##---------------------------------------------------------------------------
14 # Makefile Template for Libraries
17 all-common: $(LIBRARY) $(PROGRAMS)
21 $(MKVERSION) $(LIBRARY) > $@
23 version.o version.lo: version.c $(OBJS)
27 lint: lint-local FORCE
28 $(LINT) $(DEFS) $(DEFINES) $(SRCS)
30 lint5: lint5-local FORCE
31 $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
34 # In the mingw/cygwin environment, the so and dll files must be
35 # deleted separately, instead of using the {.so*,*.dll} construct
36 # that was previously used. It just didn't work.
39 $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
40 $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
41 *.o *.lo a.out *.exe core version.c .libs/* \
42 ../`$(BASENAME) $(LIBRARY) .la`.so* \
43 ../`$(BASENAME) $(LIBRARY) .la`*.dll
46 $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
51 Makefile: $(top_srcdir)/build/lib.mk