forked from enigma-dev/enigma-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 1.05 KB
/
Makefile
File metadata and controls
33 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
include ../../Config.mk
SHARED_SRC_DIR := ../../shared
PROTO_DIR := $(SHARED_SRC_DIR)/protos/.eobjs
ifeq ($(OS), Darwin)
OS_LIBS=-lboost_program_options -lpthread -ldl
else ifeq ($(UNIX_BASED), true)
OS_LIBS=-lboost_program_options -Wl,--no-as-needed -Wl,-rpath,./ -lpthread -ldl
else
OS_LIBS=-lboost_system-mt -Wl,--no-as-needed -Wl,-rpath,./ -lboost_program_options-mt -lpthread
endif
CXXFLAGS += -I../../CompilerSource -I$(PROTO_DIR) -I../libEGM -I../libEGM -I../../ENIGMAsystem/SHELL
LDFLAGS += $(OS_LIBS) -L../../ -lcompileEGMf -lEGM -lENIGMAShared -lProtocols -lgrpc++ -lgpr -lprotobuf -lyaml-cpp -lpng
ifeq ($(CUSTOM_LIB_SEARCH_PRIORITY), system)
LDFLAGS += -labsl_log_internal_message -labsl_log_internal_check_op
else
LDFLAGS += -labseil_dll
endif
ifeq ($(TESTS), TRUE)
TARGET=../../emake-tests
SOURCES := $(call rwildcard, ../emake-tests,*.cpp) $(call rwildcard, ../emake-tests/Extensions/Json,*.cpp)
LDFLAGS += -lpthread -lgtest_main -lgtest
else
TARGET = ../../emake
SOURCES := $(call rwildcard,$(SRC_DIR),*.cpp)
endif
include ../../Default.mk