s4:rpc_server: replace dce_conn->allow_request with auth->auth_finished
[samba.git] / Makefile
1 # simple makefile wrapper to run waf
2
3 WAF_BINARY=$(PYTHON) ./buildtools/bin/waf
4 WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
5
6 all:
7         $(WAF) build
8
9 install:
10         $(WAF) install
11
12 uninstall:
13         $(WAF) uninstall
14
15 test:
16         $(WAF) test $(TEST_OPTIONS)
17
18 perftest:
19         $(WAF) test --perf-test $(TEST_OPTIONS)
20
21 help:
22         @echo NOTE: to run extended waf options use $(WAF_BINARY) or modify your PATH
23         $(WAF) --help
24
25 subunit-test:
26         $(WAF) test --filtered-subunit $(TEST_OPTIONS)
27
28 testenv:
29         $(WAF) test --testenv $(TEST_OPTIONS)
30
31 gdbtestenv:
32         $(WAF) test --testenv --gdbtest $(TEST_OPTIONS)
33
34 quicktest:
35         $(WAF) test --quick $(TEST_OPTIONS)
36
37 randomized-test:
38         $(WAF) test --random-order $(TEST_OPTIONS)
39
40 testlist:
41         $(WAF) test --list $(TEST_OPTIONS)
42
43 dist:
44         touch .tmplock
45         WAFLOCK=.tmplock $(WAF) dist
46
47 distcheck:
48         touch .tmplock
49         WAFLOCK=.tmplock $(WAF) distcheck
50
51 clean:
52         $(WAF) clean
53
54 distclean:
55         $(WAF) distclean
56
57 reconfigure: configure
58         $(WAF) reconfigure
59
60 show_waf_options:
61         $(WAF) --help
62
63 # some compatibility make targets
64 everything: all
65
66 testsuite: all
67
68 check: test
69
70 torture: all
71
72 # this should do an install as well, once install is finished
73 installcheck: test
74
75 etags:
76         $(WAF) etags
77
78 ctags:
79         $(WAF) ctags
80
81 pydoctor:
82         $(WAF) pydoctor
83
84 pep8:
85         $(WAF) pep8
86
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
89
90 bin/smbd: FORCE
91         $(WAF) --targets=smbd/smbd
92
93 bin/winbindd: FORCE
94         $(WAF) --targets=winbindd/winbindd
95
96 bin/nmbd: FORCE
97         $(WAF) --targets=nmbd/nmbd
98
99 bin/smbclient: FORCE
100         $(WAF) --targets=client/smbclient
101
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
105 bin/%: FORCE
106         $(WAF) --targets=$(subst bin/,,$@)
107
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
110 %:
111         $(WAF) --targets=$@
112
113 # This rule has to be the last one
114 FORCE:
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
119 .NOTPARALLEL: %
120 .PHONY: FORCE everything testsuite check torture