-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (24 loc) · 841 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
34
35
36
# Copyright 2019, Alex Wiens <[email protected]>, Achim Lösch <[email protected]>
# SPDX-License-Identifier: BSD-2-Clause
BASE_DIR=$(HOME)/sched/install
# normal g++
GPP=g++
# clang
#GPP=clang++
# cc8
#GPP=/opt/rh/devtoolset-2/root/usr/bin/g++
GPPFLAGS=-std=c++11 -Wall -Werror -Wno-unused
.PHONY: docs install clean build_dir
all: build_dir
cd build && cmake3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=$(GPP) -DCMAKE_CXX_FLAGS="$(GPPFLAGS)" -DCMAKE_INSTALL_PREFIX=$(BASE_DIR) .. && make
debug: build_dir
cd build && cmake3 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=$(GPP) -DCMAKE_CXX_FLAGS="$(GPPFLAGS)" -DCMAKE_INSTALL_PREFIX=$(BASE_DIR) .. && make -j 16
install:
mkdir -p $(BASE_DIR)/bin $(BASE_DIR)/scripts
cd build && make install
build_dir:
mkdir -p build
clean:
rm -r build
docs:
doxygen doxygen.conf