1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,7 @@
SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
endif
-LIBXXH = libxxhash.$(SHARED_EXT_VER)
+LIBXXH = libxxhash.$(SHARED_EXT)
CLI_DIR = cli
CLI_SRCS = $(wildcard $(CLI_DIR)/*.c)
@@ -144,20 +144,13 @@
libxxhash.a:
$(eval $(call static_library,libxxhash.a,$(LIBXXHASH_OBJS)))
-$(LIBXXH): LDFLAGS += $(SONAME_FLAGS)
ifeq (,$(filter Windows%,$(OS)))
$(LIBXXH): CFLAGS += -fPIC
endif
$(eval $(call c_dynamic_library,$(LIBXXH),$(LIBXXHASH_OBJS)))
-libxxhash.$(SHARED_EXT_MAJOR): $(LIBXXH)
- $(LN) -sf $< $@
-
-libxxhash.$(SHARED_EXT): libxxhash.$(SHARED_EXT_MAJOR)
- $(LN) -sf $< $@
-
.PHONY: libxxhash ## generate dynamic xxhash library
-libxxhash: $(LIBXXH) libxxhash.$(SHARED_EXT_MAJOR) libxxhash.$(SHARED_EXT)
+libxxhash: $(LIBXXH)
.PHONY: lib ## generate static and dynamic xxhash libraries
lib: libxxhash.a libxxhash
@@ -681,8 +674,6 @@
@echo Installing libxxhash
$(MAKE_DIR) $(DESTDIR)$(LIBDIR)
$(INSTALL_PROGRAM) $(LIBXXH) $(DESTDIR)$(LIBDIR)
- ln -sf $(LIBXXH) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT_MAJOR)
- ln -sf libxxhash.$(SHARED_EXT_MAJOR) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT)
install_libxxhash.includes:
$(INSTALL) -d -m 755 $(DESTDIR)$(INCLUDEDIR) # includes
@@ -724,7 +715,6 @@
uninstall: ## uninstall libraries, CLI, links and man page
$(RM) $(DESTDIR)$(LIBDIR)/libxxhash.a
$(RM) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT)
- $(RM) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT_MAJOR)
$(RM) $(DESTDIR)$(LIBDIR)/$(LIBXXH)
$(RM) $(DESTDIR)$(INCLUDEDIR)/xxhash.h
$(RM) $(DESTDIR)$(INCLUDEDIR)/xxh3.h
|