lib.mk 1.07 KB
Newer Older
Kurt Zeilenga's avatar
Kurt Zeilenga committed
1
# $OpenLDAP$
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
## Copyright 1998-2003 The OpenLDAP Foundation
3
4
## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
## of this package for details.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
5
6
7
8
9
10
11
##---------------------------------------------------------------------------
##
## Makefile Template for Libraries
##

all-common: $(LIBRARY) $(PROGRAMS)

12
version.c: $(OBJS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
13
	$(RM) $@
14
	$(MKVERSION) $(LIBRARY) > $@
Kurt Zeilenga's avatar
Kurt Zeilenga committed
15

16
install-common: FORCE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
17
18
19
20
21
22
23

lint: lint-local FORCE
	$(LINT) $(DEFS) $(DEFINES) $(SRCS)

lint5: lint5-local FORCE
	$(5LINT) $(DEFS) $(DEFINES) $(SRCS)

Howard Chu's avatar
Howard Chu committed
24
25
26
27
28
#
# 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.
#
29
clean-common: 	FORCE
30
	$(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
31
		$(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
Kurt Zeilenga's avatar
Kurt Zeilenga committed
32
		*.o *.lo a.out *.exe core version.c .libs/* \
Howard Chu's avatar
Howard Chu committed
33
34
		../`$(BASENAME) $(LIBRARY) .la`.so* \
		../`$(BASENAME) $(LIBRARY) .la`*.dll
Kurt Zeilenga's avatar
Kurt Zeilenga committed
35

36
depend-common: FORCE
37
	$(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
38
39
40
41
42

lint-local: FORCE
lint5-local: FORCE

Makefile: $(top_srcdir)/build/lib.mk
Howard Chu's avatar
Howard Chu committed
43