-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 776 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 776 Bytes
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
34
35
36
37
CMAKE=cmake -DCMAKE_BUILD_TYPE=Release
ifndef ECLIPSE_VERSION
ECLIPSE_VERSION=3.6
endif
help: all
all:
@echo "make [unix|eclipse|xcode|clean|eclipse]";\
echo "ex) ECLIPSE_VERSION=4.7 make eclipse"
unix:remake-build-dir
cd build;\
cmake -DPW_BUILD_TYPE=unix -DCMAKE_BUILD_TYPE=Release ..
remake-build-dir:
$(RM) -rf build;\
mkdir build
codelite:remake-build-dir
cd build;\
$(CMAKE) -DPW_BUILD_TYPE=codelite -G"CodeLite - Unix Makefiles" ../src
eclipse:remake-build-dir
cd build;\
$(CMAKE) -DPW_BUILD_TYPE=eclipse \
-DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE \
-DCMAKE_ECLIPSE_VERSION=$(ECLIPSE_VERSION) \
-G"Eclipse CDT4 - Unix Makefiles" ../src
xcode:remake-build-dir
cd build;\
$(CMAKE) -DPW_BUILD_TYPE=xcode -G Xcode ..
clean:
$(RM) -rf build