diff options
-rw-r--r-- | Makefile | 15 | ||||
-rw-r--r-- | src/sqlitepp.cpp (renamed from src/sqlitepp/sqlitepp.cc) | 0 | ||||
-rw-r--r-- | src/sqlitepp_test.cpp (renamed from src/sqlitepp/sqlitepp_test.cc) | 0 |
3 files changed, 7 insertions, 8 deletions
@@ -7,16 +7,16 @@ LIBRARY_DIR := lib BINARY_DIR := bin DOCUMENTATION_DIR := doc -SOURCE_NAMES_LIB := sqlitepp.cc -SOURCE_NAMES_TEST := sqlitepp_test.cc +SOURCE_NAMES_LIB := sqlitepp.cpp +SOURCE_NAMES_TEST := sqlitepp_test.cpp TARGETS := $(LIBRARY_DIR)/libsqlitepp.so $(BINARY_DIR)/sqlitepp_test -SOURCES_LIB := $(foreach source,$(SOURCE_NAMES_LIB),$(SOURCE_DIR)/sqlitepp/$(source)) -OBJECTS_LIB := $(SOURCES_LIB:$(SOURCE_DIR)/%.cc=$(OBJECT_DIR)/%.o) +SOURCES_LIB := $(foreach source,$(SOURCE_NAMES_LIB),$(SOURCE_DIR)/$(source)) +OBJECTS_LIB := $(SOURCES_LIB:$(SOURCE_DIR)/%.cpp=$(OBJECT_DIR)/%.o) DEPENDS_LIB := $(OBJECTS_LIB:.o=.d) -SOURCES_TEST := $(foreach source,$(SOURCE_NAMES_TEST),$(SOURCE_DIR)/sqlitepp/$(source)) -OBJECTS_TEST := $(SOURCES_TEST:$(SOURCE_DIR)/%.cc=$(OBJECT_DIR)/%.o) +SOURCES_TEST := $(foreach source,$(SOURCE_NAMES_TEST),$(SOURCE_DIR)/$(source)) +OBJECTS_TEST := $(SOURCES_TEST:$(SOURCE_DIR)/%.cpp=$(OBJECT_DIR)/%.o) DEPENDS_TEST := $(OBJECTS_TEST:.o=.d) INCLUDES := $(INCLUDE_DIR)/sqlitepp/sqlitepp.h @@ -61,10 +61,9 @@ $(BINARY_DIR)/sqlitepp_test: $(OBJECTS_TEST) $(QUIET)mkdir -p $(BINARY_DIR) $(QUIET)$(CXX) $(LDFLAGS) $(LDFLAGS_TEST) $< -o $@ -$(OBJECTS): $(OBJECT_DIR)/%.o: $(SOURCE_DIR)/%.cc +$(OBJECTS): $(OBJECT_DIR)/%.o: $(SOURCE_DIR)/%.cpp $(info (CXX) $@) $(QUIET)mkdir -p $(OBJECT_DIR) - $(QUIET)mkdir -p $(OBJECT_DIR)/sqlitepp $(QUIET)$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ -include $(DEPENDS) diff --git a/src/sqlitepp/sqlitepp.cc b/src/sqlitepp.cpp index ef0dfa8..ef0dfa8 100644 --- a/src/sqlitepp/sqlitepp.cc +++ b/src/sqlitepp.cpp diff --git a/src/sqlitepp/sqlitepp_test.cc b/src/sqlitepp_test.cpp index dfa46d4..dfa46d4 100644 --- a/src/sqlitepp/sqlitepp_test.cc +++ b/src/sqlitepp_test.cpp |