Plumb the SMB2 front end into the blocking lock backend.
[Samba.git] / source4 / Makefile.in
blob45f2f16b632ab5969ec5e97d940c775e5fd1ccbf
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 setupdir = $(datadir)/setup
15 ncalrpcdir = $(localstatedir)/ncalrpc
16 shliboutputdir = $(builddir)/bin/shared
18 BNLD = $(LD)
19 BNLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS)
21 HOSTCC_FLAGS = -D_SAMBA_HOSTCC_ $(CFLAGS)
22 HOSTLD_FLAGS = $(LDFLAGS) $(SYS_LDFLAGS)
24 $(srcdir)/version.h: $(srcdir)/VERSION
25 @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
27 ifneq ($(automatic_dependencies),yes)
28 ALL_PREDEP = basics
29 .NOTPARALLEL:
30 endif
32 regen_version::
33 @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
35 clean_pch::
36 @echo "Removing precompiled headers"
37 @-rm -f include/includes.h.gch
39 pch:: clean_pch include/includes.h.gch
41 .DEFAULT_GOAL := all
43 ifneq ($(automatic_dependencies),yes)
44 ALL_PREDEP = basics
45 .NOTPARALLEL:
46 endif
48 base_srcdirs = $(srcdir) ../librpc/ ../lib/ ../libcli ../libgpo ../nsswitch ../libds
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 libwbclientsrcdir := ../nsswitch/libwbclient
62 libsrcdir := lib
63 libsocketsrcdir := lib/socket
64 libcharsetsrcdir := ../lib/util/charset
65 ldb_sambasrcdir := lib/ldb-samba
66 tdbsrcdir := ../lib/tdb
67 ldbsrcdir := lib/ldb
68 libtlssrcdir := lib/tls
69 libregistrysrcdir := lib/registry
70 smbreadlinesrcdir := lib/smbreadline
71 libmessagingsrcdir := lib/messaging
72 libteventsrcdir := ../lib/tevent
73 libeventssrcdir := lib/events
74 libcmdlinesrcdir := lib/cmdline
75 poptsrcdir := ../lib/popt
76 socketwrappersrcdir := ../lib/socket_wrapper
77 nsswrappersrcdir := ../lib/nss_wrapper
78 uidwrappersrcdir := ../lib/uid_wrapper
79 appwebsrcdir := lib/appweb
80 libstreamsrcdir := lib/stream
81 libutilsrcdir := ../lib/util
82 libtdrsrcdir := ../lib/tdr
83 libcryptosrcdir := ../lib/crypto
84 libtorturesrcdir := ../lib/torture
85 smb_serversrcdir := smb_server
86 libcompressionsrcdir := ../lib/compression
87 libgencachesrcdir := lib
88 paramsrcdir := param
89 rpc_serversrcdir := rpc_server
90 ldap_serversrcdir := ldap_server
91 web_serversrcdir := web_server
92 winbindsrcdir := winbind
93 nbt_serversrcdir := nbt_server
94 wrepl_serversrcdir := wrepl_server
95 cldap_serversrcdir := cldap_server
96 utilssrcdir := utils
97 clientsrcdir := client
98 torturesrcdir := torture
99 ntvfssrcdir := ntvfs
100 ntptrsrcdir := ntptr
101 librpcsrcdir := librpc
102 libclisrcdir := libcli
103 libclicommonsrcdir := ../libcli
104 libclinbtsrcdir := ../libcli/nbt
105 pyscriptsrcdir := $(srcdir)/scripting/python
106 kdcsrcdir := kdc
107 ntp_signdsrcdir := ntp_signd
108 wmisrcdir := lib/wmi
109 tallocsrcdir := ../lib/talloc
110 comsrcdir := $(srcdir)/lib/com
111 libgpodir := libgpo
113 include data.mk
115 $(DESTDIR)$(bindir)/%: scripting/bin/% installdirs
116 @mkdir -p $(@D)
117 @echo Installing $(@F) as $@
118 @if test -f $@; then echo -n ""; rm -f $@.old; mv $@ $@.old; fi
119 @cp $< $@
120 @chmod $(INSTALLPERMS) $@
122 pythonmods:: $(PYTHON_PYS) $(PYTHON_SO)
124 DEP_FILES = $(patsubst %.ho,%.hd,$(patsubst %.o,%.d,$(ALL_OBJS))) \
125 include/includes.d
127 ifeq ($(automatic_dependencies),yes)
128 ifneq ($(MAKECMDGOALS),clean)
129 ifneq ($(MAKECMDGOALS),distclean)
130 ifneq ($(MAKECMDGOALS),realdistclean)
131 ifneq ($(SKIP_DEP_FILES),yes)
132 -include $(DEP_FILES)
133 endif
134 endif
135 endif
136 endif
138 ifneq ($(SKIP_DEP_FILES),yes)
139 clean::
140 @echo Removing dependency files
141 @find . -name '*.d' -o -name '*.hd' | xargs rm -f
142 endif
143 else
144 include $(srcdir)/static_deps.mk
145 endif
147 clean::
148 @find $(base_srcdirs) -name '*.o' -o -name '*.ho' | xargs rm -f
150 PUBLIC_HEADERS += ./version.h
152 libraries:: $(STATIC_LIBS) $(SHARED_LIBS)
153 modules:: $(PLUGINS)
154 headers:: $(PUBLIC_HEADERS)
155 manpages:: $(MANPAGES)
156 all:: showflags $(ALL_PREDEP) binaries modules pythonmods libraries headers
157 everything:: all
159 LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)=$(shliboutputdir):$$$(LIB_PATH_VAR)
161 # 'make testsuite' creates all binaries which are
162 # needed by samba3's 'make test' and the build-farm
163 # scripts use that it as fallback in case
164 # 'make everything' fails
165 testsuite:: bin/smbclient bin/cifsdd bin/smbtorture bin/nmblookup
167 showlayout::
168 @echo 'Samba will be installed into:'
169 @echo ' basedir: $(basedir)'
170 @echo ' bindir: $(bindir)'
171 @echo ' sbindir: $(sbindir)'
172 @echo ' libdir: $(libdir)'
173 @echo ' modulesdir: $(modulesdir)'
174 @echo ' includedir: $(includedir)'
175 @echo ' vardir: $(localstatedir)'
176 @echo ' privatedir: $(privatedir)'
177 @echo ' piddir: $(piddir)'
178 @echo ' lockdir: $(lockdir)'
179 @echo ' logfilebase: $(logfilebase)'
180 @echo ' setupdir: $(setupdir)'
181 @echo ' swatdir: $(swatdir)'
182 @echo ' mandir: $(mandir)'
183 @echo ' datadir: $(datadir)'
184 @echo ' winbindd_socket_dir: $(winbindd_socket_dir)'
185 @echo ' ntp_signd_socket_dir: $(ntp_signd_socket_dir)'
187 showflags::
188 @echo ' srcdir = $(srcdir)'
189 @echo ' builddir = $(builddir)'
191 # The permissions to give the executables
192 INSTALLPERMS = 0755
194 install:: showlayout everything installbin installsbin installdat installmisc \
195 installlib installheader installpc installplugins
197 # DESTDIR is used here to prevent packagers wasting their time
198 # duplicating the Makefile. Remove it and you will have the privilege
199 # of packaging each samba release for multiple versions of multiple
200 # distributions and operating systems, or at least supplying patches
201 # to all the packaging files required for this, prior to committing
202 # the removal of DESTDIR. Do not remove it even though you think it
203 # is not used.
205 installdirs::
206 @$(SHELL) $(srcdir)/script/installdirs.sh \
207 $(DESTDIR)$(basedir) \
208 $(DESTDIR)$(bindir) \
209 $(DESTDIR)$(sbindir) \
210 $(DESTDIR)$(libdir) \
211 $(DESTDIR)$(modulesdir) \
212 $(DESTDIR)$(modulesdir)/ldb \
213 $(DESTDIR)$(mandir) \
214 $(DESTDIR)$(localstatedir) \
215 $(DESTDIR)$(localstatedir)/lib \
216 $(DESTDIR)$(localstatedir)/run \
217 $(DESTDIR)$(privatedir) \
218 $(DESTDIR)$(datadir) \
219 $(DESTDIR)$(piddir) \
220 $(DESTDIR)$(lockdir) \
221 $(DESTDIR)$(logfilebase) \
222 $(DESTDIR)$(privatedir)/tls \
223 $(DESTDIR)$(includedir) \
224 $(DESTDIR)$(pkgconfigdir) \
225 $(DESTDIR)$(sysconfdir)
227 installbin:: installdirs
229 installplugins::
231 installlib:: $(SHARED_LIBS) $(STATIC_LIBS) installdirs
232 @$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(libdir) "$(SHLIBEXT)" $(SHARED_LIBS)
233 #@$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(libdir) "$(STLIBEXT)" $(STATIC_LIBS)
235 installheader:: headers installdirs
236 @srcdir=$(srcdir) builddir=$(builddir) $(PERL) $(srcdir)/script/installheader.pl $(DESTDIR)$(includedir) $(PUBLIC_HEADERS)
238 installdat:: installdirs
239 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(datadir) $(srcdir)
241 installman:: manpages installdirs
242 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(mandir) $(MANPAGES)
244 installmisc:: installdirs
245 @$(SHELL) $(srcdir)/script/installmisc.sh "$(DESTDIR)" $(srcdir) $(DESTDIR)$(setupdir) $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(pythondir) $(PYTHON)
247 installpc:: installdirs
248 @$(SHELL) $(srcdir)/script/installpc.sh $(builddir) $(DESTDIR)$(pkgconfigdir) $(PC_FILES)
250 uninstall:: uninstallbin uninstallsbin uninstalldat uninstallmisc uninstalllib uninstallheader \
251 uninstallman uninstallpc uninstallplugins
253 uninstallmisc::
254 @echo "Removing MISC files"
255 @rm -rf $(DESTDIR)$(setupdir)/*
257 $(DESTDIR)$(bindir)/%: 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 $(DESTDIR)$(sbindir)/%: bin/% installdirs
265 @mkdir -p $(@D)
266 @echo Installing $(@F) as $@
267 @if test -f $@; then echo -n ""; rm -f $@.old; mv $@ $@.old; fi
268 @cp $< $@
269 @chmod $(INSTALLPERMS) $@
271 uninstalldat::
272 @echo "Removing DAT files"
273 @rm -fr $(DESTDIR)$(datadir)/*
275 uninstallbin::
277 uninstalllib::
278 @echo "Removing libraries"
279 @$(SHELL) $(srcdir)/script/uninstalllib.sh $(DESTDIR)$(libdir) $(SHARED_LIBS)
281 uninstallheader::
282 @echo "Removing headers"
283 @rm -fr $(DESTDIR)$(includedir)/*
285 uninstallman::
286 @echo "Removing manpages"
287 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(mandir) $(MANPAGES)
289 uninstallplugins::
291 uninstallpc::
292 @echo "Removing package configurations"
293 @cd $(DESTDIR)$(pkgconfigdir); rm -f $(notdir $(PC_FILES))
295 config.status:
296 @echo "config.status does not exist. Please run ./configure."
297 @/bin/false
299 data.mk: config.status $(MK_FILES)
300 ./config.status
302 testcov-html::
304 include $(pidldir)/config.mk
305 selftestdir := $(srcdir)/../selftest
306 include $(srcdir)/selftest/config.mk
308 showflags::
309 @echo ' pwd = '`/bin/pwd`
311 Makefile: Makefile.in
312 @echo "Makefile.in is newer than Makefile, please rerun ./config.status"
313 @false