-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 799 Bytes
/
Makefile
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
include $(shell rospack find mk)/cmake.mk
# Clang is a good compiler to use during development due to its faster compile
# times and more readable output.
# C_compiler=/usr/bin/clang
# CXX_compiler=/usr/bin/clang++
# GCC is better for release mode due to the speed of its output, and its support
# for OpenMP.
C_compiler=/usr/bin/gcc
CXX_compiler=/usr/bin/g++
#acceptable buildTypes: Release/Debug/Profile
# buildType=Release
buildType=Debug
buildDir=build
.SILENT:
all: build
cmake: CMakeLists.txt
cd $(buildDir) && cmake -DCMAKE_BUILD_TYPE=$(buildType) -DCMAKE_CXX_COMPILER=$(CXX_compiler) -DCMAKE_C_COMPILER=$(C_compiler) ..
build: cmake
$(MAKE) --no-print-directory -C $(buildDir)
clean:
$(MAKE) --no-print-directory -C $(buildDir) clean
cleanup_cache:
cd $(buildDir) && rm -rf *