lib.mk 1.36 KB
Newer Older
Kurt Zeilenga's avatar
Kurt Zeilenga committed
1
# $OpenLDAP$
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
## Copyright 1998-2005 The OpenLDAP Foundation.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
3
## All rights reserved.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
4
##
Kurt Zeilenga's avatar
Kurt Zeilenga committed
5
6
7
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
8
##
Kurt Zeilenga's avatar
Kurt Zeilenga committed
9
10
11
12
13
14
15
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
##---------------------------------------------------------------------------
#
# Makefile Template for Libraries
#
Kurt Zeilenga's avatar
Kurt Zeilenga committed
16
17
18

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

Howard Chu's avatar
Howard Chu committed
19
version.c: Makefile
Kurt Zeilenga's avatar
Kurt Zeilenga committed
20
	$(RM) $@
21
	$(MKVERSION) $(LIBRARY) > $@
Kurt Zeilenga's avatar
Kurt Zeilenga committed
22

Howard Chu's avatar
Howard Chu committed
23
version.o version.lo: version.c $(OBJS)
Howard Chu's avatar
Howard Chu committed
24

25
install-common: FORCE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
26
27
28
29
30
31
32

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

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

Howard Chu's avatar
Howard Chu committed
33
34
35
36
37
#
# 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.
#
38
clean-common: 	FORCE
39
	$(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
40
		$(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
Kurt Zeilenga's avatar
Kurt Zeilenga committed
41
		*.o *.lo a.out *.exe core version.c .libs/* \
Howard Chu's avatar
Howard Chu committed
42
43
		../`$(BASENAME) $(LIBRARY) .la`.so* \
		../`$(BASENAME) $(LIBRARY) .la`*.dll
Kurt Zeilenga's avatar
Kurt Zeilenga committed
44

45
depend-common: FORCE
46
	$(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
47
48
49
50
51

lint-local: FORCE
lint5-local: FORCE

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