]> git.sur5r.net Git - openldap/blob - build/top.mk
Remove DEFS variables from Makefiles, remove bridge.h.
[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 @SET_MAKE@
7
8 SHELL = /bin/sh
9
10 srcdir = @srcdir@
11 top_srcdir = @top_srcdir@
12 VPATH = @srcdir@
13 prefix = @prefix@
14 exec_prefix = @exec_prefix@
15
16 bindir = @bindir@
17 sbindir = @sbindir@
18 libexecdir = @libexecdir@
19 datadir = @datadir@
20 sysconfdir = @sysconfdir@/ldap
21 sharedstatedir = @sharedstatedir@
22 localstatedir = @localstatedir@
23 libdir = @libdir@
24 infodir = @infodir@
25 mandir = @mandir@
26 includedir = @includedir@
27
28 INSTALL = @INSTALL@
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@
30 INSTALL_DATA = @INSTALL_DATA@
31 INSTALL_SCRIPT = @INSTALL_SCRIPT@
32
33 MV = mv
34 LN = ln
35 LN_S = @LN_S@
36 RM = rm -f
37 MAKEINFO = @MAKEINFO@
38 RANLIB = @RANLIB@
39 AR = ar
40
41 LINT = lint
42 5LINT = 5lint
43 MKDEP = $(top_srcdir)/build/mkdep
44
45 # Misc UNIX commands used in makefiles
46 SED = sed
47 DATE = date
48 HOSTNAME = uname -n
49 BASENAME = basename
50 PWD = pwd
51 CAT = cat
52 MKDIR = mkdir
53 CHMOD = chmod
54
55 # Misc UNIX commands used in programs
56 EDITOR = @EDITOR@
57 FINGER = @FINGER@
58 SENDMAIL = @SENDMAIL@
59
60 # Version
61 VERSIONFILE = $(top_srcdir)/build/version
62
63 INCLUDEDIR = $(top_srcdir)/include
64 LDAP_INCPATH = -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
65 LDAP_LIBPATH = -L$(LDAP_LIBDIR)
66
67 LDAP_LIBS = $(LDAP_LIBPATH) -lldif -lldap -llber
68 LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldif.a $(LDAP_LIBDIR)/libldap.a $(LDAP_LIBDIR)/liblber.a
69
70 # AutoConfig generated 
71 AC_CC   = @CC@
72 AC_DEFS = @CPPFLAGS@ @DEFS@
73 AC_LIBS = @LDFLAGS@ @LIBS@
74 AC_CFLAGS = @CFLAGS@
75 AC_LDFLAGS =
76
77 KRB_LIBS = @KRB_LIBS@
78 TERMCAP_LIBS = @TERMCAP_LIBS@
79
80 # Our Defaults
81 CC = $(AC_CC)
82 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) 
83 LIBS = $(LDAP_LIBS) $(XLIBS) $(AC_LIBS)
84
85 CFLAGS = $(AC_CFLAGS) $(DEFS) $(DEFINES)
86 LDFLAGS = $(AC_LDFLAGS)
87
88 all:            all-common FORCE
89 install:        install-common FORCE
90 clean:          clean-common FORCE
91 veryclean:      veryclean-common FORCE
92 depend:         depend-common FORCE
93
94 # empty local rules
95 all-local:
96 install-local:
97 clean-local:
98 veryclean-local:
99 depend-local:
100 lint-local:
101 lint5-local:
102
103 Makefile: Makefile.in $(top_srcdir)/build/top.mk
104
105 # empty rule for forcing rules
106 FORCE:
107
108 ##---------------------------------------------------------------------------