Remove <tab> in OpenLDAP MMR config
[Samba/vfs_proxy.git] / source4 / Makefile
blobd91d08a252b04eb40e4d2ad91827a8ec326d4bd6
1 #!gmake
2 # The Samba 4 Makefile.
3 # This file is *NOT* autogenerated.
5 .DEFAULT_GOAL := all
7 default: all
9 include mkconfig.mk
11 pidldir := $(srcdir)/pidl
13 BASEDIR = $(prefix)
14 TORTUREDIR = $(libdir)/torture
15 SWATDIR = $(datadir)/swat
16 JSDIR = $(datadir)/js
17 SETUPDIR = $(datadir)/setup
18 NCALRPCDIR = $(localstatedir)/ncalrpc
20 BNLD = $(LD)
21 BNLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS)
23 HOSTCC_FLAGS = -D_SAMBA_HOSTCC_ $(CFLAGS)
24 HOSTLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS)
26 $(srcdir)/version.h: $(srcdir)/VERSION
27 @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
29 ifneq ($(automatic_dependencies),yes)
30 ALL_PREDEP = basics
31 .NOTPARALLEL:
32 endif
34 regen_version::
35 @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
37 clean_pch::
38 @echo "Removing precompiled headers"
39 @-rm -f include/includes.h.gch
41 pch:: clean_pch include/includes.h.gch
43 .DEFAULT_GOAL := all
45 ifneq ($(automatic_dependencies),yes)
46 ALL_PREDEP = basics
47 .NOTPARALLEL:
48 endif
50 include $(srcdir)/build/make/rules.mk
51 include $(srcdir)/build/make/python.mk
52 zlibsrcdir := lib/zlib
53 dynconfigsrcdir := dynconfig
54 heimdalsrcdir := heimdal
55 dsdbsrcdir := dsdb
56 smbdsrcdir := smbd
57 clustersrcdir := cluster
58 libnetsrcdir := libnet
59 authsrcdir := auth
60 nsswitchsrcdir := nsswitch
61 libsrcdir := lib
62 libsocketsrcdir := lib/socket
63 libcharsetsrcdir := lib/charset
64 ldb_sambasrcdir := lib/ldb-samba
65 tdbsrcdir := lib/tdb
66 ldbsrcdir := lib/ldb
67 libtlssrcdir := lib/tls
68 libregistrysrcdir := lib/registry
69 smbreadlinesrcdir := lib/smbreadline
70 libmessagingsrcdir := lib/messaging
71 libeventssrcdir := lib/events
72 libcmdlinesrcdir := lib/cmdline
73 poptsrcdir := lib/popt
74 socketwrappersrcdir := lib/socket_wrapper
75 nsswrappersrcdir := lib/nss_wrapper
76 appwebsrcdir := lib/appweb
77 libstreamsrcdir := lib/stream
78 libutilsrcdir := lib/util
79 libtdrsrcdir := lib/tdr
80 libdbwrapsrcdir := lib/dbwrap
81 libcryptosrcdir := lib/crypto
82 libtorturesrcdir := lib/torture
83 smb_serversrcdir := smb_server
84 libcompressionsrcdir := lib/compression
85 libgencachesrcdir := lib
86 paramsrcdir := param
87 rpc_serversrcdir := rpc_server
88 ldap_serversrcdir := ldap_server
89 web_serversrcdir := web_server
90 winbindsrcdir := winbind
91 nbt_serversrcdir := nbt_server
92 wrepl_serversrcdir := wrepl_server
93 cldap_serversrcdir := cldap_server
94 utilssrcdir := utils
95 clientsrcdir := client
96 torturesrcdir := torture
97 ntvfssrcdir := ntvfs
98 ntptrsrcdir := ntptr
99 librpcsrcdir := librpc
100 libclisrcdir := libcli
101 ejsscriptsrcdir := scripting/ejs
102 pyscriptsrcdir := $(srcdir)/scripting/python
103 kdcsrcdir := kdc
104 ntp_signdsrcdir := ntp_signd
106 include data.mk
108 pythonmods:: $(PYTHON_PYS) $(PYTHON_SO)
110 DEP_FILES = $(patsubst %.ho,%.hd,$(patsubst %.o,%.d,$(ALL_OBJS))) \
111 include/includes.d
113 ifeq ($(automatic_dependencies),yes)
114 ifneq ($(MAKECMDGOALS),clean)
115 ifneq ($(MAKECMDGOALS),distclean)
116 ifneq ($(MAKECMDGOALS),realdistclean)
117 ifneq ($(SKIP_DEP_FILES),yes)
118 -include $(DEP_FILES)
119 endif
120 endif
121 endif
122 endif
124 ifneq ($(SKIP_DEP_FILES),yes)
125 clean::
126 @echo Removing dependency files
127 @find . -name '*.d' -o -name '*.hd' | xargs rm -f
128 endif
129 else
130 include $(srcdir)/static_deps.mk
131 endif
133 DEFAULT_HEADERS = $(srcdir)/lib/util/dlinklist.h \
134 $(srcdir)/version.h
136 libraries:: $(STATIC_LIBS) $(SHARED_LIBS)
137 modules:: $(PLUGINS)
138 headers:: $(PUBLIC_HEADERS) $(DEFAULT_HEADERS)
139 manpages:: $(MANPAGES)
140 all:: showflags $(ALL_PREDEP) binaries modules pythonmods libraries headers
141 everything:: all
143 LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)=$(builddir)/bin/shared
145 # 'make testsuite' creates all binaries which are
146 # needed by samba3's 'make test' and the build-farm
147 # scripts use that it as fallback in case
148 # 'make everything' fails
149 testsuite:: bin/smbclient bin/cifsdd bin/smbtorture bin/nmblookup
151 showlayout::
152 @echo 'Samba will be installed into:'
153 @echo ' basedir: $(BASEDIR)'
154 @echo ' bindir: $(bindir)'
155 @echo ' sbindir: $(sbindir)'
156 @echo ' libdir: $(libdir)'
157 @echo ' modulesdir: $(modulesdir)'
158 @echo ' includedir: $(includedir)'
159 @echo ' vardir: $(localstatedir)'
160 @echo ' privatedir: $(privatedir)'
161 @echo ' piddir: $(piddir)'
162 @echo ' lockdir: $(lockdir)'
163 @echo ' logfilebase: $(logfilebase)'
164 @echo ' setupdir: $(SETUPDIR)'
165 @echo ' jsdir: $(JSDIR)'
166 @echo ' swatdir: $(SWATDIR)'
167 @echo ' mandir: $(mandir)'
168 @echo ' torturedir: $(TORTUREDIR)'
169 @echo ' datadir: $(datadir)'
170 @echo ' winbindd_socket_dir: $(winbindd_socket_dir)'
171 @echo ' ntp_signd_socket_dir: $(ntp_signd_socket_dir)'
173 showflags::
174 @echo ' srcdir = $(srcdir)'
175 @echo ' builddir = $(builddir)'
177 # The permissions to give the executables
178 INSTALLPERMS = 0755
180 install:: showlayout everything installbin installsbin installdat installswat installmisc \
181 installlib installheader installpc installplugins
183 # DESTDIR is used here to prevent packagers wasting their time
184 # duplicating the Makefile. Remove it and you will have the privilege
185 # of packaging each samba release for multiple versions of multiple
186 # distributions and operating systems, or at least supplying patches
187 # to all the packaging files required for this, prior to committing
188 # the removal of DESTDIR. Do not remove it even though you think it
189 # is not used.
191 installdirs::
192 @$(SHELL) $(srcdir)/script/installdirs.sh \
193 $(DESTDIR)$(BASEDIR) \
194 $(DESTDIR)$(bindir) \
195 $(DESTDIR)$(sbindir) \
196 $(DESTDIR)$(TORTUREDIR) \
197 $(DESTDIR)$(libdir) \
198 $(DESTDIR)$(modulesdir) \
199 $(DESTDIR)$(mandir) \
200 $(DESTDIR)$(localstatedir) \
201 $(DESTDIR)$(localstatedir)/lib \
202 $(DESTDIR)$(localstatedir)/run \
203 $(DESTDIR)$(privatedir) \
204 $(DESTDIR)$(datadir) \
205 $(DESTDIR)$(piddir) \
206 $(DESTDIR)$(lockdir) \
207 $(DESTDIR)$(logfilebase) \
208 $(DESTDIR)$(privatedir)/tls \
209 $(DESTDIR)$(includedir) \
210 $(DESTDIR)$(PKGCONFIGDIR) \
211 $(DESTDIR)$(sysconfdir)
213 installbin:: $(SBIN_PROGS) $(BIN_PROGS) $(TORTURE_PROGS) installdirs
214 @$(SHELL) $(srcdir)/script/installtorture.sh \
215 $(INSTALLPERMS) \
216 $(DESTDIR)$(TORTUREDIR) \
217 $(TORTURE_PROGS)
219 installplugins::
221 installlib:: $(SHARED_LIBS) $(STATIC_LIBS) installdirs
222 @$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(libdir) "$(SHLIBEXT)" $(SHARED_LIBS)
223 #@$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(libdir) "$(STLIBEXT)" $(STATIC_LIBS)
225 installheader:: headers installdirs
226 @srcdir=$(srcdir) builddir=$(builddir) $(PERL) $(srcdir)/script/installheader.pl $(DESTDIR)$(includedir) $(PUBLIC_HEADERS) $(DEFAULT_HEADERS)
228 installdat:: installdirs
229 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(datadir) $(srcdir)
231 installswat:: installdirs
232 #SWAT has been disabled until further notice
233 # @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir)
235 installman:: manpages installdirs
236 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(mandir) $(MANPAGES)
238 installmisc:: installdirs
239 @$(SHELL) $(srcdir)/script/installmisc.sh $(srcdir) $(DESTDIR)$(JSDIR) $(DESTDIR)$(SETUPDIR) $(DESTDIR)$(bindir)
241 installpc:: installdirs
242 @$(SHELL) $(srcdir)/script/installpc.sh $(builddir) $(DESTDIR)$(PKGCONFIGDIR) $(PC_FILES)
244 uninstall:: uninstallbin uninstallman uninstallmisc uninstalllib uninstallheader \
245 uninstallplugins
247 uninstallmisc::
248 #FIXME
250 $(DESTDIR)$(bindir)/%: bin/% installdirs
251 @mkdir -p $(@D)
252 @echo Installing $(@F) as $@
253 @if test -f $@; then echo -n ""; rm -f $@.old; mv $@ $@.old; fi
254 @cp $< $@
255 @chmod $(INSTALLPERMS) $@
257 $(DESTDIR)$(sbindir)/%: bin/% installdirs
258 @mkdir -p $(@D)
259 @echo Installing $(@F) as $@
260 @if test -f $@; then echo -n ""; rm -f $@.old; mv $@ $@.old; fi
261 @cp $< $@
262 @chmod $(INSTALLPERMS) $@
264 uninstallbin::
265 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(sbindir) $(DESTDIR)$(libdir) $(DESTDIR)$(localstatedir) $(DESTDIR)$(SBIN_PROGS)
266 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(localstatedir) $(DESTDIR)$(BIN_PROGS)
267 @$(SHELL) $(srcdir)/script/uninstalltorture.sh $(DESTDIR)$(TORTUREDIR) $(TORTURE_PROGS)
269 uninstalllib::
270 @$(SHELL) $(srcdir)/script/uninstalllib.sh $(DESTDIR)$(libdir) $(SHARED_LIBS)
271 #@$(SHELL) $(srcdir)/script/uninstalllib.sh $(DESTDIR)$(libdir) $(STATIC_LIBS)
273 uninstallheader::
274 @$(SHELL) $(srcdir)/script/uninstallheader.sh $(DESTDIR)$(includedir) $(PUBLIC_HEADERS)
276 uninstallman::
277 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(mandir) $(MANPAGES)
279 uninstallplugins::
281 config.status:
282 @echo "config.status does not exist. Please run ./configure."
283 @/bin/false
285 data.mk: config.status $(MK_FILES)
286 ./config.status
288 testcov-html::
290 include $(pidldir)/config.mk
291 selftestdir := $(srcdir)/selftest
292 include $(selftestdir)/config.mk
294 showflags::
295 @echo ' pwd = '`/bin/pwd`