aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/makefile')
-rw-r--r--tools/mhmake/makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/mhmake/makefile b/tools/mhmake/makefile
new file mode 100644
index 000000000..b9aa0998b
--- /dev/null
+++ b/tools/mhmake/makefile
@@ -0,0 +1,25 @@
+ifdef VS2008
+MHMAKESLNFILE=mhmake.sln
+BUILDCMD=vcbuild $(MHMAKESLNFILE)
+else
+MHMAKESLNFILE=mhmakevc10.sln
+BUILDCMD=devenv.com $(MHMAKESLNFILE) /build
+endif
+
+.PHONY: all mhmake_dbg mhmake cleanthis
+
+all: debug\mhmake_dbg.exe release\mhmake.exe
+
+DEPS=$(wildcard src\*)
+
+debug\mhmake_dbg.exe: $(DEPS)
+ $(BUILDCMD) "Debug|Win32"
+
+release\mhmake.exe: $(DEPS)
+ $(BUILDCMD) "Release|Win32"
+
+clean: cleanthis
+
+cleanthis:
+ del -e Debug
+ del -e Release