Skip to content

Commit

Permalink
reconfig Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
songzhao committed Jul 13, 2015
1 parent c273ddf commit 6796060
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ LIBS = -lpthread \
-lsnappy \
-lrt

ROCKSDB = $(THIRD_PATH)/nemo/output/lib/librocksdb.a
GLOG = /usr/local/lib/libglog.a

.PHONY: all clean
Expand All @@ -47,10 +48,12 @@ all: $(OBJECT)
@echo "Success, go, go, go..."


$(OBJECT): $(GLOG) $(OBJS)
make -C $(THIRD_PATH)/nemo/
$(OBJECT): $(ROCKSDB) $(GLOG) $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(INCLUDE_PATH) $(LIB_PATH) -Wl,-Bdynamic $(LIBS)

$(ROCKSDB):
make -C $(THIRD_PATH)/nemo/

$(GLOG):
cd $(THIRD_PATH)/glog; ./configure; make; echo '*' > $(CURDIR)/third/glog/.gitignore; sudo make install;

Expand Down

0 comments on commit 6796060

Please sign in to comment.