diff options
Diffstat (limited to 'tools/mhmake/makefile')
-rw-r--r-- | tools/mhmake/makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/mhmake/makefile b/tools/mhmake/makefile index 6b8f7c8cb..15f846d2e 100644 --- a/tools/mhmake/makefile +++ b/tools/mhmake/makefile @@ -1,4 +1,10 @@ +ifdef VS2010
+MHMAKESLNFILE=mhmakevc10.sln
+BUILDCMD=devenv.com $(MHMAKESLNFILE) /build
+else
MHMAKESLNFILE=mhmake.sln
+BUILDCMD=devenv.com vcbuild $(MHMAKESLNFILE)
+endif
.PHONY: all mhmake_dbg mhmake cleanthis
@@ -7,10 +13,10 @@ all: debug\mhmake_dbg.exe release\mhmake.exe DEPS=$(wildcard src\*)
debug\mhmake_dbg.exe: $(DEPS)
- vcbuild $(MHMAKESLNFILE) "Debug|Win32"
+ $(BUILDCMD) "Debug|Win32"
release\mhmake.exe: $(DEPS)
- vcbuild $(MHMAKESLNFILE) "Release|Win32"
+ $(BUILDCMD) "Release|Win32"
clean: cleanthis
|