4
Fork 0
This commit is contained in:
R3ABM Artem 2016-08-08 11:26:04 +03:00
parent 412c3255c2
commit 74de89d2b1
3 changed files with 8 additions and 4 deletions

View file

@ -7,6 +7,10 @@ PREFIX = $(DESTDIR)/opt/CronosAgent
ifeq ($(OS), Linux)
FLAGS += -rdynamic
KIND := $(shell grep -E "^6.0" /etc/debian_version > /dev/null ; echo $?)
ifneq ($(KIND), 0)
LIBRARIES += rt
endif
ifeq ($(USE_OPENSSL), yes)
FLAGS += -DUSE_OPENSSL
DEPENDENCIES += openssl
@ -35,7 +39,7 @@ LIBS += $(foreach library, $(LIBRARIES), -l$(library))
CC = gcc
CFLAGS += $(FLAGS) -std=gnu99
ifneq ($(strip $(DEPENDENCIES)),)
ifneq ($(strip $(DEPENDENCIES)), )
FLAGS += $(shell pkg-config --cflags $(DEPENDENCIES))
LIBS += $(shell pkg-config --libs $(DEPENDENCIES))
endif