~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

Viewing changes to build/mod.mk

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2008-07-10 14:45:49 UTC
  • Revision ID: james.westby@ubuntu.com-20080710144549-wck73med0e72gfyo
Tags: upstream-2.4.10
ImportĀ upstreamĀ versionĀ 2.4.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $OpenLDAP: pkg/ldap/build/mod.mk,v 1.25.2.3 2008/02/11 23:26:37 kurt Exp $
 
2
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 
3
##
 
4
## Copyright 1998-2008 The OpenLDAP Foundation.
 
5
## All rights reserved.
 
6
##
 
7
## Redistribution and use in source and binary forms, with or without
 
8
## modification, are permitted only as authorized by the OpenLDAP
 
9
## Public License.
 
10
##
 
11
## A copy of this license is available in the file LICENSE in the
 
12
## top-level directory of the distribution or, alternatively, at
 
13
## <http://www.OpenLDAP.org/license.html>.
 
14
##---------------------------------------------------------------------------
 
15
#
 
16
# Makefile Template for Server Modules
 
17
#
 
18
 
 
19
LIBRARY = $(LIBBASE).la
 
20
LIBSTAT = lib$(LIBBASE).a
 
21
 
 
22
MKDEPFLAG = -l
 
23
 
 
24
.SUFFIXES: .c .o .lo
 
25
 
 
26
.c.lo:
 
27
        $(LTCOMPILE_MOD) $<
 
28
 
 
29
all-no lint-no 5lint-no depend-no install-no: FORCE
 
30
        @echo "run configure with $(BUILD_OPT) to make $(LIBBASE)"
 
31
 
 
32
all-common: all-$(BUILD_MOD)
 
33
 
 
34
version.c: Makefile
 
35
        $(RM) $@
 
36
        $(MKVERSION) $(LIBBASE) > $@
 
37
 
 
38
version.lo: version.c $(OBJS)
 
39
 
 
40
$(LIBRARY): version.lo
 
41
        $(LTLINK_MOD) -module -o $@ $(OBJS) version.lo $(LINK_LIBS)
 
42
 
 
43
$(LIBSTAT): version.lo
 
44
        $(AR) ruv $@ `echo $(OBJS) | sed 's/\.lo/.o/g'` version.o
 
45
        @$(RANLIB) $@
 
46
 
 
47
clean-common: clean-lib FORCE
 
48
veryclean-common: veryclean-lib FORCE
 
49
 
 
50
 
 
51
lint-common: lint-$(BUILD_MOD)
 
52
 
 
53
5lint-common: 5lint-$(BUILD_MOD)
 
54
 
 
55
depend-common: depend-$(BUILD_MOD)
 
56
 
 
57
install-common: install-$(BUILD_MOD)
 
58
 
 
59
all-local-mod:
 
60
all-mod: $(LIBRARY) all-local-mod FORCE
 
61
 
 
62
all-local-lib:
 
63
all-yes: $(LIBSTAT) all-local-lib FORCE
 
64
 
 
65
install-mod: $(LIBRARY)
 
66
        @-$(MKDIR) $(DESTDIR)$(moduledir)
 
67
        $(LTINSTALL) $(INSTALLFLAGS) -m 755 $(LIBRARY) $(DESTDIR)$(moduledir)
 
68
 
 
69
install-local-lib:
 
70
install-yes: install-local-lib FORCE
 
71
 
 
72
lint-local-lib:
 
73
lint-yes lint-mod: lint-local-lib FORCE
 
74
        $(LINT) $(DEFS) $(DEFINES) $(SRCS)
 
75
 
 
76
5lint-local-lib:
 
77
5lint-yes 5lint-mod: 5lint-local-lib FORCE
 
78
        $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
 
79
 
 
80
clean-local-lib:
 
81
clean-lib:      clean-local-lib FORCE
 
82
        $(RM) $(LIBRARY) $(LIBSTAT) version.c *.o *.lo a.out core .libs/*
 
83
 
 
84
depend-local-lib:
 
85
depend-yes depend-mod: depend-local-lib FORCE
 
86
        $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
 
87
 
 
88
veryclean-local-lib:
 
89
veryclean-lib:  clean-lib veryclean-local-lib
 
90
 
 
91
Makefile: $(top_srcdir)/build/mod.mk
 
92