2 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ## Copyright 1998-2017 The OpenLDAP Foundation.
5 ## All rights reserved.
7 ## Redistribution and use in source and binary forms, with or without
8 ## modification, are permitted only as authorized by the OpenLDAP
11 ## A copy of this license is available in the file LICENSE in the
12 ## top-level directory of the distribution or, alternatively, at
13 ## <http://www.OpenLDAP.org/license.html>.
14 ##---------------------------------------------------------------------------
16 # Makefile Template for Libraries
19 all-common: $(LIBRARY) $(PROGRAMS)
23 $(MKVERSION) $(LIBRARY) > $@
25 version.o version.lo: version.c $(OBJS)
29 lint: lint-local FORCE
30 $(LINT) $(DEFS) $(DEFINES) $(SRCS)
32 lint5: lint5-local FORCE
33 $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
36 # In the mingw/cygwin environment, the so and dll files must be
37 # deleted separately, instead of using the {.so*,*.dll} construct
38 # that was previously used. It just didn't work.
41 $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
42 $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
43 *.o *.lo a.out *.exe core version.c .libs/*
46 $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
51 Makefile: $(top_srcdir)/build/lib.mk