diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-02-15 22:56:35 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2018-02-15 22:56:35 +0100 |
commit | 8338799d28a8177921cee2da5e19cd4f97eee68e (patch) | |
tree | d48e4eeb4abef1f95cf05b72d89076d42cd10f1e /Makefile | |
parent | 243b24b35c26fa0a25edcd185259cfd50d314610 (diff) | |
download | sqlitepp-8338799d28a8177921cee2da5e19cd4f97eee68e.tar.gz sqlitepp-8338799d28a8177921cee2da5e19cd4f97eee68e.tar.bz2 |
Add rules to generate libsqlitepp.so.1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -14,6 +14,7 @@ SOURCE_NAMES_TEST := sqlitepp_test.cpp TARGET_NAME_LIB := sqlitepp TARGET_LIB_BASE := $(LIBRARY_DIR)/lib$(TARGET_NAME_LIB).so +TARGET_LIB_LINKS := $(TARGET_LIB_BASE) $(TARGET_LIB_BASE).$(VERSION_MAJOR) 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) @@ -24,7 +25,7 @@ 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) -TARGETS := $(TARGET_LIB) $(TARGET_LIB_BASE) $(TARGET_TEST) +TARGETS := $(TARGET_LIB) $(TARGET_LIB_LINKS) $(TARGET_TEST) INCLUDES := $(INCLUDE_DIR)/sqlitepp/sqlitepp.h OBJECTS := $(OBJECTS_LIB) $(OBJECTS_TEST) DEPENDS := $(DEPENDS_LIB) $(DEPENDS_TEST) @@ -68,7 +69,7 @@ memcheck: $(TARGET_TEST) test: $(TARGET_TEST) ./$(TARGET_TEST) -$(TARGET_LIB_BASE): $(TARGET_LIB) +$(TARGET_LIB_LINKS): $(TARGET_LIB) $(info (LN) $@) $(QUIET)ln -sr $^ $@ |