]> git.sur5r.net Git - openldap/blob - build/top.mk
Remove "touch all-common", not building when needed is worse than building
[openldap] / build / top.mk
1 ## Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
2 ## All rights reserved.
3 ##
4 ## Redistribution and use in source and binary forms are permitted only
5 ## as authorized by the OpenLDAP Public License.  A copy of this
6 ## license is available at http://www.OpenLDAP.org/license.html or
7 ## in file LICENSE in the top-level directory of the distribution.
8 ##
9 PACKAGE= @PACKAGE@
10 VERSION= @VERSION@
11
12 @SET_MAKE@
13 SHELL = /bin/sh
14
15 top_builddir = @top_builddir@
16
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 prefix = @prefix@
21 exec_prefix = @exec_prefix@
22 ldap_subdir = @ldap_subdir@
23
24 bindir = $(TMPROOT)@bindir@
25 datadir = $(TMPROOT)@datadir@$(ldap_subdir)
26 includedir = $(TMPROOT)@includedir@
27 infodir = $(TMPROOT)@infodir@
28 libdir = $(TMPROOT)@libdir@
29 libexecdir = $(TMPROOT)@libexecdir@
30 localstatedir = $(TMPROOT)@localstatedir@
31 mandir = $(TMPROOT)@mandir@
32 moduledir = $(TMPROOT)@libexecdir@$(ldap_subdir)
33 sbindir = $(TMPROOT)@sbindir@
34 sharedstatedir = $(TMPROOT)@sharedstatedir@
35 sysconfdir = $(TMPROOT)@sysconfdir@$(ldap_subdir)
36
37 EXEEXT = @EXEEXT@
38 OBJEXT = @OBJEXT@
39
40 INSTALL = @INSTALL@
41 INSTALL_PROGRAM = @INSTALL_PROGRAM@
42 INSTALL_DATA = @INSTALL_DATA@
43 INSTALL_SCRIPT = @INSTALL_SCRIPT@
44
45 LINT = lint
46 5LINT = 5lint
47
48 MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) \
49         -d "$(srcdir)" -c "$(MKDEP_CC)" -m "$(MKDEP_CFLAGS)"
50 MKDEP_CC        = @OL_MKDEP@
51 MKDEP_CFLAGS = @OL_MKDEP_FLAGS@
52
53 MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)"
54
55 LIBTOOL = @LIBTOOL@
56 LIBVERSION = 0:0:0
57 LTVERSION = -version-info $(LIBVERSION)
58 LTLIBLINK  = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION)
59 LTLINK  = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS)
60 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) 
61
62 # Misc UNIX commands used in build environment
63 AR = ar
64 AWK = @AWK@
65 BASENAME = basename
66 CAT = cat
67 CHMOD = chmod
68 DATE = date
69 HOSTNAME = uname -n
70 LN = ln
71 LN_H = @LN_H@
72 LN_S = @LN_S@
73 MAKEINFO = @MAKEINFO@
74 MKDIR = mkdir -p
75 MV = mv
76 PWD = pwd
77 RANLIB = @RANLIB@
78 RM = rm -f
79 SED = sed
80
81 # Misc UNIX commands used in programs
82 EDITOR = @EDITOR@
83 FINGER = @FINGER@
84 SENDMAIL = @SENDMAIL@
85
86 # For manual pages
87 # MANCOMPRESS=@MANCOMPRESS@
88 # MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
89 MANCOMPRESS=$(CAT)
90 MANCOMPRESSSUFFIX=
91
92 INCLUDEDIR= $(top_srcdir)/include
93 LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
94 LDAP_LIBADIR= $(top_builddir)/libraries
95 LDAP_LIBPATH= -L$(LDAP_LIBADIR)
96
97 LUTIL_LIBS = @LUTIL_LIBS@
98 LDIF_LIBS = @LDIF_LIBS@
99 LDBM_LIBS = @LDBM_LIBS@
100 LTHREAD_LIBS = @LTHREAD_LIBS@
101
102 LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
103 LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
104 LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a
105 LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a
106
107 LDAP_LIBAVL_DEPEND = $(LDAP_LIBDIR)/libavl/libavl.a
108 LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a
109 LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/libldap_r/libldap_r.la
110
111 LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \
112         $(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND)
113 SLAPD_LIBDEPEND = $(LDAP_LIBDEPEND) $(LDAP_LIBAVL_DEPEND) \
114         $(LDAP_LIBLDBM_DEPEND) $(LDAP_LIBLTHREAD_DEPEND)
115
116 # AutoConfig generated 
117 AC_CC   = @CC@
118 AC_CFLAGS = @CFLAGS@
119 AC_DEFS = @CPPFLAGS@ # @DEFS@
120 AC_LDFLAGS = @LDFLAGS@
121 AC_LIBS = @LIBS@
122
123 KRB_LIBS = @KRB_LIBS@
124 SASL_LIBS = @SASL_LIBS@
125 TLS_LIBS = @TLS_LIBS@
126 SECURITY_LIBS = @SASL_LIBS@ @KRB_LIBS@ @TLS_LIBS@
127
128 MODULES_CPPFLAGS = @SLAPD_MODULES_CPPFLAGS@
129 MODULES_LDFLAGS = @SLAPD_MODULES_LDFLAGS@
130 MODULES_LIBS = @MODULES_LIBS@
131 PERL_CPPFLAGS = @SLAPD_PERL_CPPFLAGS@
132 PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@
133 TERMCAP_LIBS = @TERMCAP_LIBS@
134
135 LDAPD_LIBS = @LDAPD_LIBS@
136 SLAPD_LIBS = @SLAPD_LIBS@
137 SLURPD_LIBS = @SLURPD_LIBS@
138
139 # Our Defaults
140 CC = $(AC_CC)
141 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
142 CFLAGS = $(AC_CFLAGS) $(DEFS)
143 LDFLAGS = $(LDAP_LIBPATH) $(AC_LDFLAGS) $(XLDFLAGS)
144 LIBS = $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
145
146 all:            all-common all-local FORCE
147 install:        install-common install-local FORCE
148 clean:          clean-common clean-local FORCE
149 veryclean:      veryclean-common veryclean-local FORCE
150 depend:         depend-common depend-local FORCE
151
152 # empty common rules
153 all-common:
154 install-common:
155 clean-common:
156 veryclean-common:       clean-common FORCE
157 depend-common:
158 lint-common:
159 lint5-common:
160
161 # empty local rules
162 all-local:
163 install-local:
164 clean-local:
165 veryclean-local:        clean-local FORCE
166 depend-local:
167 lint-local:
168 lint5-local:
169
170 veryclean: FORCE
171         $(RM) Makefile
172         $(RM) -r .libs
173
174 Makefile: Makefile.in $(top_srcdir)/build/top.mk
175
176 # empty rule for forcing rules
177 FORCE:
178
179 ##---------------------------------------------------------------------------