]> git.sur5r.net Git - openldap/blob - build/top.mk
Unexpand spaces for tabs in prior commit before merging to rel_eng_1_1.
[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 ldap_subdir = @ldap_subdir@
21 bindir = @bindir@
22 datadir = @datadir@/$(ldap_subdir)
23 includedir = @includedir@
24 infodir = @infodir@
25 libdir = @libdir@
26 libexecdir = @libexecdir@
27 localstatedir = @localstatedir@
28 mandir = @mandir@
29 sbindir = @sbindir@
30 sharedstatedir = @sharedstatedir@
31 sysconfdir = @sysconfdir@/$(ldap_subdir)
32
33 INSTALL = @INSTALL@
34 INSTALL_PROGRAM = @INSTALL_PROGRAM@
35 INSTALL_DATA = @INSTALL_DATA@
36 INSTALL_SCRIPT = @INSTALL_SCRIPT@
37
38 MV = mv
39 LN = ln
40 LN_S = @LN_S@
41 RM = rm -f
42 MAKEINFO = @MAKEINFO@
43 RANLIB = @RANLIB@
44 AR = ar
45
46 LINT = lint
47 5LINT = 5lint
48 MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) -c "$(CC)"
49
50 LIBTOOL = @LIBTOOL@
51 LIBVERSION = 0:0:0
52 LTLINK  = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LFLAGS)
53 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) 
54
55 # Misc UNIX commands used in makefiles
56 SED = sed
57 DATE = date
58 HOSTNAME = uname -n
59 BASENAME = basename
60 PWD = pwd
61 CAT = cat
62 MKDIR = mkdir -p
63 CHMOD = chmod
64
65 # Misc UNIX commands used in programs
66 EDITOR = @EDITOR@
67 FINGER = @FINGER@
68 SENDMAIL = @SENDMAIL@
69
70 # For manual pages
71 # MANCOMPRESS=@MANCOMPRESS@
72 # MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
73 MANCOMPRESS=$(CAT)
74 MANCOMPRESSSUFFIX=
75
76 # Version
77 VERSIONFILE = $(top_srcdir)/build/version
78
79 INCLUDEDIR= $(top_srcdir)/include
80 LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
81 LDAP_LIBADIR= $(top_builddir)/libraries
82 LDAP_LIBPATH= -L$(LDAP_LIBADIR)
83
84 LDAP_LIBLBER = $(LDAP_LIBADIR)/liblber/liblber.la
85 LDAP_LIBLDAP = $(LDAP_LIBADIR)/libldap/libldap.la
86
87 LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
88 LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
89
90 LDAP_LIBS = $(LDAP_LIBPATH) -lldif $(LDAP_LIBLDAP) $(LDAP_LIBLBER)
91 LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldif.a $(LDAP_LIBLDAP) $(LDAP_LIBLBER)
92
93 # AutoConfig generated 
94 AC_CC   = @CC@
95 AC_DEFS = @CPPFLAGS@ @DEFS@
96 AC_LIBS = @LDFLAGS@ @LIBS@
97 AC_CFLAGS = @CFLAGS@
98 AC_LDFLAGS =
99
100 KRB_LIBS = @KRB_LIBS@
101 TERMCAP_LIBS = @TERMCAP_LIBS@
102
103 # Our Defaults
104 CC = $(AC_CC)
105 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) 
106 LIBS = $(LDAP_LIBS) $(XLIBS) $(AC_LIBS)
107
108 CFLAGS = $(AC_CFLAGS) $(DEFS) $(DEFINES)
109 LDFLAGS = $(AC_LDFLAGS)
110
111 all:            all-common all-local FORCE
112 install:        install-common install-local FORCE
113 clean:          clean-common clean-local FORCE
114 veryclean:      veryclean-common veryclean-local FORCE
115 depend:         depend-common depend-local FORCE
116
117 # empty common rules
118 all-common:
119 install-common:
120 clean-common:
121 veryclean-common:       clean-common FORCE
122 depend-common:
123 lint-common:
124 lint5-common:
125
126 # empty local rules
127 all-local:
128 install-local:
129 clean-local:
130 veryclean-local:        clean-local FORCE
131 depend-local:
132 lint-local:
133 lint5-local:
134
135 veryclean: FORCE
136         $(RM) Makefile
137         $(RM) -r .libs
138
139 Makefile: Makefile.in $(top_srcdir)/build/top.mk
140
141 # empty rule for forcing rules
142 FORCE:
143
144 ##---------------------------------------------------------------------------