1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-30 13:18:05 +03:00

r4982: Start to move swig dependencies into new build system. Unfortunately

I can only get something useful happening by using the BINARY keyword
as nothing else seems to generate dependency lists that can be used
when linking the swig shared libraries.  Anyway this is a lot nicer
than having lots of junk in makefile.pm.
This commit is contained in:
Tim Potter 2005-01-25 11:21:25 +00:00 committed by Gerald (Jerry) Carter
parent b44ab87c83
commit 71a22f5206
4 changed files with 22 additions and 34 deletions

View File

@ -55,7 +55,8 @@ sub smb_build_main($)
"libcli/libsmb.mk",
"libcli/config.mk",
"libcli/security/config.mk",
"winbind/config.mk"
"winbind/config.mk",
"scripting/swig/config.mk"
);
$| = 1;

View File

@ -673,49 +673,20 @@ uninstallreg:
swig: scripting/swig/_tdb.so scripting/swig/_dcerpc.so
PYTHON_TDB_OBJ = lib/tdb/common/tdb.o lib/tdb/common/spinlock.o
scripting/swig/tdb.py: scripting/swig/tdb.i
swig -python scripting/swig/tdb.i
scripting/swig/_tdb.so: scripting/swig/tdb.py scripting/swig/tdb_wrap.o \$(PYTHON_TDB_OBJ)
scripting/swig/_tdb.so: scripting/swig/tdb.py scripting/swig/tdb_wrap.o \$(BINARY_swig_tdb_LINK_LIST)
\$(SHLD) \$(SHLD_FLAGS) -o scripting/swig/_tdb.so scripting/swig/tdb_wrap.o \\
\$(PYTHON_TDB_OBJ)
PYTHON_DCERPC_OBJ = \$(SUBSYSTEM_LIBRPC_RAW_OBJS) \\
\$(SUBSYSTEM_LIBDCOM_OBJS) \\
\$(SUBSYSTEM_LIBNDR_RAW_OBJS) \\
\$(SUBSYSTEM_LIBNDR_GEN_OBJS) \\
\$(SUBSYSTEM_LIBBASIC_OBJS) \\
\$(SUBSYSTEM_CONFIG_OBJS) \\
\$(SUBSYSTEM_LIBTDB_OBJS) \\
\$(SUBSYSTEM_SCHANNELDB_OBJS) \\
\$(SUBSYSTEM_GENSEC_OBJS) \\
\$(SUBSYSTEM_LIBCLI_UTILS_OBJS) \\
\$(SUBSYSTEM_LIBCLI_RAW_OBJS) \\
\$(SUBSYSTEM_LIBCLI_AUTH_OBJS) \\
\$(SUBSYSTEM_LIBCLI_NMB_OBJS) \\
\$(SUBSYSTEM_AUTH_OBJS) \\
\$(SUBSYSTEM_SAMDB_OBJS) \\
\$(SUBSYSTEM_LIBLDB_OBJS) \\
\$(SUBSYSTEM_CHARSET_OBJS) \\
\$(SUBSYSTEM_LIBSMB_OBJS) \\
\$(SUBSYSTEM_DCERPC_COMMON_OBJS) \\
\$(SUBSYSTEM_LIB_WINBIND_CLIENT_OBJS) \\
\$(SUBSYSTEM_SOCKET_OBJS) \\
\$(SUBSYSTEM_LIBREPLACE_OBJS) \\
\$(SUBSYSTEM_LIBNETIF_OBJS) \\
\$(SUBSYSTEM_LIBCRYPTO_OBJS)
PYTHON_DCERPC_LIBS = -lldap
\$(BINARY_swig_tdb_LINK_LIST) \$(BINARY_swig_tdb_LINK_FLAGS)
SWIG_INCLUDES = librpc/gen_ndr/samr.i librpc/gen_ndr/lsa.i librpc/gen_ndr/winreg.i librpc/gen_ndr/spoolss.i
scripting/swig/dcerpc.py: 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.py scripting/swig/dcerpc_wrap.o \$(PYTHON_DCERPC_OBJ)
\$(SHLD) \$(SHLD_FLAGS) -o scripting/swig/_dcerpc.so scripting/swig/dcerpc_wrap.o \$(PYTHON_DCERPC_OBJ) \$(PYTHON_DCERPC_LIBS)
scripting/swig/_dcerpc.so: scripting/swig/dcerpc.py scripting/swig/dcerpc_wrap.o \$(BINARY_swig_dcerpc_DEPEND_LIST)
\$(SHLD) \$(SHLD_FLAGS) -o scripting/swig/_dcerpc.so scripting/swig/dcerpc_wrap.o \$(BINARY_swig_dcerpc_DEPEND_LIST) \$(BINARY_swig_dcerpc_LINK_FLAGS)
swig_clean:
-rm -f scripting/swig/_tdb.so scripting/swig/tdb.pyc \\

View File

@ -0,0 +1,7 @@
[BINARY::swig_tdb]
OBJ_FILES = scripting/swig/dummymain.o
REQUIRED_SUBSYSTEMS = LIBTDB
[BINARY::swig_dcerpc]
OBJ_FILES = scripting/swig/dummymain.o
REQUIRED_SUBSYSTEMS = LIBCLI NDR_MISC LIBBASIC CONFIG RPC_NDR_SAMR

View File

@ -0,0 +1,9 @@
/*
* Dummy main function as the build system doesn't seem to create a
* dependency list for a subsystem.
*/
int main(void)
{
return 0;
}