996
|
1 # Makefile for building cfunge.
|
|
2 BUILD_OPTIONS = -DUSE_NCURSES:BOOL=FALSE \
|
|
3 -DUSE_CLOCK_GETTIME:BOOL=FALSE \
|
|
4 -DUSE_64BIT:BOOL=FALSE \
|
|
5 -DENABLE_TRACE:BOOL=FALSE \
|
|
6 -DENABLE_TURT:BOOL=FALSE \
|
|
7 -DCMAKE_BUILD_TYPE=Release
|
|
8
|
|
9 all: cfunge
|
|
10
|
|
11 clean:
|
|
12 rm -rf build cfunge
|
|
13
|
|
14 build:
|
|
15 mkdir build
|
|
16
|
|
17 build/Makefile: build
|
|
18 cd build && cmake $(BUILD_OPTIONS) ../cfunge-src
|
|
19
|
|
20 build/cfunge: build/Makefile
|
|
21 cd build && make
|
|
22
|
|
23 cfunge: build/cfunge
|
|
24 cp build/cfunge cfunge
|
|
25
|
|
26 .PHONY: clean all
|