Skip to content

Commit

Permalink
Build only those deps that are not already installed, to avoid confli…
Browse files Browse the repository at this point in the history
…ct between

system-wide and openabe-local shared libraries
  • Loading branch information
Uri Blumenthal committed Sep 23, 2020
1 parent 378b5b1 commit 493a0d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ endif
DEPS_INSTALL_ZROOT = $(ZROOT)/deps/root
OABE_LIB_ROOT = $(ZROOT)/root/lib
INCLUDE_ROOT = $(ZROOT)/root/include
ifndef LOCAL_LIB_ROOT
LOCAL_LIB_ROOT = /usr/local/lib
endif
ifndef LOCAL_INCLUDE
LOCAL_INCLUDE = /usr/local/include
endif
LOCAL_INSTALL_BIN = /usr/local/bin

# Include locations
Expand Down Expand Up @@ -42,7 +46,8 @@ else
endif

# Set shared lib extension for each OS
DEPS_PACKAGES = relic openssl gtest
DEPS_PACKAGES = $(if $(USE_DEPS),$(USE_DEPS),"relic openssl gtest")
$(info DEPS_PACKAGES: $(DEPS_PACKAGES) *** )
ADD_CFLAGS :=
OS_CXXFLAGS :=
WITH_BP :=
Expand Down
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CC ?= gcc
OABE_INCLUDE_DIR := $(INCLUDE_ROOT)/openabe
CXX11FLAGS += $(CXXFLAGS)

$(info CXX11FLAGS: $(CXX11FLAGS) )
RELICLIBS = -lrelic_s
#$(DEPS_INSTALL_ROOT)/lib/librelic_s.a

Expand Down
2 changes: 2 additions & 0 deletions src/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ OABELIB = libopenabe.a

AR = ar
MAKE = make
ifndef BISON
BISON = ${ZROOT}/bin/bison
endif
FLEX = flex
INSTALL = install

0 comments on commit 493a0d2

Please sign in to comment.