1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

Merge tpot's patch to add targets to build Python stuff. It's not

built by default.
(This used to be commit 452769f595)
This commit is contained in:
Martin Pool 2002-09-09 05:46:59 +00:00
parent 0b819e864a
commit 4a0c063cac

View File

@ -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)