]> git.sur5r.net Git - openldap/blob - build/top.mk
Cleanup config.status and Makefile:Makefile.in dependency rules
[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 LN = ln
34 LN_S = @LN_S@
35 RM = rm -f
36 MAKEINFO = @MAKEINFO@
37 RANLIB = @RANLIB@
38 AR = ar
39
40 LINT = lint
41 5LINT = 5lint
42 MKDEP = $(top_srcdir)/build/mkdep
43
44 # Misc UNIX commands used in makefiles
45 SED = sed
46 DATE = date
47 HOSTNAME = uname -n
48 BASENAME = basename
49 PWD = pwd
50 CAT = cat
51 MKDIR = mkdir
52 CHMOD = chmod
53
54 # Misc UNIX commands used in programs
55 EDITOR = @EDITOR@
56 FINGER = @FINGER@
57 SENDMAIL = @SENDMAIL@
58
59 # Version
60 VERSIONFILE = $(top_srcdir)/build/version
61
62 INCLUDEDIR = $(top_srcdir)/include
63 LDAP_INCPATH = -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
64 LDAP_LIBPATH = -L$(LDAP_LIBDIR)
65
66 LDAP_LIBS = $(LDAP_LIBPATH) -lldif -lldap -llber
67 LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldif.a $(LDAP_LIBDIR)/libldap.a $(LDAP_LIBDIR)/liblber.a
68
69 # AutoConfig generated 
70 AC_CC   = @CC@
71 AC_DEFS = @CPPFLAGS@ @DEFS@ @LDAP_DEFS@
72 AC_LIBS = @LDFLAGS@ @LIBS@
73 AC_CFLAGS = @CFLAGS@
74 AC_LDFLAGS =
75
76 KRB_DEFS = @KRB_DEFS@
77 KRB_LIBS = @KRB_LIBS@
78 TERMCAP_DEFS = @TERMCAP_DEFS@
79 TERMCAP_LIBS = @TERMCAP_LIBS@
80
81 # Our Defaults
82 CC = $(AC_CC)
83 DEFS = $(LDAP_DEFS) $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) 
84 LIBS = $(LDAP_LIBS) $(XLIBS) $(AC_LIBS)
85
86 CFLAGS = $(AC_CFLAGS) $(DEFS) $(DEFINES)
87 LDFLAGS = $(AC_LDFLAGS)
88
89 all:            all-common FORCE
90 install:        install-common FORCE
91 clean:          clean-common FORCE
92 veryclean:      veryclean-common FORCE
93 depend:         depend-common FORCE
94
95 # empty local rules
96 all-local:
97 install-local:
98 clean-local:
99 veryclean-local:
100 depend-local:
101 lint-local:
102 lint5-local:
103
104 Makefile: Makefile.in $(top_srcdir)/build/top.mk
105
106 # empty rule for forcing rules
107 FORCE:
108
109 ##---------------------------------------------------------------------------