mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-04 06:00:37 +00:00
26 lines
648 B
Makefile
26 lines
648 B
Makefile
CC = g++
|
|
CFLAGS = -g -Wall
|
|
CXXVER := $(shell ${CC} -dumpversion)
|
|
|
|
ifeq ($(shell expr match ${CXXVER} "4\.[0-9][0-9]"),4) # >= 4.10
|
|
CFLAGS += -std=c++11
|
|
else ifeq ($(shell expr match ${CXXVER} "4\.[7-9]"),3) # >= 4.7
|
|
CFLAGS += -std=c++11
|
|
else ifeq ($(shell expr match ${CXXVER} "4\.6"),3) # = 4.6
|
|
CFLAGS += -std=c++0x
|
|
else # not supported
|
|
$(error Compiler too old)
|
|
endif
|
|
|
|
|
|
include filelist.mk
|
|
INCFLAGS =
|
|
LDFLAGS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
|
LIBS =
|
|
|
|
#check if AES-NI is supported by CPU
|
|
ifneq ($(shell grep -c aes /proc/cpuinfo),0)
|
|
CPU_FLAGS = -maes -DAESNI
|
|
endif
|
|
|