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

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

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

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

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

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

23
clean-common: 	FORCE
24
	$(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
25
		$(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
26
		*.o *.lo a.out core version.c .libs/*
Kurt Zeilenga's avatar
Kurt Zeilenga committed
27

28
depend-common: FORCE
29
	$(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
30
31
32
33
34

lint-local: FORCE
lint5-local: FORCE

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