Add simple makefile for building static binaries
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@3506 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
297e715514
commit
bed774467a
4 changed files with 18 additions and 3 deletions
15
Makefile
Normal file
15
Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
INC = -I ../stasis \
|
||||
-I ../mapkeeper/thrift/gen-cpp/ \
|
||||
-I ../../local/thrift/include/ \
|
||||
-I ../../local/thrift/include/thrift \
|
||||
-I ./sherpa
|
||||
|
||||
LIBSRC = $(wildcard *.c) $(wildcard *.cpp)
|
||||
LIBNAME = logstore
|
||||
|
||||
STATIC_LIBS= ./libstdc++.a ../mapkeeper/thrift/gen-cpp/libmapkeeper.a \
|
||||
-lrt sherpa/LSMServerHandler.cc bin/liblogstore.a \
|
||||
../stasis/bin/libstasis.a
|
||||
MAINSRC = $(wildcard main/*.cpp) $(wildcard sherpa/main/*.cc)
|
||||
|
||||
include ../stasis/config/Makefile.stasis
|
|
@ -1,9 +1,9 @@
|
|||
THRIFT_DIR = /usr/local
|
||||
THRIFT_DIR = /home/sears/local/thrift
|
||||
|
||||
CPPFLAGS =-I../../stasis -I.. -I. -I $(THRIFT_DIR)/include/thrift -I../../mapkeeper/thrift/gen-cpp
|
||||
CXXFLAGS =-g -O0
|
||||
CXXFLAGS =-g -O3
|
||||
|
||||
LDFLAGS=-lprofiler -ltcmalloc -lpthread -llogstore -lstasis -lmapkeeper -lthrift \
|
||||
LDFLAGS=-lpthread -llogstore -lstasis -lmapkeeper -lthrift \
|
||||
-L $(THRIFT_DIR)/lib -L ../../mapkeeper/thrift/gen-cpp \
|
||||
-L ../build -L ../../stasis/build/src/stasis \
|
||||
-Wl,-rpath,\$$ORIGIN/../../build \
|
||||
|
|
Loading…
Reference in a new issue