mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
24 lines
507 B
Makefile
24 lines
507 B
Makefile
CC = g++
|
|
CFLAGS = -g -Wall
|
|
CXXVER := $(shell ${CC} -dumpversion)
|
|
ifeq ($(shell expr match ${CXXVER} "4\.[0-5]"),3)
|
|
$(error Compiler too old)
|
|
endif
|
|
|
|
ifeq (${CXXVER},"4.9")
|
|
CFLAGS += -std=c++11
|
|
else
|
|
CFLAGS += -std=c++0x
|
|
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
|
|
|