Commit f346e1a6 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1116

change makefile so that multiple .cc files can be used

git-svn-id: file:///svn/mysql/tokudb-engine/src@6024 c7de825b-a66e-492c-adef-691d508d4ae1
parent be203841
...@@ -8,7 +8,7 @@ DEBUG = 1 ...@@ -8,7 +8,7 @@ DEBUG = 1
# sources to target # sources to target
SRCS = $(wildcard *.cc) SRCS = $(wildcard *.cc)
OBJS = $(patsubst %.cc,%.o,$(SRCS)) OBJS = $(patsubst %.cc,%.o,$(SRCS))
TARGET = $(patsubst %.o,%.so,$(OBJS)) TARGET = ha_tokudb.so
ifeq ($(GCOV),1) ifeq ($(GCOV),1)
GCOV_FLAGS = -ftest-coverage -fprofile-arcs GCOV_FLAGS = -ftest-coverage -fprofile-arcs
...@@ -42,8 +42,8 @@ LIBS = -L$(TOKUDB)/lib -ltokudb -lpthread -lz -lstdc++ -lm -lgcc_s -lc ...@@ -42,8 +42,8 @@ LIBS = -L$(TOKUDB)/lib -ltokudb -lpthread -lz -lstdc++ -lm -lgcc_s -lc
all: $(TARGET) all: $(TARGET)
%.so: %.o $(TARGET): $(OBJS)
$(CXX) $(LDFLAGS) $(GCOV_FLAGS) $(MYSQL_CXXFLAGS) $(BEGINLIBS) $< $(LIBS) $(ENDLIBS) -o $@ $(CXX) $(LDFLAGS) $(GCOV_FLAGS) $(MYSQL_CXXFLAGS) $(BEGINLIBS) $^ $(LIBS) $(ENDLIBS) -o $@
clean: clean:
rm -rf $(TARGET) $(OBJS) *.gcno *.gcda *.gcov rm -rf $(TARGET) $(OBJS) *.gcno *.gcda *.gcov
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment