2014-07-16 16:59:17 +00:00
|
|
|
CC = g++
|
2014-09-23 01:44:09 +00:00
|
|
|
CFLAGS = -g -Wall
|
|
|
|
CXXVER := $(shell ${CC} -dumpversion)
|
|
|
|
ifeq ($(shell expr match ${CXXVER} "4\.[0-5]"),3)
|
|
|
|
$(error Compiler too old)
|
|
|
|
endif
|
|
|
|
|
2014-09-23 01:56:01 +00:00
|
|
|
ifeq (${CXXVER},"4.9")
|
2014-09-23 01:44:09 +00:00
|
|
|
CFLAGS += -std=c++11
|
2014-09-23 01:56:01 +00:00
|
|
|
else
|
|
|
|
CFLAGS += -std=c++0x
|
2014-09-23 01:44:09 +00:00
|
|
|
endif
|
|
|
|
|
2014-07-17 17:12:52 +00:00
|
|
|
include filelist.mk
|
2014-08-17 05:35:09 +00:00
|
|
|
INCFLAGS =
|
2014-09-19 04:14:04 +00:00
|
|
|
LDFLAGS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
2014-08-17 05:35:09 +00:00
|
|
|
LIBS =
|
2014-07-16 16:59:17 +00:00
|
|
|
|
|
|
|
#check if AES-NI is supported by CPU
|
2014-08-17 05:35:09 +00:00
|
|
|
ifneq ($(shell grep -c aes /proc/cpuinfo),0)
|
2014-09-13 18:36:36 +00:00
|
|
|
CPU_FLAGS = -maes -DAESNI
|
2014-07-16 16:59:17 +00:00
|
|
|
endif
|
|
|
|
|