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