mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
750 B
30 lines
750 B
CXXFLAGS = -g -Wall |
|
CXXVER := $(shell $(CXX) -dumpversion) |
|
|
|
FGREP = fgrep |
|
IS_64 := $(shell $(CXX) -dumpmachine 2>&1 | $(FGREP) -c "64") |
|
|
|
ifeq ($(shell expr match ${CXXVER} "4\.[0-9][0-9]"),4) # >= 4.10 |
|
CXXFLAGS += -std=c++11 |
|
else ifeq ($(shell expr match ${CXXVER} "4\.[7-9]"),3) # >= 4.7 |
|
CXXFLAGS += -std=c++11 |
|
else ifeq ($(shell expr match ${CXXVER} "4\.6"),3) # = 4.6 |
|
CXXFLAGS += -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 = |
|
|
|
|
|
ifeq ($(IS_64),1) |
|
#check if AES-NI is supported by CPU |
|
ifneq ($(shell grep -c aes /proc/cpuinfo),0) |
|
CPU_FLAGS = -maes -DAESNI |
|
endif |
|
endif |
|
|
|
|