lib.mk 1021 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
11
12
13
14
15
16
17
18
##---------------------------------------------------------------------------
##
## Makefile Template for Libraries
##

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

version.c: $(OBJS) $(srcdir)/Version.c
	$(RM) $@
	(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` \
	h=`$(HOSTNAME)` t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
	-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
	-e "s|%VERSION%|$${v}|" \
	< $(srcdir)/Version.c > $@)

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

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

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

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

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

lint-local: FORCE
lint5-local: FORCE

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