Module: check_mk
Branch: master
Commit: 8f40b33a0b2f4c0b976dd19915311cc6de271045
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8f40b33a0b2f4c…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Jul 25 16:53:23 2017 +0200
Added a (hacky) wmitest.exe Makefile target.
Change-Id: Id9e61305b5bac0903f4101b2ff76d472ad29afaf
---
agents/windows/.gitignore | 3 +++
agents/windows/Makefile | 14 +++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/agents/windows/.gitignore b/agents/windows/.gitignore
index 8b1ab35..3686414 100644
--- a/agents/windows/.gitignore
+++ b/agents/windows/.gitignore
@@ -14,3 +14,6 @@ log
check_mk_agent*.unstripped.exe
depend
testtools
+*.d
+*.o
+wmitest.exe
diff --git a/agents/windows/Makefile b/agents/windows/Makefile
index 7991bc2..4bcbe94 100644
--- a/agents/windows/Makefile
+++ b/agents/windows/Makefile
@@ -67,6 +67,18 @@ fix_linebreaks:
fi ; \
done
+
+# The rules below to build wmitest.exe are a total hack, this Makefile needs a
+# *serious* overhaul... :-P
+%.o: %.cc
+ $(CXX) -c $(COMMON_OPTS) -MMD -MP $<
+
+-include wmitest.d
+-include stringutil.d
+-include wmiHelper.d
+wmitest.exe: wmitest.o stringutil.o wmiHelper.o
+ $(CXX) $(COMMON_OPTS) $^ -o $@ -lwsock32 -lole32 -loleaut32 -lwbemuuid
+
# -----------------------------------------------------------------------------
# 1. Create ressource files with version and product information. Note: That file
# contains a dummy version number, which is later being replaced with the
@@ -198,7 +210,7 @@ nowin.exe: nowin.cc
$(CXX) -o $@ $<
clean:
- rm -f *.o *.exe *~ svn-*.tmp *.rc *.res obj/*.o obj64/*.o obj/sections/*.o
obj64/sections/*.o
+ rm -f *.o *.d *.exe *~ svn-*.tmp *.rc *.res obj/*.o obj64/*.o obj/sections/*.o
obj64/sections/*.o
make -C msibuild clean
mrproper: clean