1 [SUBSYSTEM
::TORTURE_UTIL
]
2 PRIVATE_DEPENDENCIES
= LIBCLI_RAW
3 PUBLIC_DEPENDENCIES
= torture POPT_CREDENTIALS
5 TORTURE_UTIL_OBJ_FILES
= $(addprefix $(torturesrcdir
)/, util_smb.o
)
7 #################################
8 # Start SUBSYSTEM TORTURE_BASIC
9 [MODULE
::TORTURE_BASIC
]
10 SUBSYSTEM
= smbtorture
11 INIT_FUNCTION
= torture_base_init
12 OUTPUT_TYPE
= MERGED_OBJ
13 PRIVATE_DEPENDENCIES
= \
14 LIBCLI_SMB POPT_CREDENTIALS \
15 TORTURE_UTIL LIBCLI_RAW \
17 # End SUBSYSTEM TORTURE_BASIC
18 #################################
20 TORTURE_BASIC_OBJ_FILES
= $(addprefix $(torturesrcdir
)/basic
/, \
40 $(eval
$(call proto_header_template
,$(torturesrcdir
)/basic
/proto.h
,$(TORTURE_BASIC_OBJ_FILES
:.o
=.c
)))
42 #################################
43 # Start SUBSYSTEM TORTURE_RAW
45 OUTPUT_TYPE
= MERGED_OBJ
46 SUBSYSTEM
= smbtorture
47 INIT_FUNCTION
= torture_raw_init
48 PRIVATE_DEPENDENCIES
= \
49 LIBCLI_SMB LIBCLI_LSA LIBCLI_SMB_COMPOSITE \
50 POPT_CREDENTIALS TORTURE_UTIL
51 # End SUBSYSTEM TORTURE_RAW
52 #################################
54 TORTURE_RAW_OBJ_FILES
= $(addprefix $(torturesrcdir
)/raw
/, \
88 $(eval
$(call proto_header_template
,$(torturesrcdir
)/raw
/proto.h
,$(TORTURE_RAW_OBJ_FILES
:.o
=.c
)))
90 mkinclude smb2
/config.mk
91 mkinclude winbind
/config.mk
92 mkinclude libnetapi
/config.mk
94 [SUBSYSTEM
::TORTURE_NDR
]
95 PRIVATE_DEPENDENCIES
= torture SERVICE_SMB
97 TORTURE_NDR_OBJ_FILES
= $(addprefix $(torturesrcdir
)/ndr
/, ndr.o winreg.o atsvc.o lsa.o epmap.o dfs.o netlogon.o drsuapi.o spoolss.o samr.o
)
99 $(eval
$(call proto_header_template
,$(torturesrcdir
)/ndr
/proto.h
,$(TORTURE_NDR_OBJ_FILES
:.o
=.c
)))
101 [MODULE
::torture_rpc
]
102 OUTPUT_TYPE
= MERGED_OBJ
103 # TORTURE_NET and TORTURE_NBT use functions from torture_rpc...
104 #OUTPUT_TYPE = MERGED_OBJ
105 SUBSYSTEM
= smbtorture
106 INIT_FUNCTION
= torture_rpc_init
107 PRIVATE_DEPENDENCIES
= \
108 NDR_TABLE RPC_NDR_UNIXINFO dcerpc_samr RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
109 RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
110 RPC_NDR_NETLOGON dcerpc_atsvc dcerpc_mgmt RPC_NDR_DRSUAPI \
111 RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_FRSAPI RPC_NDR_SPOOLSS \
112 RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
113 RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER RPC_NDR_NTSVCS WB_HELPER LIBSAMBA-NET \
114 LIBCLI_AUTH POPT_CREDENTIALS TORTURE_LDAP TORTURE_UTIL TORTURE_RAP \
115 dcerpc_server service process_model ntvfs SERVICE_SMB RPC_NDR_BROWSER LIBCLI_DRSUAPI TORTURE_LDB_MODULE
117 torture_rpc_OBJ_FILES
= $(addprefix $(torturesrcdir
)/rpc
/, \
118 join.o lsa.o lsa_lookup.o session_key.o echo.o dfs.o drsuapi.o \
119 drsuapi_cracknames.o dssync.o spoolss.o spoolss_notify.o spoolss_win.o \
120 unixinfo.o samr.o samr_accessmask.o wkssvc.o srvsvc.o svcctl.o atsvc.o \
121 eventlog.o epmapper.o winreg.o initshutdown.o oxidresolve.o remact.o mgmt.o \
122 scanner.o autoidl.o countcalls.o testjoin.o schannel.o netlogon.o remote_pac.o samlogon.o \
123 samsync.o bind.o dssetup.o alter_context.o bench.o samba3rpc.o rpc.o async_bind.o \
124 handles.o frsapi.o object_uuid.o ntsvcs.o browser.o
)
126 $(eval
$(call proto_header_template
,$(torturesrcdir
)/rpc
/proto.h
,$(torture_rpc_OBJ_FILES
:.o
=.c
)))
128 #################################
129 # Start SUBSYSTEM TORTURE_RAP
130 [MODULE
::TORTURE_RAP
]
131 OUTPUT_TYPE
= MERGED_OBJ
132 SUBSYSTEM
= smbtorture
133 INIT_FUNCTION
= torture_rap_init
134 PRIVATE_DEPENDENCIES
= TORTURE_UTIL LIBCLI_SMB
135 # End SUBSYSTEM TORTURE_RAP
136 #################################
138 TORTURE_RAP_OBJ_FILES
= $(torturesrcdir
)/rap
/rap.o
140 $(eval
$(call proto_header_template
,$(torturesrcdir
)/rap
/proto.h
,$(TORTURE_RAP_OBJ_FILES
:.o
=.c
)))
142 #################################
143 # Start SUBSYSTEM TORTURE_AUTH
144 [MODULE
::TORTURE_AUTH
]
145 OUTPUT_TYPE
= MERGED_OBJ
146 SUBSYSTEM
= smbtorture
147 PRIVATE_DEPENDENCIES
= \
148 LIBCLI_SMB gensec auth KERBEROS \
149 POPT_CREDENTIALS SMBPASSWD torture
150 # End SUBSYSTEM TORTURE_AUTH
151 #################################
153 TORTURE_AUTH_OBJ_FILES
= $(addprefix $(torturesrcdir
)/auth
/, ntlmssp.o pac.o
)
155 $(eval
$(call proto_header_template
,$(torturesrcdir
)/auth
/proto.h
,$(TORTURE_AUTH_OBJ_FILES
:.o
=.c
)))
157 mkinclude local
/config.mk
159 #################################
160 # Start MODULE TORTURE_NBENCH
161 [MODULE
::TORTURE_NBENCH
]
162 OUTPUT_TYPE
= MERGED_OBJ
163 SUBSYSTEM
= smbtorture
164 INIT_FUNCTION
= torture_nbench_init
165 PRIVATE_DEPENDENCIES
= TORTURE_UTIL
166 # End MODULE TORTURE_NBENCH
167 #################################
169 TORTURE_NBENCH_OBJ_FILES
= $(addprefix $(torturesrcdir
)/nbench
/, nbio.o nbench.o
)
171 $(eval
$(call proto_header_template
,$(torturesrcdir
)/nbench
/proto.h
,$(TORTURE_NBENCH_OBJ_FILES
:.o
=.c
)))
173 #################################
174 # Start MODULE TORTURE_UNIX
175 [MODULE
::TORTURE_UNIX
]
176 SUBSYSTEM
= smbtorture
177 OUTPUT_TYPE
= MERGED_OBJ
178 INIT_FUNCTION
= torture_unix_init
179 PRIVATE_DEPENDENCIES
= TORTURE_UTIL
180 # End MODULE TORTURE_UNIX
181 #################################
183 TORTURE_UNIX_OBJ_FILES
= $(addprefix $(torturesrcdir
)/unix
/, unix.o whoami.o unix_info2.o
)
185 $(eval
$(call proto_header_template
,$(torturesrcdir
)/unix
/proto.h
,$(TORTURE_UNIX_OBJ_FILES
:.o
=.c
)))
187 #################################
188 # Start SUBSYSTEM TORTURE_LDAP
189 [MODULE
::TORTURE_LDAP
]
190 SUBSYSTEM
= smbtorture
191 OUTPUT_TYPE
= MERGED_OBJ
192 INIT_FUNCTION
= torture_ldap_init
193 PRIVATE_DEPENDENCIES
= \
194 LIBCLI_LDAP LIBCLI_CLDAP SAMDB POPT_CREDENTIALS torture LDB_WRAP
195 # End SUBSYSTEM TORTURE_LDAP
196 #################################
198 TORTURE_LDAP_OBJ_FILES
= $(addprefix $(torturesrcdir
)/ldap
/, common.o basic.o schema.o uptodatevector.o cldap.o cldapbench.o ldap_sort.o
)
200 $(eval
$(call proto_header_template
,$(torturesrcdir
)/ldap
/proto.h
,$(TORTURE_LDAP_OBJ_FILES
:.o
=.c
)))
202 #################################
203 # Start SUBSYSTEM TORTURE_NBT
204 [MODULE
::TORTURE_NBT
]
205 SUBSYSTEM
= smbtorture
206 OUTPUT_TYPE
= MERGED_OBJ
207 INIT_FUNCTION
= torture_nbt_init
208 PRIVATE_DEPENDENCIES
= \
209 LIBCLI_SMB LIBCLI_NBT LIBCLI_DGRAM LIBCLI_WREPL torture_rpc
210 # End SUBSYSTEM TORTURE_NBT
211 #################################
213 TORTURE_NBT_OBJ_FILES
= $(addprefix $(torturesrcdir
)/nbt
/, query.o register.o \
214 wins.o winsbench.o winsreplication.o dgram.o nbt.o
)
216 $(eval
$(call proto_header_template
,$(torturesrcdir
)/nbt
/proto.h
,$(TORTURE_NBT_OBJ_FILES
:.o
=.c
)))
218 #################################
219 # Start SUBSYSTEM TORTURE_NET
220 [MODULE
::TORTURE_NET
]
221 SUBSYSTEM
= smbtorture
222 OUTPUT_TYPE
= MERGED_OBJ
223 INIT_FUNCTION
= torture_net_init
224 PRIVATE_DEPENDENCIES
= \
229 # End SUBSYSTEM TORTURE_NET
230 #################################
232 TORTURE_NET_OBJ_FILES
= $(addprefix $(torturesrcdir
)/libnet
/, libnet.o \
233 utils.o userinfo.o userman.o groupinfo.o groupman.o \
234 domain.o libnet_lookup.o libnet_user.o libnet_group.o \
235 libnet_share.o libnet_rpc.o libnet_domain.o libnet_BecomeDC.o
)
237 $(eval
$(call proto_header_template
,$(torturesrcdir
)/libnet
/proto.h
,$(TORTURE_NET_OBJ_FILES
:.o
=.c
)))
239 #################################
240 # Start SUBSYSTEM TORTURE_NTP
241 [MODULE
::TORTURE_NTP
]
242 SUBSYSTEM
= smbtorture
243 OUTPUT_TYPE
= MERGED_OBJ
244 INIT_FUNCTION
= torture_ntp_init
245 PRIVATE_DEPENDENCIES
= \
248 # End SUBSYSTEM TORTURE_NTP
249 #################################
251 TORTURE_NTP_OBJ_FILES
= $(addprefix $(torturesrcdir
)/ntp
/, ntp_signd.o
)
253 $(eval
$(call proto_header_template
,$(torturesrcdir
)/ntp
/proto.h
,$(TORTURE_NET_OBJ_FILES
:.o
=.c
)))
255 #################################
256 # Start BINARY smbtorture
259 PRIVATE_DEPENDENCIES
= \
267 # End BINARY smbtorture
268 #################################
270 smbtorture_OBJ_FILES
= $(torturesrcdir
)/smbtorture.o
$(torturesrcdir
)/torture.o
272 PUBLIC_HEADERS
+= $(torturesrcdir
)/smbtorture.h
273 MANPAGES
+= $(torturesrcdir
)/man
/smbtorture
.1
275 #################################
276 # Start BINARY gentest
279 PRIVATE_DEPENDENCIES
= \
280 LIBSAMBA-HOSTCONFIG \
288 #################################
290 gentest_OBJ_FILES
= $(torturesrcdir
)/gentest.o
292 MANPAGES
+= $(torturesrcdir
)/man
/gentest
.1
294 #################################
295 # Start BINARY masktest
298 PRIVATE_DEPENDENCIES
= \
299 LIBSAMBA-HOSTCONFIG \
305 # End BINARY masktest
306 #################################
308 masktest_OBJ_FILES
= $(torturesrcdir
)/masktest.o
310 MANPAGES
+= $(torturesrcdir
)/man
/masktest
.1
312 #################################
313 # Start BINARY locktest
316 PRIVATE_DEPENDENCIES
= \
323 # End BINARY locktest
324 #################################
326 locktest_OBJ_FILES
= $(torturesrcdir
)/locktest.o
328 MANPAGES
+= $(torturesrcdir
)/man
/locktest
.1
332 ifeq ($(MAKECMDGOALS
),gcov
)
336 ifeq ($(MAKECMDGOALS
),lcov
)
340 ifeq ($(MAKECMDGOALS
),testcov-html
)
346 LDFLAGS
+= --coverage
352 for I in
$(sort $(dir $(ALL_OBJS
))); \
353 do
$(GCOV
) -p
-o
$$I $$I/*.c
; \
357 -rm heimdal
/lib
/*/{lex,parse
,sel-lex
}.
{gcda
,gcno
}
358 cd ..
&& lcov
--base-directory
`pwd`/source4
--directory source4
--directory nsswitch
--directory libcli
--directory librpc
--directory lib
--capture
--output-file source4
/samba4.
info
361 genhtml
-o coverage
$<