2007-04-17 09:02:31 +00:00
default : all
2005-10-21 22:49:23 +00:00
2006-03-17 01:39:02 +00:00
i n c l u d e d y n c o n f i g . m k
2005-08-03 04:15:16 +00:00
i n c l u d e h e i m d a l _ b u i l d / c o n f i g . m k
i n c l u d e c o n f i g . m k
i n c l u d e d s d b / c o n f i g . m k
i n c l u d e s m b d / c o n f i g . m k
2007-01-10 10:52:09 +00:00
i n c l u d e c l u s t e r / c o n f i g . m k
2005-08-03 04:15:16 +00:00
i n c l u d e s m b d / p r o c e s s _ m o d e l . m k
i n c l u d e l i b n e t / c o n f i g . m k
i n c l u d e a u t h / c o n f i g . m k
i n c l u d e n s s w i t c h / c o n f i g . m k
i n c l u d e l i b / b a s i c . m k
i n c l u d e p a r a m / c o n f i g . m k
i n c l u d e s m b _ s e r v e r / c o n f i g . m k
i n c l u d e r p c _ s e r v e r / c o n f i g . m k
i n c l u d e l d a p _ s e r v e r / c o n f i g . m k
i n c l u d e w e b _ s e r v e r / c o n f i g . m k
i n c l u d e w i n b i n d / c o n f i g . m k
i n c l u d e n b t _ s e r v e r / c o n f i g . m k
2005-10-14 12:37:13 +00:00
i n c l u d e w r e p l _ s e r v e r / c o n f i g . m k
2005-08-03 04:15:16 +00:00
i n c l u d e c l d a p _ s e r v e r / c o n f i g . m k
i n c l u d e u t i l s / n e t / c o n f i g . m k
i n c l u d e u t i l s / c o n f i g . m k
i n c l u d e n t v f s / c o n f i g . m k
i n c l u d e n t p t r / c o n f i g . m k
i n c l u d e t o r t u r e / c o n f i g . m k
i n c l u d e l i b r p c / c o n f i g . m k
i n c l u d e c l i e n t / c o n f i g . m k
i n c l u d e l i b c l i / c o n f i g . m k
2006-04-04 14:39:00 +00:00
i n c l u d e s c r i p t i n g / e j s / c o n f i g . m k
i n c l u d e s c r i p t i n g / s w i g / c o n f i g . m k
2005-08-03 04:15:16 +00:00
i n c l u d e k d c / c o n f i g . m k
2007-08-30 22:25:59 +00:00
DEFAULT_HEADERS = $( srcdir) /lib/util/dlinklist.h \
2006-11-07 10:42:26 +00:00
$( srcdir) /version.h
2006-01-03 13:41:17 +00:00
2005-12-15 15:59:10 +00:00
binaries : $( BINARIES )
2005-10-26 14:18:27 +00:00
libraries : $( STATIC_LIBS ) $( SHARED_LIBS )
2006-01-02 00:16:08 +00:00
modules : $( SHARED_MODULES )
2006-01-03 13:41:17 +00:00
headers : $( PUBLIC_HEADERS ) $( DEFAULT_HEADERS )
2005-08-03 04:15:16 +00:00
manpages : $( MANPAGES )
2007-04-17 09:02:31 +00:00
all : showflags $( ALL_PREDEP ) bin /asn 1_compile bin /compile_et binaries modules
2007-04-17 14:05:00 +00:00
everything : all libraries headers
2005-08-03 04:15:16 +00:00
2007-09-27 22:47:25 +00:00
# 'make testsuite' creates all binaries which are
# needed by samba3's 'make test' and the build-farm
# scripts use that it as fallback in case
# 'make everything' fails
2007-10-08 17:43:27 +00:00
testsuite : bin /smbclient bin /cifsdd bin /smbtorture bin /nmblookup
2007-09-27 22:47:25 +00:00
2005-08-03 04:15:16 +00:00
showlayout :
2006-01-17 01:18:27 +00:00
@echo 'Samba will be installed into:'
2006-01-31 00:48:57 +00:00
@echo ' basedir: $(BASEDIR)'
@echo ' bindir: $(BINDIR)'
@echo ' sbindir: $(SBINDIR)'
@echo ' libdir: $(LIBDIR)'
2006-01-17 01:18:27 +00:00
@echo ' modulesdir: $(MODULESDIR)'
@echo ' includedir: $(INCLUDEDIR)'
2006-01-31 00:48:57 +00:00
@echo ' vardir: $(VARDIR)'
2006-01-17 01:18:27 +00:00
@echo ' privatedir: $(PRIVATEDIR)'
2006-01-31 00:48:57 +00:00
@echo ' piddir: $(PIDDIR)'
@echo ' lockdir: $(LOCKDIR)'
@echo ' logfilebase: $(LOGFILEBASE)'
@echo ' setupdir: $(SETUPDIR)'
@echo ' jsdir: $(JSDIR)'
2007-09-10 03:44:47 +00:00
@echo ' swatdir: $(SWATDIR)'
2006-01-31 00:48:57 +00:00
@echo ' mandir: $(MANDIR)'
2006-10-16 20:05:19 +00:00
@echo ' torturedir: $(TORTUREDIR)'
2006-03-13 02:05:39 +00:00
@echo ' datadir: $(DATADIR)'
2006-01-31 01:49:56 +00:00
@echo ' winbindd_socket_dir: $(WINBINDD_SOCKET_DIR)'
2005-08-03 04:15:16 +00:00
showflags :
2006-01-17 01:18:27 +00:00
@echo 'Samba will be compiled with flags:'
2006-09-08 13:11:03 +00:00
@echo ' CPP = $(CPP)'
@echo ' CPPFLAGS = $(CPPFLAGS)'
@echo ' CC = $(CC)'
@echo ' CFLAGS = $(CFLAGS)'
@echo ' PICFLAG = $(PICFLAG)'
@echo ' LD = $(LD)'
@echo ' LDFLAGS = $(LDFLAGS)'
@echo ' STLD = $(STLD)'
2006-01-17 01:18:27 +00:00
@echo ' STLD_FLAGS = $(STLD_FLAGS)'
2006-09-08 13:11:03 +00:00
@echo ' SHLD = $(SHLD)'
2006-01-17 01:18:27 +00:00
@echo ' SHLD_FLAGS = $(SHLD_FLAGS)'
2006-09-08 13:11:03 +00:00
@echo ' SHLIBEXT = $(SHLIBEXT)'
2007-01-11 04:32:43 +00:00
@echo ' srcdir = $(srcdir)'
@echo ' builddir = $(builddir)'
@echo ' pwd = ' ` /bin/pwd`
2005-08-03 04:15:16 +00:00
2005-10-26 19:07:01 +00:00
# The permissions to give the executables
INSTALLPERMS = 0755
2007-09-10 03:44:47 +00:00
install : showlayout everything installbin installdat installswat installmisc installlib \
2006-03-18 20:45:09 +00:00
installheader installpc installplugins
2005-08-03 04:15:16 +00:00
2005-08-03 05:28:08 +00:00
# DESTDIR is used here to prevent packagers wasting their time
# duplicating the Makefile. Remove it and you will have the privilege
# of packaging each samba release for multiple versions of multiple
# distributions and operating systems, or at least supplying patches
# to all the packaging files required for this, prior to committing
# the removal of DESTDIR. Do not remove it even though you think it
# is not used.
installdirs :
2005-12-17 10:10:09 +00:00
@$( SHELL) $( srcdir) /script/installdirs.sh \
$( DESTDIR) $( BASEDIR) \
$( DESTDIR) $( BINDIR) \
$( DESTDIR) $( SBINDIR) \
2006-10-16 20:05:19 +00:00
$( DESTDIR) $( TORTUREDIR) \
2005-12-17 10:10:09 +00:00
$( DESTDIR) $( LIBDIR) \
2006-03-13 02:05:39 +00:00
$( DESTDIR) $( MODULESDIR) \
2006-03-17 18:37:51 +00:00
$( DESTDIR) $( MANDIR) \
2005-12-17 10:10:09 +00:00
$( DESTDIR) $( VARDIR) \
$( DESTDIR) $( PRIVATEDIR) \
2006-03-13 02:05:39 +00:00
$( DESTDIR) $( DATADIR) \
2005-12-17 10:10:09 +00:00
$( DESTDIR) $( PIDDIR) \
$( DESTDIR) $( LOCKDIR) \
$( DESTDIR) $( LOGFILEBASE) \
$( DESTDIR) $( PRIVATEDIR) /tls \
$( DESTDIR) $( INCLUDEDIR) \
2006-01-26 10:18:26 +00:00
$( DESTDIR) $( PKGCONFIGDIR) \
$( DESTDIR) $( CONFIGDIR) \
2005-08-03 05:28:08 +00:00
2006-10-17 00:56:29 +00:00
installbin : $( SBIN_PROGS ) $( BIN_PROGS ) $( TORTURE_PROGS ) installdirs
2005-12-17 10:10:09 +00:00
@$( SHELL) $( srcdir) /script/installbin.sh \
$( INSTALLPERMS) \
$( DESTDIR) $( BASEDIR) \
$( DESTDIR) $( SBINDIR) \
$( DESTDIR) $( LIBDIR) \
$( DESTDIR) $( VARDIR) \
$( SBIN_PROGS)
@$( SHELL) $( srcdir) /script/installbin.sh \
$( INSTALLPERMS) \
$( DESTDIR) $( BASEDIR) \
$( DESTDIR) $( BINDIR) \
$( DESTDIR) $( LIBDIR) \
$( DESTDIR) $( VARDIR) \
$( BIN_PROGS)
2006-10-16 23:09:15 +00:00
@$( SHELL) $( srcdir) /script/installtorture.sh \
2006-10-16 20:05:19 +00:00
$( INSTALLPERMS) \
$( DESTDIR) $( TORTUREDIR) \
$( TORTURE_PROGS)
2005-08-03 05:28:08 +00:00
2006-03-16 21:36:36 +00:00
installlib : $( INSTALLABLE_SHARED_LIBS ) $( STATIC_LIBS ) installdirs
2006-03-22 20:42:33 +00:00
@$( SHELL) $( srcdir) /script/installlib.sh $( DESTDIR) $( LIBDIR) " $( SHLIBEXT) " $( INSTALLABLE_SHARED_LIBS)
2007-03-13 21:47:57 +00:00
#@$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(LIBDIR) "$(STLIBEXT)" $(STATIC_LIBS)
2005-10-26 14:18:27 +00:00
installheader : headers installdirs
2007-01-11 04:32:43 +00:00
@srcdir= $( srcdir) builddir = $( builddir) $( PERL) $( srcdir) /script/installheader.pl $( DESTDIR) $( INCLUDEDIR) $( PUBLIC_HEADERS) $( DEFAULT_HEADERS)
2005-10-26 14:18:27 +00:00
2005-08-03 05:28:08 +00:00
installdat : installdirs
2006-03-13 02:05:39 +00:00
@$( SHELL) $( srcdir) /script/installdat.sh $( DESTDIR) $( DATADIR) $( srcdir)
2005-08-03 05:28:08 +00:00
2007-09-10 03:44:47 +00:00
installswat : installdirs
@$( SHELL) $( srcdir) /script/installswat.sh $( DESTDIR) $( SWATDIR) $( srcdir)
2005-08-03 05:28:08 +00:00
2006-03-17 18:37:51 +00:00
installman : manpages installdirs
2005-08-03 05:28:08 +00:00
@$( SHELL) $( srcdir) /script/installman.sh $( DESTDIR) $( MANDIR) $( MANPAGES)
2005-08-04 02:27:30 +00:00
installmisc : installdirs
2006-01-26 05:57:53 +00:00
@$( SHELL) $( srcdir) /script/installmisc.sh $( srcdir) $( DESTDIR) $( JSDIR) $( DESTDIR) $( SETUPDIR) $( DESTDIR) $( BINDIR)
2005-08-04 02:27:30 +00:00
2005-12-15 16:32:08 +00:00
installpc : installdirs
2006-04-11 11:37:52 +00:00
@$( SHELL) $( srcdir) /script/installpc.sh $( builddir) $( DESTDIR) $( PKGCONFIGDIR) $( PC_FILES)
2005-12-15 16:32:08 +00:00
2006-03-09 19:55:04 +00:00
uninstall : uninstallbin uninstallman uninstallmisc uninstalllib uninstallheader \
2006-03-18 20:45:09 +00:00
uninstallplugins
2005-08-04 02:27:30 +00:00
uninstallmisc :
#FIXME
2005-08-03 05:28:08 +00:00
uninstallbin :
@$( SHELL) $( srcdir) /script/uninstallbin.sh $( INSTALLPERMS) $( DESTDIR) $( BASEDIR) $( DESTDIR) $( SBINDIR) $( DESTDIR) $( LIBDIR) $( DESTDIR) $( VARDIR) $( DESTDIR) $( SBIN_PROGS)
@$( SHELL) $( srcdir) /script/uninstallbin.sh $( INSTALLPERMS) $( DESTDIR) $( BASEDIR) $( DESTDIR) $( BINDIR) $( DESTDIR) $( LIBDIR) $( DESTDIR) $( VARDIR) $( DESTDIR) $( BIN_PROGS)
2006-10-16 23:09:15 +00:00
@$( SHELL) $( srcdir) /script/uninstalltorture.sh $( DESTDIR) $( TORTUREDIR) $( TORTURE_PROGS)
2005-08-03 05:28:08 +00:00
2005-10-26 14:18:27 +00:00
uninstalllib :
@$( SHELL) $( srcdir) /script/uninstalllib.sh $( DESTDIR) $( LIBDIR) $( SHARED_LIBS)
2007-03-13 21:47:57 +00:00
#@$(SHELL) $(srcdir)/script/uninstalllib.sh $(DESTDIR)$(LIBDIR) $(STATIC_LIBS)
2005-10-26 14:18:27 +00:00
uninstallheader :
@$( SHELL) $( srcdir) /script/uninstallheader.sh $( DESTDIR) $( INCLUDEDIR) $( PUBLIC_HEADERS)
2005-08-03 05:28:08 +00:00
uninstallman :
@$( SHELL) $( srcdir) /script/uninstallman.sh $( DESTDIR) $( MANDIR) $( MANPAGES)
2005-10-26 19:07:01 +00:00
Makefile : config .status $( MK_FILES )
./config.status
2005-08-03 05:28:08 +00:00
etags :
etags ` find $( srcdir) -name "*.[ch]" `
ctags :
ctags ` find $( srcdir) -name "*.[ch]" `
2005-10-28 22:40:31 +00:00
pidl/Makefile : pidl /Makefile .PL
2006-03-18 20:45:09 +00:00
cd pidl && $( PERL) Makefile.PL
2005-10-28 22:40:31 +00:00
2007-02-28 02:06:17 +00:00
testcov-html :: pidl -testcov
pidl-testcov : pidl /Makefile
cd pidl && cover -test
2005-10-28 22:40:31 +00:00
installpidl : pidl /Makefile
2006-03-17 21:16:44 +00:00
$( MAKE) -C pidl install
uninstallpidl : pidl /Makefile
$( MAKE) -C pidl uninstall
2005-10-28 22:40:31 +00:00
2006-04-27 09:34:31 +00:00
$( IDL_HEADER_FILES ) \
$( IDL_NDR_PARSE_H_FILES) $( IDL_NDR_PARSE_C_FILES) \
2006-03-20 20:04:04 +00:00
$( IDL_NDR_CLIENT_C_FILES) $( IDL_NDR_CLIENT_H_FILES) \
2006-05-13 21:31:04 +00:00
$( IDL_NDR_SERVER_C_FILES) $( IDL_SWIG_FILES) \
2006-04-27 09:34:31 +00:00
$( IDL_NDR_EJS_C_FILES) $( IDL_NDR_EJS_H_FILES) : idl
2006-01-08 17:13:13 +00:00
2007-01-05 20:13:48 +00:00
idl_full : pidl /lib /Parse /Pidl /IDL .pm pidl /lib /Parse /Pidl /Expr .pm
2007-01-22 00:04:59 +00:00
@CPP= " $( CPP) " PERL = " $( PERL) " srcdir = $( srcdir) $( srcdir) /script/build_idl.sh FULL
2005-08-03 05:28:08 +00:00
2007-01-05 20:13:48 +00:00
idl : pidl /lib /Parse /Pidl /IDL .pm pidl /lib /Parse /Pidl /Expr .pm
2007-01-22 00:04:59 +00:00
@CPP= " $( CPP) " PERL = " $( PERL) " srcdir = $( srcdir) $( srcdir) /script/build_idl.sh PARTIAL
2005-08-03 05:28:08 +00:00
2005-08-22 00:06:35 +00:00
pidl/lib/Parse/Pidl/IDL.pm : pidl /idl .yp
2007-01-05 20:13:48 +00:00
-$( YAPP) -m 'Parse::Pidl::IDL' -o pidl/lib/Parse/Pidl/IDL.pm pidl/idl.yp || \
touch pidl/lib/Parse/Pidl/IDL.pm
pidl/lib/Parse/Pidl/Expr.pm : pidl /idl .yp
-$( YAPP) -m 'Parse::Pidl::Expr' -o pidl/lib/Parse/Pidl/Expr.pm pidl/expr.yp || \
touch pidl/lib/Parse/Pidl/Expr.pm
2005-08-03 05:28:08 +00:00
2005-08-04 04:45:42 +00:00
include/config.h :
@echo "include/config.h not present"
@echo "You need to rerun ./autogen.sh and ./configure"
@/bin/false
2006-06-27 11:07:55 +00:00
$(srcdir)/version.h : $( srcdir ) /VERSION
@$( SHELL) script/mkversion.sh VERSION $( srcdir) /version.h $( srcdir) /
regen_version :
@$( SHELL) script/mkversion.sh VERSION $( srcdir) /version.h $( srcdir) /
2006-06-27 06:24:43 +00:00
2006-04-24 09:36:09 +00:00
clean_pch :
@echo "Removing precompiled headers"
@-rm -f include/includes.h.gch
2005-12-27 20:29:19 +00:00
2006-01-02 16:54:58 +00:00
pch : clean_pch include /includes .h .gch
2006-03-18 23:51:55 +00:00
clean :: clean_pch
2005-10-26 19:07:01 +00:00
@echo Removing objects
@-find . -name '*.o' -exec rm -f '{}' \;
2005-12-18 22:28:41 +00:00
@echo Removing hostcc objects
@-find . -name '*.ho' -exec rm -f '{}' \;
2005-10-26 19:07:01 +00:00
@echo Removing binaries
2006-10-16 20:05:19 +00:00
@-rm -f $( BIN_PROGS) $( SBIN_PROGS) $( BINARIES) $( TORTURE_PROGS)
2005-10-28 18:26:26 +00:00
@echo Removing libraries
2006-03-09 14:39:36 +00:00
@-rm -f $( STATIC_LIBRARIES) $( SHARED_LIBRARIES)
2006-11-06 17:28:27 +00:00
@-rm -f bin/static/*.a bin/shared/*.$( SHLIBEXT)
2006-03-09 14:39:36 +00:00
@echo Removing modules
2006-03-21 08:32:50 +00:00
@-rm -f bin/modules/*/*.$( SHLIBEXT)
2006-03-09 14:39:36 +00:00
@-rm -f bin/*_init_module.c
2005-10-26 19:07:01 +00:00
@echo Removing dummy targets
@-rm -f bin/.*_*
@echo Removing generated files
2006-03-09 14:39:36 +00:00
@-rm -f bin/*_init_module.c
2005-10-26 19:07:01 +00:00
@-rm -rf librpc/gen_*
2005-12-27 21:11:09 +00:00
@echo Removing proto headers
@-rm -f $( PROTO_HEADERS)
2005-10-26 19:07:01 +00:00
2006-03-25 21:42:29 +00:00
distclean : clean
2006-04-06 12:30:06 +00:00
-rm -f include/config.h include/config_tmp.h include/build.h
2005-10-26 19:07:01 +00:00
-rm -f Makefile
-rm -f config.status
-rm -f config.log config.cache
-rm -f config.pm config.mk
2006-03-09 14:39:36 +00:00
-rm -f $( PC_FILES)
2005-10-26 19:07:01 +00:00
removebackup :
-rm -f *.bak *~ */*.bak */*~ */*/*.bak */*/*~ */*/*/*.bak */*/*/*~
realdistclean : distclean removebackup
2006-04-06 12:30:06 +00:00
-rm -f include/config_tmp.h.in
2006-05-16 16:51:34 +00:00
-rm -f version.h
2005-10-26 19:07:01 +00:00
-rm -f configure
-rm -f $( MANPAGES)
2007-01-28 01:05:47 +00:00
check :: test
2005-08-03 05:28:08 +00:00
2007-04-29 20:37:59 +00:00
SELFTEST = $( PERL) $( srcdir) /selftest/selftest.pl --prefix= ${ selftest_prefix } \
2007-04-02 17:06:14 +00:00
--builddir= $( builddir) --srcdir= $( srcdir) \
--expected-failures= $( srcdir) /samba4-knownfail \
--skip= $( srcdir) /samba4-skip \
$( TEST_OPTIONS)
2007-03-05 21:28:55 +00:00
2007-08-12 04:00:15 +00:00
htmltest : everything
$( SELFTEST) $( DEFAULT_TEST_OPTIONS) --format= html $( TESTS)
2007-04-17 14:56:46 +00:00
test : everything
$( SELFTEST) $( DEFAULT_TEST_OPTIONS) --immediate $( TESTS)
2007-03-05 21:28:55 +00:00
2007-04-17 14:56:46 +00:00
testone : everything
$( SELFTEST) $( DEFAULT_TEST_OPTIONS) --one $( TESTS)
2007-01-11 04:32:43 +00:00
2007-04-17 14:56:46 +00:00
test-swrap : everything
$( SELFTEST) --socket-wrapper --immediate $( TESTS)
2005-08-03 05:28:08 +00:00
2007-10-12 08:10:12 +02:00
test-swrap-pcap : everything
$( SELFTEST) --socket-wrapper-pcap --immediate $( TESTS)
test-swrap-keep-pcap : everything
$( SELFTEST) --socket-wrapper-keep-pcap --immediate $( TESTS)
2007-04-17 14:56:46 +00:00
test-noswrap : everything
2007-03-05 21:28:55 +00:00
$( SELFTEST) --immediate $( TESTS)
2005-08-03 05:28:08 +00:00
quicktest : all
2007-03-05 21:28:55 +00:00
$( SELFTEST) --quick --socket-wrapper --immediate $( TESTS)
2005-08-03 05:28:08 +00:00
2007-08-26 16:56:41 +00:00
htmlquicktest : all
$( SELFTEST) --quick --socket-wrapper --format= html --immediate $( TESTS)
2007-04-17 14:56:46 +00:00
quicktestone : all
$( SELFTEST) --quick --socket-wrapper --one $( TESTS)
testenv : everything
2007-03-07 02:11:40 +00:00
$( SELFTEST) --socket-wrapper --testenv
2006-09-21 06:42:52 +00:00
2007-09-03 13:13:25 +00:00
valgrindtest : valgrindtest -all
2006-03-18 07:59:50 +00:00
valgrindtest-quick : all
2005-08-03 05:28:08 +00:00
SMBD_VALGRIND = "xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2006-04-04 16:23:05 +00:00
VALGRIND = " valgrind -q --num-callers=30 --log-file= ${ selftest_prefix } /valgrind.log " \
2007-04-27 14:23:08 +00:00
$( SELFTEST) --quick --immediate --socket-wrapper $( TESTS)
2005-08-03 05:28:08 +00:00
2007-04-17 14:56:46 +00:00
valgrindtest-all : everything
2006-03-18 07:59:50 +00:00
SMBD_VALGRIND = "xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
2006-04-04 16:23:05 +00:00
VALGRIND = " valgrind -q --num-callers=30 --log-file= ${ selftest_prefix } /valgrind.log " \
2007-04-27 14:23:08 +00:00
$( SELFTEST) --immediate --socket-wrapper $( TESTS)
2006-03-18 07:59:50 +00:00
2007-04-17 14:56:46 +00:00
valgrindtest-env : everything
2006-11-03 00:34:52 +00:00
SMBD_VALGRIND = "xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
VALGRIND = " valgrind -q --num-callers=30 --log-file= ${ selftest_prefix } /valgrind.log " \
2007-03-07 02:11:40 +00:00
$( SELFTEST) --socket-wrapper --testenv
2006-11-03 00:34:52 +00:00
2007-09-03 13:13:25 +00:00
gdbtest : gdbtest -all
2006-03-18 07:59:50 +00:00
gdbtest-quick : all
2007-04-17 15:55:08 +00:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/gdb_run " \
2007-04-27 14:23:08 +00:00
$( SELFTEST) --immediate --quick --socket-wrapper $( TESTS)
2005-12-28 22:49:02 +00:00
2007-04-17 14:56:46 +00:00
gdbtest-all : everything
2007-04-17 15:55:08 +00:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/gdb_run " \
2007-04-27 14:23:08 +00:00
$( SELFTEST) --immediate --socket-wrapper $( TESTS)
2006-03-18 07:59:50 +00:00
2007-04-17 14:56:46 +00:00
gdbtest-env : everything
2007-04-17 15:55:08 +00:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/gdb_run " \
2007-04-17 14:56:46 +00:00
$( SELFTEST) --socket-wrapper --testenv
2006-08-24 04:14:34 +00:00
wintest : all
2007-01-11 04:32:43 +00:00
$( SELFTEST) win
2006-08-24 04:14:34 +00:00
2006-01-09 21:44:30 +00:00
unused_macros :
2006-04-11 11:37:52 +00:00
$( srcdir) /script/find_unused_macros.pl ` find . -name "*.[ch]" ` | sort
2005-10-26 19:07:01 +00:00
###############################################################################
# File types
###############################################################################
2006-11-06 14:03:51 +00:00
.SUFFIXES : .x .c .et .y .l .d .o .h .h .gch .a .$( SHLIBEXT ) .1 .1.xml .3 .3.xml .5 .5.xml .7 .7.xml .8 .8.xml .ho .idl .hd
2006-03-13 15:19:14 +00:00
2005-10-26 19:07:01 +00:00
.c.d :
@echo " Generating dependencies for $< "
2007-01-11 04:32:43 +00:00
@$( DEPENDS)
2006-03-19 02:23:52 +00:00
2006-03-19 03:14:56 +00:00
.c.hd :
2006-04-25 16:31:12 +00:00
@echo " Generating host-compiler dependencies for $< "
2007-01-11 04:32:43 +00:00
@$( HDEPENDS)
2006-03-19 03:14:56 +00:00
2006-03-19 02:23:52 +00:00
include/includes.d : include /includes .h
@echo " Generating dependencies for $< "
2007-01-11 04:32:43 +00:00
@$( PCHDEPENDS)
2005-10-26 19:07:01 +00:00
2006-03-13 15:19:14 +00:00
.c.o :
2006-03-14 12:53:56 +00:00
@if test -n " $( CC_CHECKER) " ; then \
2007-01-11 04:32:43 +00:00
echo " Checking $< with ' $( CC_CHECKER) ' " ; \
$( CHECK) ; \
2006-03-14 12:53:56 +00:00
fi
2007-01-11 04:32:43 +00:00
@echo " Compiling $< "
@-mkdir -p ` dirname $@ `
@$( COMPILE) && exit 0 ; \
2007-01-12 14:05:07 +00:00
echo "The following command failed:" 1>& 2; \
echo " $( COMPILE) " 1>& 2; \
$( COMPILE) >/dev/null 2>& 1
2006-03-13 15:19:14 +00:00
2006-09-08 13:55:13 +00:00
.c.ho :
2007-01-11 04:32:43 +00:00
@echo " Compiling $< with host compiler "
@-mkdir -p ` dirname $@ `
@$( HCOMPILE) && exit 0; \
2007-01-12 14:05:07 +00:00
echo "The following command failed:" 1>& 2; \
echo " $( HCOMPILE) " 1>& 2; \
$( HCOMPILE) >/dev/null 2>& 1
2006-09-08 13:55:13 +00:00
2006-03-13 15:19:14 +00:00
.h.h.gch :
2006-03-14 17:12:12 +00:00
@echo " Precompiling $< "
2007-01-11 04:32:43 +00:00
@$( PCHCOMPILE)
2006-03-13 15:19:14 +00:00
2005-08-03 05:28:08 +00:00
.y.c :
2005-08-04 05:23:07 +00:00
@echo " Building $< with $( YACC) "
@-$( srcdir) /script/yacc_compile.sh " $( YACC) " " $< " " $@ "
2005-08-03 05:28:08 +00:00
.l.c :
2005-08-04 05:23:07 +00:00
@echo " Building $< with $( LEX) "
@-$( srcdir) /script/lex_compile.sh " $( LEX) " " $< " " $@ "
2005-10-26 19:07:01 +00:00
DOCBOOK_MANPAGE_URL = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
.1.xml.1 :
$( XSLTPROC) -o $@ $( DOCBOOK_MANPAGE_URL) $<
.3.xml.3 :
$( XSLTPROC) -o $@ $( DOCBOOK_MANPAGE_URL) $<
.5.xml.5 :
$( XSLTPROC) -o $@ $( DOCBOOK_MANPAGE_URL) $<
.7.xml.7 :
$( XSLTPROC) -o $@ $( DOCBOOK_MANPAGE_URL) $<
2006-01-22 23:34:28 +00:00
.8.xml.8 :
$( XSLTPROC) -o $@ $( DOCBOOK_MANPAGE_URL) $<
2006-03-19 02:23:52 +00:00
2006-03-19 03:14:56 +00:00
DEP_FILES = $( patsubst %.ho,%.hd,$( patsubst %.o,%.d,$( ALL_OBJS) ) ) \
2006-03-19 02:23:52 +00:00
include/includes.d
2007-05-31 23:01:08 +00:00
dist :: idl_full manpages configure distclean
2006-04-08 16:49:03 +00:00
configure :
./autogen.sh