aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mhmake/makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/mhmake/makefile b/tools/mhmake/makefile
index 504f9af76..425f9d843 100644
--- a/tools/mhmake/makefile
+++ b/tools/mhmake/makefile
@@ -7,21 +7,23 @@ all: debug\mhmake_dbg.exe release\mhmake.exe
DEPS=$(wildcard src\*)
ifneq $(which devenv.com),
-VCSTUDIO=devenv.com
+VCSTUDIO_DBG=devenv.com $(MHMAKESLNFILE) /build Debug
+VCSTUDIO_REL=devenv.com $(MHMAKESLNFILE) /build Release
endif
-ifneq $(which vcexpress.exe),
-VCSTUDIO=vcexpress
+ifneq $(which vcbuild.exe),
+VCSTUDIO_DBG=vcbuild $(MHMAKESLNFILE) "Debug|Win32"
+VCSTUDIO_REL=vcbuild $(MHMAKESLNFILE) "Release|Win32"
endif
-ifndef VCSTUDIO
+ifndef VCSTUDIO_DBG
$(error Environment not set correctly for building Visual Studio projects)
endif
debug\mhmake_dbg.exe: $(DEPS)
- $(VCSTUDIO) $(MHMAKESLNFILE) /build Debug
+ $(VCSTUDIO_DBG)
release\mhmake.exe: $(DEPS)
- $(VCSTUDIO) $(MHMAKESLNFILE) /build Release
+ $(VCSTUDIO_REL)
clean: cleanthis