summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 8786eca872..9340ded1a9 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -407,13 +407,16 @@ def build(bld):
private_library=True,
deps='crypt dl nsl socket rt')
- TEST_SOURCES = '''test/testsuite.c test/main.c test/strptime.c
- test/os2_delete.c test/getifaddrs.c'''
-
+ bld.SAMBA_LIBRARY('replace-test',
+ source='''test/testsuite.c test/strptime.c
+ test/os2_delete.c test/getifaddrs.c''',
+ autoproto='replace-test.h',
+ deps='replace',
+ private_library=True)
bld.SAMBA_BINARY('replace_testsuite',
- TEST_SOURCES,
- deps='replace',
+ source='test/main.c',
+ deps='replace replace-test',
install=False)
# build replacements for stdint.h and stdbool.h if needed