diff options
author | Martin Pool <mbp@samba.org> | 2002-09-09 05:46:59 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-09-09 05:46:59 +0000 |
commit | 4a0c063cacaf99ae5319d75bbf6deeeddd0b48cc (patch) | |
tree | 3cd876ce2ff46dd56d66e33fd85e3ba3bfcd133f /source3 | |
parent | 0b819e864a62941f53f5a30dd4060f2935d64a03 (diff) | |
download | samba-4a0c063cacaf99ae5319d75bbf6deeeddd0b48cc.tar.gz samba-4a0c063cacaf99ae5319d75bbf6deeeddd0b48cc.tar.bz2 samba-4a0c063cacaf99ae5319d75bbf6deeeddd0b48cc.zip |
Merge tpot's patch to add targets to build Python stuff. It's not
built by default.
(This used to be commit 452769f595c87ba14bde96cebf06e442e79402f3)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/Makefile.in | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in index e22387c4de..2038036a92 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -846,6 +846,45 @@ installclientlib: -$(INSTALLCMD) -d ${prefix}/include -$(INSTALLCMD) include/libsmbclient.h ${prefix}/include +# Python extensions + +PYTHON_OBJS = $(LIB_OBJ) $(LIBSMB_OBJ) $(RPC_PARSE_OBJ) $(UBIQX_OBJ) \ + $(PARAM_OBJ) $(LIBMSRPC_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) $(SECRETS_OBJ) + +PY_SPOOLSS_PROTO_OBJ = python/py_spoolss.o \ + python/py_spoolss_printers.o python/py_spoolss_printers_conv.o\ + python/py_spoolss_forms.o python/py_spoolss_forms_conv.o \ + python/py_spoolss_ports.o python/py_spoolss_ports_conv.o \ + python/py_spoolss_drivers.o python/py_spoolss_drivers_conv.o \ + python/py_spoolss_jobs.o python/py_spoolss_jobs_conv.o \ + python/py_spoolss_printerdata.o + +PY_LSA_PROTO_OBJ = python/py_lsa.o + +PY_COMMON_PROTO_OBJ = python/py_common.c python/py_ntsec.c + +python_proto: python_spoolss_proto python_lsa_proto python_common_proto + +python_spoolss_proto: + @cd $(srcdir) && $(SHELL) script/mkproto.sh $(AWK) \ + -h _PY_SPOOLSS_PROTO_H python/py_spoolss_proto.h \ + $(PY_SPOOLSS_PROTO_OBJ) + +python_lsa_proto: + @cd $(srcdir) && $(SHELL) script/mkproto.sh $(AWK) \ + -h _PY_LSA_PROTO_H python/py_lsa_proto.h \ + $(PY_LSA_PROTO_OBJ) + +python_common_proto: + @cd $(srcdir) && $(SHELL) script/mkproto.sh $(AWK) \ + -h _PY_COMMON_PROTO_H python/py_common_proto.h \ + $(PY_COMMON_PROTO_OBJ) + +python_ext: $(PYTHON_OBJS) + @echo python python/setup.py build + @PYTHON_OBJS="$(PYTHON_OBJS)" PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \ + python python/setup.py build + # revert to the previously installed version revert: @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SPROGS) |