summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-08-03 04:15:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:02 -0500
commit36f64c0f057fc80186e3493f9e723677131c3c34 (patch)
treedd82b9252f346d5f1ed4bcf57fd31234f4946c38 /source4/scripting
parent26daec8d09b88b7758505d6fe732ea8f57fbf05c (diff)
downloadsamba-36f64c0f057fc80186e3493f9e723677131c3c34.tar.gz
samba-36f64c0f057fc80186e3493f9e723677131c3c34.tar.bz2
samba-36f64c0f057fc80186e3493f9e723677131c3c34.zip
r8979: Bunch of makefile fragment inclusion fixes:
- support whitespace - support "include " keyword - move swig stuff to .mk file - support autogenerated makefile portions (use "include echo foo|") (This used to be commit 43779c09b6a75e03f4cf6e8953a837cddd318aa5)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/config.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/source4/scripting/config.mk b/source4/scripting/config.mk
index 779aef0b45..d292e01f1f 100644
--- a/source4/scripting/config.mk
+++ b/source4/scripting/config.mk
@@ -11,3 +11,26 @@ REQUIRED_SUBSYSTEMS = LIBTDB
REQUIRED_SUBSYSTEMS = LIBCLI NDR_MISC LIBBASIC CONFIG RPC_NDR_SAMR RPC_NDR_LSA
# End LIBRARY swig_dcerpc
#######################
+
+# Swig extensions
+swig: scripting/swig/_tdb.so scripting/swig/_dcerpc.so
+
+scripting/swig/tdb_wrap.c: scripting/swig/tdb.i
+ swig -python scripting/swig/tdb.i
+
+scripting/swig/_tdb.so: scripting/swig/tdb_wrap.o $(LIBRARY_swig_tdb_DEPEND_LIST)
+ $(SHLD) $(SHLD_FLAGS) -o scripting/swig/_tdb.so scripting/swig/tdb_wrap.o \
+ $(LIBRARY_swig_tdb_SHARED_LINK_LIST) $(LIBRARY_swig_tdb_SHARED_LINK_FLAGS)
+
+SWIG_INCLUDES = librpc/gen_ndr/samr.i librpc/gen_ndr/lsa.i librpc/gen_ndr/spoolss.i
+
+scripting/swig/dcerpc_wrap.c: scripting/swig/dcerpc.i scripting/swig/samba.i scripting/swig/status_codes.i $(SWIG_INCLUDES)
+ swig -python scripting/swig/dcerpc.i
+
+scripting/swig/_dcerpc.so: scripting/swig/dcerpc_wrap.o $(LIBRARY_swig_dcerpc_DEPEND_LIST)
+ $(SHLD) $(SHLD_FLAGS) -o scripting/swig/_dcerpc.so scripting/swig/dcerpc_wrap.o $(LIBRARY_swig_dcerpc_SHARED_LINK_LIST) $(LIBRARY_swig_dcerpc_SHARED_LINK_FLAGS)
+
+swig_clean:
+ -rm -f scripting/swig/_tdb.so scripting/swig/tdb.pyc \
+ scripting/swig/tdb.py scripting/swig/tdb_wrap.c \
+ scripting/swig/tdb_wrap.o