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:
sears 2011-12-21 21:05:29 +00:00
parent 297e715514
commit bed774467a
4 changed files with 18 additions and 3 deletions

15
Makefile Normal file
View 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

View file

@ -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 \