1 ## Copyright 1998,1999 The OpenLDAP Foundation
2 ## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
3 ## of this package for details.
4 ##---------------------------------------------------------------------------
6 ## Makefile Template for Libraries
9 all-common: $(LIBRARY) $(PROGRAMS)
11 version.c: $(OBJS) $(srcdir)/Version.c
13 (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` \
14 h=`$(HOSTNAME)` t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
15 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
16 -e "s|%VERSION%|$${v}|" \
17 < $(srcdir)/Version.c > $@)
21 lint: lint-local FORCE
22 $(LINT) $(DEFS) $(DEFINES) $(SRCS)
24 lint5: lint5-local FORCE
25 $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
28 $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
29 $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
30 *.o *.lo a.out core version.c .libs/*
33 $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
38 Makefile: $(top_srcdir)/build/lib.mk