aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makefile
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-07-29 09:17:47 +0000
committermarha <marha@users.sourceforge.net>2009-07-29 09:17:47 +0000
commit437bca524595d1007f37988e862db8bfeff329b0 (patch)
treeda106b22babce6ccd53c7dd9c3040aed4a52f455 /tools/mhmake/makefile
parent6f45caf0fe3e94a83835fa1f5d04233b9e936efc (diff)
downloadvcxsrv-437bca524595d1007f37988e862db8bfeff329b0.tar.gz
vcxsrv-437bca524595d1007f37988e862db8bfeff329b0.tar.bz2
vcxsrv-437bca524595d1007f37988e862db8bfeff329b0.zip
Added mhmake GNU make compatible (with extensions) make utility.
Diffstat (limited to 'tools/mhmake/makefile')
-rw-r--r--tools/mhmake/makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/mhmake/makefile b/tools/mhmake/makefile
new file mode 100644
index 000000000..7efb03252
--- /dev/null
+++ b/tools/mhmake/makefile
@@ -0,0 +1,33 @@
+ifneq ($(BASEAUTOMAK),makefile)
+ifneq ($(BASEAUTOMAK),linux)
+$(error Please specify BASEAUTOMAK=makefile or BASEAUTOMAK=linux on the command-line or in the environment)
+endif
+endif
+ifneq ($(CONFIG),LINESIM)
+$(error Please specify CONFIG=LINESIM on the command-line or in the environment)
+endif
+NOAUTOINCLIBS:=1
+
+ifdef VS2008
+MHMAKESLNFILE=mhmake.sln
+else
+MHMAKESLNFILE=mhmakevc6.sln
+endif
+
+.PHONY: all mhmake_dbg mhmake cleanthis
+
+all: debug\mhmake_dbg.exe release\mhmake.exe
+
+DEPS=$(wildcard src\*)
+
+debug\mhmake_dbg.exe: $(DEPS)
+ devenv.com $(MHMAKESLNFILE) /build Debug
+
+release\mhmake.exe: $(DEPS)
+ devenv.com $(MHMAKESLNFILE) /build Release
+
+clean: cleanthis
+
+cleanthis:
+ del -e Debug
+ del -e Release