1 # simple makefile wrapper to run waf
3 WAF_BINARY
=$(PYTHON
) .
/buildtools
/bin
/waf
4 WAF
=PYTHONHASHSEED
=1 WAF_MAKE
=1 $(WAF_BINARY
)
16 $(WAF
) test $(TEST_OPTIONS
)
19 $(WAF
) test --perf-test
$(TEST_OPTIONS
)
22 @echo NOTE
: to run extended waf options use
$(WAF_BINARY
) or modify your PATH
26 $(WAF
) test --filtered-subunit
$(TEST_OPTIONS
)
29 $(WAF
) test --testenv
$(TEST_OPTIONS
)
32 $(WAF
) test --testenv
--gdbtest
$(TEST_OPTIONS
)
35 $(WAF
) test --quick
$(TEST_OPTIONS
)
38 $(WAF
) test --random-order
$(TEST_OPTIONS
)
41 $(WAF
) test --list
$(TEST_OPTIONS
)
45 WAFLOCK
=.tmplock
$(WAF
) dist
49 WAFLOCK
=.tmplock
$(WAF
) distcheck
57 reconfigure
: configure
63 # some compatibility make targets
72 # this should do an install as well, once install is finished
87 # Adding force on the depencies will force the target to be always rebuild form the Make
88 # point of view forcing make to invoke waf
91 $(WAF
) --targets
=smbd
/smbd
94 $(WAF
) --targets
=winbindd
/winbindd
97 $(WAF
) --targets
=nmbd
/nmbd
100 $(WAF
) --targets
=client
/smbclient
102 # this allows for things like "make bin/smbtorture"
103 # mainly for the binary that don't have a broken mode like smbd that must
104 # be build with smbd/smbd
106 $(WAF
) --targets
=$(subst bin
/,,$@
)
108 # Catch all rule to be able to call make service_repl in order to find the name
109 # of the submodule you want to build, look at the wscript
113 # This rule has to be the last one
115 # Having .NOTPARALLEL will force make to do target once at a time but still -j
116 # will be present in the MAKEFLAGS that are in turn interpreted by WAF
117 # so only 1 waf at a time will be called but it will still be able to do parralel builds if
118 # instructed to do so
120 .PHONY
: FORCE everything testsuite
check torture