forked from HewlettPackard/supersim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (47 loc) · 1.75 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#--------------------- Basic Settings -----------------------------------------#
PROGRAM_NAME := supersim
BINARY_BASE := bin
BUILD_BASE := bld
SOURCE_BASE := src
MAIN_FILE := src/main.cc
#--------------------- External Libraries -------------------------------------#
LIBS_LOC := ../
HEADER_DIRS := \
$(LIBS_LOC)libprim/inc \
$(LIBS_LOC)librnd/inc \
$(LIBS_LOC)libmut/inc \
$(LIBS_LOC)libbits/inc \
$(LIBS_LOC)libjson/inc \
$(LIBS_LOC)libsettings/inc \
$(LIBS_LOC)libstrop/inc \
$(LIBS_LOC)libfio/inc \
$(LIBS_LOC)libcolhash/inc \
$(LIBS_LOC)libfactory/inc
STATIC_LIBS := \
$(LIBS_LOC)libprim/bld/libprim.a \
$(LIBS_LOC)librnd/bld/librnd.a \
$(LIBS_LOC)libmut/bld/libmut.a \
$(LIBS_LOC)libbits/bld/libbits.a \
$(LIBS_LOC)libjson/bld/libjson.a \
$(LIBS_LOC)libsettings/bld/libsettings.a \
$(LIBS_LOC)libstrop/bld/libstrop.a \
$(LIBS_LOC)libfio/bld/libfio.a \
$(LIBS_LOC)libcolhash/bld/libcolhash.a \
$(LIBS_LOC)libfactory/bld/libfactory.a
#--------------------- Cpp Lint -----------------------------------------------#
LINT := $(HOME)/.makeccpp/cpplint/cpplint.py
LINT_FLAGS :=
#--------------------- Unit Tests ---------------------------------------------#
TEST_SUFFIX := _TEST
GTEST_BASE := $(HOME)/.makeccpp/gtest
GTEST_PARALLEL := $(HOME)/.makeccpp/gtest-parallel
#--------------------- Compilation and Linking --------------------------------#
CXX := g++
SRC_EXTS := .cc
HDR_EXTS := .h .tcc
CXX_FLAGS := -Wall -Wextra -pedantic -Wfatal-errors -std=c++11
CXX_FLAGS += -Wno-unused-parameter
CXX_FLAGS += -march=native -g -O3 -flto
LINK_FLAGS := -lz
#--------------------- Auto Makefile ------------------------------------------#
include $(HOME)/.makeccpp/auto_bin.mk