i2pd/Makefile.linux

26 lines
648 B
Makefile
Raw Normal View History

CC = g++
2014-09-23 05:44:09 +04:00
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)
2014-09-23 05:44:09 +04:00
endif
include filelist.mk
2014-08-17 09:35:09 +04:00
INCFLAGS =
2014-09-19 08:14:04 +04:00
LDFLAGS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
2014-08-17 09:35:09 +04:00
LIBS =
#check if AES-NI is supported by CPU
2014-08-17 09:35:09 +04:00
ifneq ($(shell grep -c aes /proc/cpuinfo),0)
2014-09-13 22:36:36 +04:00
CPU_FLAGS = -maes -DAESNI
endif