2 # The Samba 4 Makefile.
3 # This file is *NOT* autogenerated.
7 VPATH
= $(builddir
):$(srcdir):heimdal_build
:heimdal
/lib
/asn1
:heimdal
/lib
/krb5
:heimdal
/lib
/gssapi
:heimdal
/lib
/hdb
:heimdal
/lib
/roken
:heimdal
/lib
/des
10 TORTUREDIR
= $(libdir)/torture
11 SWATDIR
= $(datadir)/swat
13 SETUPDIR
= $(datadir)/setup
14 NCALRPCDIR
= $(localstatedir
)/ncalrpc
17 BNLD_FLAGS
= $(LDFLAGS
) $(SYS_LDFLAGS
)
19 HOSTCC_FLAGS
= -D_SAMBA_HOSTCC_
$(CFLAGS
)
20 HOSTLD_FLAGS
= $(LDFLAGS
) $(SYS_LDFLAGS
)
24 ifneq ($(automatic_dependencies
),yes
)
32 DEP_FILES
= $(patsubst %.ho
,%.hd
,$(patsubst %.o
,%.d
,$(ALL_OBJS
))) \
35 ifeq ($(automatic_dependencies
),yes
)
36 ifneq ($(MAKECMDGOALS
),clean)
37 ifneq ($(MAKECMDGOALS
),distclean)
38 ifneq ($(MAKECMDGOALS
),realdistclean
)
39 ifneq ($(SKIP_DEP_FILES
),yes
)
46 ifneq ($(SKIP_DEP_FILES
),yes
)
48 @echo Removing dependency files
49 @find .
-name
'*.d' -o
-name
'*.hd' | xargs
rm -f
52 include $(srcdir)/static_deps.mk
55 DEFAULT_HEADERS
= $(srcdir)/lib
/util
/dlinklist.h \
59 libraries
:: $(STATIC_LIBS
) $(SHARED_LIBS
)
61 headers
:: $(PUBLIC_HEADERS
) $(DEFAULT_HEADERS
)
62 manpages
:: $(MANPAGES
)
63 all:: showflags
$(ALL_PREDEP
) bin
/asn1_compile bin
/compile_et binaries modules pythonmods
64 everything
:: all libraries headers
66 LD_LIBPATH_OVERRIDE
= $(LIB_PATH_VAR
)=$(builddir
)/bin
/shared
68 # 'make testsuite' creates all binaries which are
69 # needed by samba3's 'make test' and the build-farm
70 # scripts use that it as fallback in case
71 # 'make everything' fails
72 testsuite
:: bin
/smbclient bin
/cifsdd bin
/smbtorture bin
/nmblookup
75 @echo
'Samba will be installed into:'
76 @echo
' basedir: $(BASEDIR)'
77 @echo
' bindir: $(bindir)'
78 @echo
' sbindir: $(sbindir)'
79 @echo
' libdir: $(libdir)'
80 @echo
' modulesdir: $(modulesdir)'
81 @echo
' includedir: $(includedir)'
82 @echo
' vardir: $(localstatedir)'
83 @echo
' privatedir: $(privatedir)'
84 @echo
' piddir: $(piddir)'
85 @echo
' lockdir: $(lockdir)'
86 @echo
' logfilebase: $(logfilebase)'
87 @echo
' setupdir: $(SETUPDIR)'
88 @echo
' jsdir: $(JSDIR)'
89 @echo
' swatdir: $(SWATDIR)'
90 @echo
' mandir: $(mandir)'
91 @echo
' torturedir: $(TORTUREDIR)'
92 @echo
' datadir: $(datadir)'
93 @echo
' winbindd_socket_dir: $(winbindd_socket_dir)'
96 @echo
' srcdir = $(srcdir)'
97 @echo
' builddir = $(builddir)'
99 # The permissions to give the executables
102 install:: showlayout everything installbin installdat installswat installmisc \
103 installlib installheader installpc installplugins
105 # DESTDIR is used here to prevent packagers wasting their time
106 # duplicating the Makefile. Remove it and you will have the privilege
107 # of packaging each samba release for multiple versions of multiple
108 # distributions and operating systems, or at least supplying patches
109 # to all the packaging files required for this, prior to committing
110 # the removal of DESTDIR. Do not remove it even though you think it
114 @
$(SHELL
) $(srcdir)/script
/installdirs.sh \
115 $(DESTDIR
)$(BASEDIR
) \
116 $(DESTDIR
)$(bindir) \
117 $(DESTDIR
)$(sbindir
) \
118 $(DESTDIR
)$(TORTUREDIR
) \
119 $(DESTDIR
)$(libdir) \
120 $(DESTDIR
)$(modulesdir
) \
121 $(DESTDIR
)$(mandir) \
122 $(DESTDIR
)$(localstatedir
) \
123 $(DESTDIR
)$(privatedir
) \
124 $(DESTDIR
)$(datadir) \
125 $(DESTDIR
)$(piddir
) \
126 $(DESTDIR
)$(lockdir
) \
127 $(DESTDIR
)$(logfilebase
) \
128 $(DESTDIR
)$(privatedir
)/tls \
129 $(DESTDIR
)$(includedir) \
130 $(DESTDIR
)$(PKGCONFIGDIR
) \
131 $(DESTDIR
)$(sysconfdir
) \
133 installbin
:: $(SBIN_PROGS
) $(BIN_PROGS
) $(TORTURE_PROGS
) installdirs
134 @
$(SHELL
) $(srcdir)/script
/installbin.sh \
136 $(DESTDIR
)$(BASEDIR
) \
137 $(DESTDIR
)$(sbindir
) \
138 $(DESTDIR
)$(libdir) \
139 $(DESTDIR
)$(localstatedir
) \
141 @
$(SHELL
) $(srcdir)/script
/installbin.sh \
143 $(DESTDIR
)$(BASEDIR
) \
144 $(DESTDIR
)$(bindir) \
145 $(DESTDIR
)$(libdir) \
146 $(DESTDIR
)$(localstatedir
) \
148 @
$(SHELL
) $(srcdir)/script
/installtorture.sh \
150 $(DESTDIR
)$(TORTUREDIR
) \
155 installlib
:: $(SHARED_LIBS
) $(STATIC_LIBS
) installdirs
156 @
$(SHELL
) $(srcdir)/script
/installlib.sh
$(DESTDIR
)$(libdir) "$(SHLIBEXT)" $(SHARED_LIBS
)
157 #@$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(libdir) "$(STLIBEXT)" $(STATIC_LIBS)
159 installheader
:: headers
installdirs
160 @
srcdir=$(srcdir) builddir
=$(builddir
) $(PERL
) $(srcdir)/script
/installheader.pl
$(DESTDIR
)$(includedir) $(PUBLIC_HEADERS
) $(DEFAULT_HEADERS
)
162 installdat
:: installdirs
163 @
$(SHELL
) $(srcdir)/script
/installdat.sh
$(DESTDIR
)$(datadir) $(srcdir)
165 installswat
:: installdirs
166 #SWAT has been disabled until further notice
167 # @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir)
169 installman
:: manpages
installdirs
170 @
$(SHELL
) $(srcdir)/script
/installman.sh
$(DESTDIR
)$(mandir) $(MANPAGES
)
172 installmisc
:: installdirs
173 @
$(SHELL
) $(srcdir)/script
/installmisc.sh
$(srcdir) $(DESTDIR
)$(JSDIR
) $(DESTDIR
)$(SETUPDIR
) $(DESTDIR
)$(bindir)
175 installpc
:: installdirs
176 @
$(SHELL
) $(srcdir)/script
/installpc.sh
$(builddir
) $(DESTDIR
)$(PKGCONFIGDIR
) $(PC_FILES
)
178 uninstall:: uninstallbin uninstallman uninstallmisc uninstalllib uninstallheader \
185 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(sbindir
) $(DESTDIR
)$(libdir) $(DESTDIR
)$(localstatedir
) $(DESTDIR
)$(SBIN_PROGS
)
186 @
$(SHELL
) $(srcdir)/script
/uninstallbin.sh
$(INSTALLPERMS
) $(DESTDIR
)$(BASEDIR
) $(DESTDIR
)$(bindir) $(DESTDIR
)$(libdir) $(DESTDIR
)$(localstatedir
) $(DESTDIR
)$(BIN_PROGS
)
187 @
$(SHELL
) $(srcdir)/script
/uninstalltorture.sh
$(DESTDIR
)$(TORTUREDIR
) $(TORTURE_PROGS
)
190 @
$(SHELL
) $(srcdir)/script
/uninstalllib.sh
$(DESTDIR
)$(libdir) $(SHARED_LIBS
)
191 #@$(SHELL) $(srcdir)/script/uninstalllib.sh $(DESTDIR)$(libdir) $(STATIC_LIBS)
194 @
$(SHELL
) $(srcdir)/script
/uninstallheader.sh
$(DESTDIR
)$(includedir) $(PUBLIC_HEADERS
)
197 @
$(SHELL
) $(srcdir)/script
/uninstallman.sh
$(DESTDIR
)$(mandir) $(MANPAGES
)
202 @echo
"config.status does not exist. Please run ./configure."
205 data.mk
: config.status
$(MK_FILES
)
210 include pidl
/config.mk
211 include selftest
/config.mk
214 @echo
' pwd = '`/bin/pwd`