]> git.sur5r.net Git - openldap/blob - build/top.mk
Add libtool support based upon patch by Bart Hartgers <Hartgers@kfm1.phys.tue.nl>
[openldap] / build / top.mk
1 ##
2 ## Copyright 1998 The OpenLDAP Foundation
3 ## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
4 ## of this package for details.
5 ##
6 PACKAGE= @PACKAGE@
7 VERSION= @VERSION@
8
9 @SET_MAKE@
10 SHELL = /bin/sh
11
12 top_builddir = @top_builddir@
13
14 srcdir = @srcdir@
15 top_srcdir = @top_srcdir@
16 VPATH = @srcdir@
17 prefix = @prefix@
18 exec_prefix = @exec_prefix@
19
20 bindir = @bindir@
21 sbindir = @sbindir@
22 libexecdir = @libexecdir@
23 datadir = @datadir@
24 sysconfdir = @sysconfdir@/ldap
25 sharedstatedir = @sharedstatedir@
26 localstatedir = @localstatedir@
27 libdir = @libdir@
28 infodir = @infodir@
29 mandir = @mandir@
30 includedir = @includedir@
31
32 INSTALL = @INSTALL@
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@
34 INSTALL_DATA = @INSTALL_DATA@
35 INSTALL_SCRIPT = @INSTALL_SCRIPT@
36
37 MV = mv
38 LN = ln
39 LN_S = @LN_S@
40 RM = rm -f
41 MAKEINFO = @MAKEINFO@
42 RANLIB = @RANLIB@
43 AR = ar
44
45 LINT = lint
46 5LINT = 5lint
47 MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) -c "$(CC)"
48
49 LIBTOOL = @LIBTOOL@
50 LIBVERSION = 0:0:0
51 LTLINK  = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LFLAGS)
52 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) 
53
54 # Misc UNIX commands used in makefiles
55 SED = sed
56 DATE = date
57 HOSTNAME = uname -n
58 BASENAME = basename
59 PWD = pwd
60 CAT = cat
61 MKDIR = mkdir
62 CHMOD = chmod
63
64 # Misc UNIX commands used in programs
65 EDITOR = @EDITOR@
66 FINGER = @FINGER@
67 SENDMAIL = @SENDMAIL@
68
69 # For manual pages
70 # MANCOMPRESS=@MANCOMPRESS@
71 # MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
72 MANCOMPRESS=$(CAT)
73 MANCOMPRESSSUFFIX=
74
75 # Version
76 VERSIONFILE = $(top_srcdir)/build/version
77
78 INCLUDEDIR= $(top_srcdir)/include
79 LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
80 LDAP_LIBADIR= $(top_builddir)/libraries
81 LDAP_LIBPATH= -L$(LDAP_LIBADIR)
82
83 LDAP_LIBLBER = $(LDAP_LIBADIR)/liblber/liblber.la
84 LDAP_LIBLDAP = $(LDAP_LIBADIR)/libldap/libldap.la
85
86 LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
87 LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
88
89 LDAP_LIBS = $(LDAP_LIBPATH) -lldif $(LDAP_LIBLDAP) $(LDAP_LIBLBER)
90 LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldif.a $(LDAP_LIBLDAP) $(LDAP_LIBLBER)
91
92 # AutoConfig generated 
93 AC_CC   = @CC@
94 AC_DEFS = @CPPFLAGS@ @DEFS@
95 AC_LIBS = @LDFLAGS@ @LIBS@
96 AC_CFLAGS = @CFLAGS@
97 AC_LDFLAGS =
98
99 KRB_LIBS = @KRB_LIBS@
100 TERMCAP_LIBS = @TERMCAP_LIBS@
101
102 # Our Defaults
103 CC = $(AC_CC)
104 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) 
105 LIBS = $(LDAP_LIBS) $(XLIBS) $(AC_LIBS)
106
107 CFLAGS = $(AC_CFLAGS) $(DEFS) $(DEFINES)
108 LDFLAGS = $(AC_LDFLAGS)
109
110 all:            all-common all-local FORCE
111 install:        install-common install-local FORCE
112 clean:          clean-common clean-local FORCE
113 veryclean:      veryclean-common veryclean-local FORCE
114 depend:         depend-common depend-local FORCE
115
116 # empty common rules
117 all-common:
118 install-common:
119 clean-common:
120 veryclean-common:       clean-common FORCE
121 depend-common:
122 lint-common:
123 lint5-common:
124
125 # empty local rules
126 all-local:
127 install-local:
128 clean-local:
129 veryclean-local:        clean-local FORCE
130 depend-local:
131 lint-local:
132 lint5-local:
133
134 veryclean: FORCE
135         $(RM) Makefile
136
137 Makefile: Makefile.in $(top_srcdir)/build/top.mk
138
139 # empty rule for forcing rules
140 FORCE:
141
142 ##---------------------------------------------------------------------------