]> git.sur5r.net Git - openldap/blob - build/mod.mk
Add missing veryclean target
[openldap] / build / mod.mk
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 ##---------------------------------------------------------------------------
5 ##
6 ## Makefile Template for Server Modules
7 ##
8
9 LIBRARY = $(LIBBASE).la
10 LIBSTAT = lib$(LIBBASE).a
11 LTFLAGS = --only-$(LINKAGE)
12
13 all-no lint-no 5lint-no depend-no install-no:
14         @echo "run configure with $(BUILD_OPT) to make $(LIBBASE)"
15
16 all-common: all-$(BUILD_MOD)
17
18 version.c: $(OBJS)
19         $(RM) $@
20         $(MKVERSION) $(LIBBASE) > $@
21
22 $(LIBRARY): version.lo
23         $(LTLIBLINK) -module -rpath $(moduledir) -o $@ $(OBJS) version.lo
24
25 $(LIBSTAT): version.lo
26         $(AR) ruv $@ `echo $(OBJS) | sed 's/\.lo/.o/g'` version.o
27         @$(RANLIB) $@
28
29 clean-common: clean-lib FORCE
30 veryclean-common: veryclean-lib FORCE
31
32
33 lint-common: lint-$(BUILD_MOD)
34
35 5lint-common: 5lint-$(BUILD_MOD)
36
37 depend-common: depend-$(BUILD_MOD)
38
39 install-common: install-$(BUILD_MOD)
40
41 all-local-mod:
42 all-mod: $(LIBRARY) all-local-mod FORCE
43
44 all-local-lib:
45 all-yes: $(LIBSTAT) all-local-lib FORCE
46
47 install-mod: $(LIBRARY)
48         @-$(MKDIR) $(moduledir)
49         $(LTINSTALL) $(INSTALLFLAGS) -m 755 $(LIBRARY) $(moduledir)
50
51 install-local-lib:
52 install-yes: install-local-lib FORCE
53
54 lint-local-lib:
55 lint-yes lint-mod: lint-local-lib FORCE
56         $(LINT) $(DEFS) $(DEFINES) $(SRCS)
57
58 5lint-local-lib:
59 5lint-yes 5lint-mod: 5lint-local-lib FORCE
60         $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
61
62 clean-local-lib:
63 clean-lib:      clean-local-lib FORCE
64         $(RM) $(LIBRARY) $(LIBSTAT) version.c *.o *.lo a.out core .libs/*
65
66 depend-local-lib:
67 depend-yes depend-mod: depend-local-lib FORCE
68         $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
69
70 veryclean-local-lib:
71 veryclean-lib:  clean-lib veryclean-local-lib
72
73 COMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CFLAGS) -c
74 MKDEPFLAG = -l
75
76 .SUFFIXES: .c .o .lo
77
78 .c.lo:
79         $(COMPILE) $<
80
81 Makefile: $(top_srcdir)/build/mod.mk