1 # simple makefile wrapper to run waf
4 WAF_BINARY=$(PYTHON) ./buildtools/bin/waf
5 WAF=WAF_MAKE=1 $(WAF_BINARY)
17 $(WAF) test $(TEST_OPTIONS)
20 @echo NOTE: to run extended waf options use $(WAF_BINARY) or modify your PATH
24 $(WAF) test --filtered-subunit $(TEST_OPTIONS)
27 $(WAF) test --testenv $(TEST_OPTIONS)
30 $(WAF) test --testenv --gdbtest $(TEST_OPTIONS)
33 $(WAF) test --quick $(TEST_OPTIONS)
36 $(WAF) test --random-order $(TEST_OPTIONS)
40 WAFLOCK=.tmplock $(WAF) dist
44 WAFLOCK=.tmplock $(WAF) distcheck
52 reconfigure: configure
58 # some compatibility make targets
67 # this should do an install as well, once install is finished
82 # Adding force on the depencies will force the target to be always rebuild form the Make
83 # point of view forcing make to invoke waf
86 $(WAF) --targets=smbd/smbd
89 $(WAF) --targets=winbindd/winbindd
92 $(WAF) --targets=nmbd/nmbd
95 $(WAF) --targets=client/smbclient
97 # this allows for things like "make bin/smbtorture"
98 # mainly for the binary that don't have a broken mode like smbd that must
99 # be build with smbd/smbd
101 $(WAF) --targets=$(subst bin/,,$@)
103 # Catch all rule to be able to call make service_repl in order to find the name
104 # of the submodule you want to build, look at the wscript
108 # This rule has to be the last one
110 # Having .NOTPARALLEL will force make to do target once at a time but still -j
111 # will be present in the MAKEFLAGS that are in turn interpreted by WAF
112 # so only 1 waf at a time will be called but it will still be able to do parralel builds if
113 # instructed to do so
115 .PHONY: FORCE everything testsuite check torture