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