2012-02-28 21:11:51 +00:00
|
|
|
# Makefile
|
|
|
|
#
|
|
|
|
# Copyright 2012 Yahoo! Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2012-01-11 23:32:42 +00:00
|
|
|
|
2011-12-22 04:37:40 +00:00
|
|
|
include ../mapkeeper/Makefile.config
|
|
|
|
|
2011-12-21 21:05:29 +00:00
|
|
|
INC = -I ../stasis \
|
|
|
|
-I ../mapkeeper/thrift/gen-cpp/ \
|
2011-12-22 04:37:40 +00:00
|
|
|
-I $(THRIFT_DIR)/include/ \
|
|
|
|
-I $(THRIFT_DIR)/include/thrift \
|
2012-02-24 21:42:59 +00:00
|
|
|
-I ./servers/mapkeeper
|
2011-12-21 21:05:29 +00:00
|
|
|
|
|
|
|
LIBSRC = $(wildcard *.c) $(wildcard *.cpp)
|
2012-02-22 23:12:28 +00:00
|
|
|
LIBNAME = blsm
|
2011-12-21 21:05:29 +00:00
|
|
|
|
2012-01-11 23:32:42 +00:00
|
|
|
ifeq ($(shell uname),Linux)
|
|
|
|
STATIC_LIBS= ../mapkeeper/thrift/gen-cpp/libmapkeeper.a \
|
2012-02-24 21:42:59 +00:00
|
|
|
-lrt servers/mapkeeper/bLSMRequestHandler.cpp bin/libblsm.a \
|
2011-12-21 21:05:29 +00:00
|
|
|
../stasis/bin/libstasis.a
|
2011-12-22 04:37:40 +00:00
|
|
|
else
|
|
|
|
STATIC_LIBS= ./libstdc++.a ../mapkeeper/thrift/gen-cpp/libmapkeeper.a \
|
2012-02-24 21:42:59 +00:00
|
|
|
servers/mapkeeper/bLSMRequestHandler.cpp bin/libblsm.a \
|
2011-12-22 04:37:40 +00:00
|
|
|
../stasis/bin/libstasis.a
|
|
|
|
endif
|
|
|
|
|
2012-02-24 21:42:59 +00:00
|
|
|
MAINSRC = $(wildcard servers/native-XXX/*.cpp) $(wildcard servers/mapkeeper/main/*.cpp)
|
2011-12-21 21:05:29 +00:00
|
|
|
|
2011-12-22 04:37:40 +00:00
|
|
|
include ../stasis/config/Makefile.stasis
|