r9754: Upgrading with the command line utility now works, at least partially (-:
[kai/samba.git] / source4 / scripting / config.mk
1 #######################
2 # Start LIBRARY swig_tdb
3 [LIBRARY::swig_tdb]
4 REQUIRED_SUBSYSTEMS = LIBTDB
5 # End LIBRARY swig_tdb
6 #######################
7
8 #######################
9 # Start LIBRARY swig_dcerpc
10 [LIBRARY::swig_dcerpc]
11 REQUIRED_SUBSYSTEMS = LIBCLI NDR_MISC LIBBASIC CONFIG RPC_NDR_SAMR RPC_NDR_LSA
12 # End LIBRARY swig_dcerpc
13 #######################
14
15 # Swig extensions
16 swig: scripting/swig/_tdb.so scripting/swig/_dcerpc.so
17
18 scripting/swig/tdb_wrap.c: scripting/swig/tdb.i
19         swig -python scripting/swig/tdb.i
20
21 scripting/swig/_tdb.so: scripting/swig/tdb_wrap.o $(LIBRARY_swig_tdb_DEPEND_LIST)
22         $(SHLD) $(SHLD_FLAGS) -o scripting/swig/_tdb.so scripting/swig/tdb_wrap.o \
23                 $(LIBRARY_swig_tdb_SHARED_LINK_LIST) $(LIBRARY_swig_tdb_SHARED_LINK_FLAGS)
24
25 SWIG_INCLUDES = librpc/gen_ndr/samr.i librpc/gen_ndr/lsa.i librpc/gen_ndr/spoolss.i
26
27 scripting/swig/dcerpc_wrap.c: scripting/swig/dcerpc.i scripting/swig/samba.i scripting/swig/status_codes.i $(SWIG_INCLUDES)
28         swig -python scripting/swig/dcerpc.i
29
30 scripting/swig/_dcerpc.so: scripting/swig/dcerpc_wrap.o $(LIBRARY_swig_dcerpc_DEPEND_LIST)
31         $(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)
32
33 swig_clean:
34         -rm -f scripting/swig/_tdb.so scripting/swig/tdb.pyc scripting/swig/tdb.py scripting/swig/tdb_wrap.c scripting/swig/tdb_wrap.o