Merge tpot's patch to add targets to build Python stuff. It's not
authorMartin Pool <mbp@samba.org>
Mon, 9 Sep 2002 05:46:59 +0000 (05:46 +0000)
committerMartin Pool <mbp@samba.org>
Mon, 9 Sep 2002 05:46:59 +0000 (05:46 +0000)
built by default.
(This used to be commit 452769f595c87ba14bde96cebf06e442e79402f3)

source3/Makefile.in

index e22387c4de55a2cb2a4d10fe5bd66317e93d5ebe..2038036a92ea5597242147cc0763b52ed25cdfeb 100644 (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)