mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
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
This commit is contained in:
parent
be203841a0
commit
f346e1a636
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ DEBUG = 1
|
|||
# sources to target
|
||||
SRCS = $(wildcard *.cc)
|
||||
OBJS = $(patsubst %.cc,%.o,$(SRCS))
|
||||
TARGET = $(patsubst %.o,%.so,$(OBJS))
|
||||
TARGET = ha_tokudb.so
|
||||
|
||||
ifeq ($(GCOV),1)
|
||||
GCOV_FLAGS = -ftest-coverage -fprofile-arcs
|
||||
|
@ -42,8 +42,8 @@ LIBS = -L$(TOKUDB)/lib -ltokudb -lpthread -lz -lstdc++ -lm -lgcc_s -lc
|
|||
|
||||
all: $(TARGET)
|
||||
|
||||
%.so: %.o
|
||||
$(CXX) $(LDFLAGS) $(GCOV_FLAGS) $(MYSQL_CXXFLAGS) $(BEGINLIBS) $< $(LIBS) $(ENDLIBS) -o $@
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(LDFLAGS) $(GCOV_FLAGS) $(MYSQL_CXXFLAGS) $(BEGINLIBS) $^ $(LIBS) $(ENDLIBS) -o $@
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) $(OBJS) *.gcno *.gcda *.gcov
|
||||
|
|
Loading…
Reference in a new issue