aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a905f08..a455917 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
include config.mk
+VERSION := $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)
+
INCLUDE_DIR := include
SOURCE_DIR := src
OBJECT_DIR := obj
@@ -12,7 +14,7 @@ SOURCE_NAMES_TEST := sqlitepp_test.cpp
TARGET_NAME_LIB := sqlitepp
TARGET_LIB_BASE := $(LIBRARY_DIR)/lib$(TARGET_NAME_LIB).so
-TARGET_LIB := $(TARGET_LIB_BASE).$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)
+TARGET_LIB := $(TARGET_LIB_BASE).$(VERSION)
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)
@@ -57,7 +59,7 @@ clean:
$(QUIET)$(RM) -r $(DOCUMENTATION_DIR)
doc: $(INCLUDES)
- doxygen
+ (cat Doxyfile ; echo "PROJECT_NUMBER=$(VERSION)" ) | doxygen -
memcheck: $(TARGET_TEST)
valgrind --tool=memcheck ./$(TARGET_TEST)