lib.mk 1.1 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)

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

Howard Chu's avatar
Howard Chu committed
16
17
version.o: version.c $(OBJS)

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

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

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

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

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

lint-local: FORCE
lint5-local: FORCE

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