aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makefile
blob: 15f846d2e296b32251064e1f981628cc95571fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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

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