summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-06-17 14:08:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-15 17:37:20 +0200
commita82c89e882ed687bacc1f7c945387a4172790471 (patch)
tree5a0ced61e97c8629d893cd3683fa5106e1123e41
parent3eb958c202b4f85907d989e8de86874706ffe98a (diff)
downloadsamba-a82c89e882ed687bacc1f7c945387a4172790471.tar.gz
samba-a82c89e882ed687bacc1f7c945387a4172790471.tar.bz2
samba-a82c89e882ed687bacc1f7c945387a4172790471.zip
Add build system bits for wmi.
-rw-r--r--source4/Makefile1
-rw-r--r--source4/lib/wmi/config.mk12
-rw-r--r--source4/main.mk1
3 files changed, 9 insertions, 5 deletions
diff --git a/source4/Makefile b/source4/Makefile
index 66b092192e..546eb072d8 100644
--- a/source4/Makefile
+++ b/source4/Makefile
@@ -102,6 +102,7 @@ ejsscriptsrcdir := scripting/ejs
pyscriptsrcdir := $(srcdir)/scripting/python
kdcsrcdir := kdc
ntp_signdsrcdir := ntp_signd
+wmisrcdir := lib/wmi
include data.mk
diff --git a/source4/lib/wmi/config.mk b/source4/lib/wmi/config.mk
index 086a2cbba9..b51180187d 100644
--- a/source4/lib/wmi/config.mk
+++ b/source4/lib/wmi/config.mk
@@ -1,5 +1,4 @@
[SUBSYSTEM::WMI]
-PRIVATE_PROTO_HEADER = proto.h
PUBLIC_DEPENDENCIES = RPC_NDR_OXIDRESOLVER \
NDR_DCOM \
RPC_NDR_REMACT \
@@ -7,7 +6,9 @@ PUBLIC_DEPENDENCIES = RPC_NDR_OXIDRESOLVER \
DCOM_PROXY_DCOM \
DCOM
-WMI_OBJ_FILES = $(addprefix lib/wmi/, wmicore.o wbemdata.o ../../librpc/gen_ndr/dcom_p.o)
+WMI_OBJ_FILES = $(addprefix $(wmisrcdir)/, wmicore.o wbemdata.o ../../librpc/gen_ndr/dcom_p.o)
+
+$(eval $(call proto_header_template,$(wmisrcdir)/proto.h,$(WMI_OBJ_FILES:.o=.c)))
#################################
# Start BINARY wmic
@@ -19,7 +20,7 @@ PRIVATE_DEPENDENCIES = \
LIBPOPT \
WMI
-wmic_OBJ_FILES = lib/wmi/tools/wmic.o
+wmic_OBJ_FILES = $(wmisrcdir)/tools/wmic.o
# End BINARY wmic
#################################
@@ -34,7 +35,7 @@ PRIVATE_DEPENDENCIES = \
WMI
wmis_OBJ_FILES = \
- lib/wmi/tools/wmis.o
+ $(wmisrcdir)/tools/wmis.o
# End BINARY wmis
#################################
@@ -45,7 +46,8 @@ librpc/gen_ndr/dcom_p.c: idl
# Start LIBRARY swig_dcerpc
[PYTHON::pywmi]
PUBLIC_DEPENDENCIES = LIBCLI_SMB NDR_MISC LIBSAMBA-UTIL LIBSAMBA-CONFIG WMI
-SWIG_FILE = pywmi.i
+
+pywmi_OBJ_FILES = $(wmisrcdir)/pywmi_wrap.o
# End LIBRARY swig_dcerpc
#######################
diff --git a/source4/main.mk b/source4/main.mk
index 28db54c10f..d44716e4c0 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -47,3 +47,4 @@ mkinclude libcli/config.mk
mkinclude scripting/ejs/config.mk
mkinclude scripting/python/config.mk
mkinclude kdc/config.mk
+mkinclude lib/wmi/config.mk