Fixed cross compiling for win32 (mingw).
[ne.git] / Makefile
blob5a14f5ec5911bc474373eaaf8bc974b5b006a153
1 BUILD=build
2 EXECUTABLE=$(BUILD)/main
4 all: dircheck
5 $(DIRCHECK)
6 cd $(BUILD) && cmake -DBUILD=Release ..
7 cd $(BUILD) && make
9 dircheck:
10 `if [ ! -d $(BUILD) ]; then mkdir $(BUILD); fi`
12 verbose: dircheck
13 cd $(BUILD) && cmake -DCMAKE_VERBOSE_MAKEFILE=1 ..
14 cd $(BUILD) && make
16 run: all
17 ./$(EXECUTABLE)
19 debug: dircheck
20 cd $(BUILD) && cmake -DBUILD=Debug ..
21 cd $(BUILD) && make
23 clean:
24 rm -rf $(BUILD)
25 cd win32 && make clean
27 cross:
28 cd win32 && make