2 ## Copyright 1998-2002 The OpenLDAP Foundation
3 ## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
4 ## of this package for details.
5 ##---------------------------------------------------------------------------
7 ## Makefile Template for Server Modules
10 LIBRARY = $(LIBBASE).la
11 LIBSTAT = lib$(LIBBASE).a
20 all-no lint-no 5lint-no depend-no install-no: FORCE
21 @echo "run configure with $(BUILD_OPT) to make $(LIBBASE)"
23 all-common: all-$(BUILD_MOD)
27 $(MKVERSION) $(LIBBASE) > $@
29 $(LIBRARY): version.lo
30 $(LTLINK_MOD) -module -o $@ $(OBJS) version.lo $(LINK_LIBS)
32 $(LIBSTAT): version.lo
33 $(AR) ruv $@ `echo $(OBJS) | sed 's/\.lo/.o/g'` version.o
36 clean-common: clean-lib FORCE
37 veryclean-common: veryclean-lib FORCE
40 lint-common: lint-$(BUILD_MOD)
42 5lint-common: 5lint-$(BUILD_MOD)
44 depend-common: depend-$(BUILD_MOD)
46 install-common: install-$(BUILD_MOD)
49 all-mod: $(LIBRARY) all-local-mod FORCE
52 all-yes: $(LIBSTAT) all-local-lib FORCE
54 install-mod: $(LIBRARY)
55 @-$(MKDIR) $(DESTDIR)$(moduledir)
56 $(LTINSTALL) $(INSTALLFLAGS) -m 755 $(LIBRARY) $(DESTDIR)$(moduledir)
59 install-yes: install-local-lib FORCE
62 lint-yes lint-mod: lint-local-lib FORCE
63 $(LINT) $(DEFS) $(DEFINES) $(SRCS)
66 5lint-yes 5lint-mod: 5lint-local-lib FORCE
67 $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
70 clean-lib: clean-local-lib FORCE
71 $(RM) $(LIBRARY) $(LIBSTAT) version.c *.o *.lo a.out core .libs/*
74 depend-yes depend-mod: depend-local-lib FORCE
75 $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
78 veryclean-lib: clean-lib veryclean-local-lib
80 Makefile: $(top_srcdir)/build/mod.mk