lib.mk 915 Bytes
Newer Older
Kurt Zeilenga's avatar
Kurt Zeilenga committed
1
# $OpenLDAP$
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
## Copyright 1998-2000 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)

24
clean-common: 	FORCE
25
	$(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
26
		$(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
27
		*.o *.lo a.out core version.c .libs/* \
28
29
		../`$(BASENAME) $(LIBRARY) .la`.so* \
		../`$(BASENAME) $(LIBRARY) .la`*.dll *.exe
Kurt Zeilenga's avatar
Kurt Zeilenga committed
30

31
depend-common: FORCE
32
	$(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
33
34
35
36
37

lint-local: FORCE
lint5-local: FORCE

Makefile: $(top_srcdir)/build/lib.mk