aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makefile
blob: 7efb032522c9465efd5c9071d3b5834679af8933 (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
31
32
33
ifneq ($(BASEAUTOMAK),makefile)
ifneq ($(BASEAUTOMAK),linux)
$(error Please specify BASEAUTOMAK=makefile or BASEAUTOMAK=linux on the command-line or in the environment)
endif
endif
ifneq ($(CONFIG),LINESIM)
$(error Please specify CONFIG=LINESIM on the command-line or in the environment)
endif
NOAUTOINCLIBS:=1

ifdef VS2008
MHMAKESLNFILE=mhmake.sln
else
MHMAKESLNFILE=mhmakevc6.sln
endif

.PHONY: all mhmake_dbg mhmake cleanthis

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

DEPS=$(wildcard src\*)

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

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

clean: cleanthis

cleanthis:
	del -e Debug
	del -e Release