Skip to content

Commit

Permalink
SINGA-53 Add lmdb compiling options
Browse files Browse the repository at this point in the history
  • Loading branch information
xiezl authored and nudles committed Aug 13, 2015
1 parent da844af commit 975f0cf
Show file tree
Hide file tree
Showing 18 changed files with 11,031 additions and 10,393 deletions.
23 changes: 23 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,37 @@ SINGA_HDRS := include/singa.h \

lib_LTLIBRARIES = libsinga.la
libsinga_la_SOURCES = $(PROTO_HDRS) $(PROTO_SRCS) $(SINGA_HDRS) $(SINGA_SRCS)
if LMDB
libsinga_la_CXXFLAGS = -O3 -Wall -pthread -fPIC -std=c++11 -Wno-unknown-pragmas \
$(MSHADOW_FLAGS) -DCPU_ONLY=1 -funroll-loops -gdwarf-2 \
-gstrict-dwarf -Woverloaded-virtual -DTHREADED -fpermissive -DUSE_LMDB
else
libsinga_la_CXXFLAGS = -O3 -Wall -pthread -fPIC -std=c++11 -Wno-unknown-pragmas \
$(MSHADOW_FLAGS) -DCPU_ONLY=1 -funroll-loops -gdwarf-2 \
-gstrict-dwarf -Woverloaded-virtual -DTHREADED -fpermissive
endif
libsinga_la_LDFLAGS = -I./include

bin_PROGRAMS = singa
singa_SOURCES = src/main.cc
singa_CXXFLAGS = -O3 -Wall -pthread -fPIC -std=c++11 -MMD -Wno-unknown-pragmas \
$(MSHADOW_FLAGS) -DCPU_ONLY=1 -funroll-loops -DTHREADED
if LMDB
singa_LDFLAGS = -I./include \
-lsinga \
-lglog \
-lgflags \
-lprotobuf \
-lrt \
-lopencv_highgui \
-lopencv_imgproc \
-lopencv_core \
-lopenblas \
-lzmq \
-lczmq \
-llmdb \
-lzookeeper_mt
else
singa_LDFLAGS = -I./include \
-lsinga \
-lglog \
Expand All @@ -97,6 +119,7 @@ singa_LDFLAGS = -I./include \
-lczmq \
-llmdb \
-lzookeeper_mt
endif

bin_PROGRAMS += singatool
singatool_SOURCES = src/utils/tool.cc
Expand Down
Loading

0 comments on commit 975f0cf

Please sign in to comment.