]> git.sur5r.net Git - openldap/blob - build/top.mk
Pass TLS_LIBS to the Makefile's.
[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 sbindir = $(TMPROOT)@sbindir@
33 sharedstatedir = $(TMPROOT)@sharedstatedir@
34 sysconfdir = $(TMPROOT)@sysconfdir@/$(ldap_subdir)
35
36 EXEEXT = @EXEEXT@
37 OBJEXT = @OBJEXT@
38
39 INSTALL = @INSTALL@
40 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 INSTALL_DATA = @INSTALL_DATA@
42 INSTALL_SCRIPT = @INSTALL_SCRIPT@
43
44 LINT = lint
45 5LINT = 5lint
46
47 MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) \
48         -d "$(srcdir)" -c "$(MKDEP_CC)" -m "$(MKDEP_CFLAGS)"
49 MKDEP_CC        = @OL_MKDEP@
50 MKDEP_CFLAGS = @OL_MKDEP_FLAGS@
51
52 MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)"
53
54 LIBTOOL = @LIBTOOL@
55 LIBVERSION = 0:0:0
56 LTVERSION = --version-info $(LIBVERSION)
57 LTLIBLINK  = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION)
58 LTLINK  = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS)
59 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) 
60
61 # Misc UNIX commands used in build environment
62 AR = ar
63 AWK = @AWK@
64 BASENAME = basename
65 CAT = cat
66 CHMOD = chmod
67 DATE = date
68 HOSTNAME = uname -n
69 LN = ln
70 LN_H = @LN_H@
71 LN_S = @LN_S@
72 MAKEINFO = @MAKEINFO@
73 MKDIR = mkdir -p
74 MV = mv
75 PWD = pwd
76 RANLIB = @RANLIB@
77 RM = rm -f
78 SED = sed
79
80 # Misc UNIX commands used in programs
81 EDITOR = @EDITOR@
82 FINGER = @FINGER@
83 SENDMAIL = @SENDMAIL@
84
85 # For manual pages
86 # MANCOMPRESS=@MANCOMPRESS@
87 # MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
88 MANCOMPRESS=$(CAT)
89 MANCOMPRESSSUFFIX=
90
91 INCLUDEDIR= $(top_srcdir)/include
92 LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
93 LDAP_LIBADIR= $(top_builddir)/libraries
94 LDAP_LIBPATH= -L$(LDAP_LIBADIR)
95
96 LUTIL_LIBS = @LUTIL_LIBS@
97 LDBM_LIBS = @LDBM_LIBS@
98 LTHREAD_LIBS = @LTHREAD_LIBS@
99
100 LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
101 LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
102 LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a
103 LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a
104
105 LDAP_LIBAVL_DEPEND = $(LDAP_LIBDIR)/libavl/libavl.a
106 LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a
107 LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/libldap_r/libldap_r.la
108
109 LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \
110         $(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND)
111 SLAPD_LIBDEPEND = $(LDAP_LIBDEPEND) $(LDAP_LIBAVL_DEPEND) \
112         $(LDAP_LIBLDBM_DEPEND) $(LDAP_LIBLTHREAD_DEPEND)
113
114 # AutoConfig generated 
115 AC_CC   = @CC@
116 AC_CFLAGS = @CFLAGS@
117 AC_DEFS = @CPPFLAGS@ # @DEFS@
118 AC_LDFLAGS = @LDFLAGS@
119 AC_LIBS = @LIBS@
120
121 KRB_LIBS = @KRB_LIBS@
122 TLS_LIBS = @TLS_LIBS@
123 MODULES_CPPFLAGS = @SLAPD_MODULES_CPPFLAGS@
124 MODULES_LDFLAGS = @SLAPD_MODULES_LDFLAGS@
125 PERL_CPPFLAGS = @SLAPD_PERL_CPPFLAGS@
126 PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@
127 TERMCAP_LIBS = @TERMCAP_LIBS@
128
129 LDAPD_LIBS = @LDAPD_LIBS@
130 SLAPD_LIBS = @SLAPD_LIBS@
131 SLURPD_LIBS = @SLURPD_LIBS@
132
133 # Our Defaults
134 CC = $(AC_CC)
135 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
136 CFLAGS = $(AC_CFLAGS) $(DEFS)
137 LDFLAGS = $(LDAP_LIBPATH) $(AC_LDFLAGS) $(XLDFLAGS)
138 LIBS = $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
139
140 all:            all-common all-local FORCE
141 install:        install-common install-local FORCE
142 clean:          clean-common clean-local FORCE
143 veryclean:      veryclean-common veryclean-local FORCE
144 depend:         depend-common depend-local FORCE
145
146 # empty common rules
147 all-common:
148 install-common:
149 clean-common:
150 veryclean-common:       clean-common FORCE
151 depend-common:
152 lint-common:
153 lint5-common:
154
155 # empty local rules
156 all-local:
157 install-local:
158 clean-local:
159 veryclean-local:        clean-local FORCE
160 depend-local:
161 lint-local:
162 lint5-local:
163
164 veryclean: FORCE
165         $(RM) Makefile
166         $(RM) -r .libs
167
168 Makefile: Makefile.in $(top_srcdir)/build/top.mk
169
170 # empty rule for forcing rules
171 FORCE:
172
173 ##---------------------------------------------------------------------------