aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makefile
blob: 504f9af762e2ab960d5a27e02c9b53b3ab51b4b1 (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
26
27
28
29
30
MHMAKESLNFILE=mhmake.sln

.PHONY: all mhmake_dbg mhmake cleanthis

all: debug\mhmake_dbg.exe release\mhmake.exe

DEPS=$(wildcard src\*)

ifneq $(which devenv.com),
VCSTUDIO=devenv.com
endif
ifneq $(which vcexpress.exe),
VCSTUDIO=vcexpress
endif

ifndef VCSTUDIO
$(error Environment not set correctly for building Visual Studio projects)
endif

debug\mhmake_dbg.exe: $(DEPS)
	$(VCSTUDIO) $(MHMAKESLNFILE) /build Debug

release\mhmake.exe: $(DEPS)
	$(VCSTUDIO) $(MHMAKESLNFILE) /build Release

clean: cleanthis

cleanthis:
	del -e Debug
	del -e Release