blob: 2eb7f8c22a8b9e0661153ee1856bc6a1e74d5ddd (
plain)
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
|
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,7 @@
all: lib xxhsum xxhsum_inlinedXXH
xxhsum32: CFLAGS += -m32
-xxhsum xxhsum32: xxhash.c xxhsum.c
+xxhsum xxhsum32: xxhash.o xxhsum.c
$(CC) $(FLAGS) $^ -o $@$(EXT)
.PHONY: xxhsum_and_links
@@ -105,12 +105,12 @@
ifeq (,$(filter Windows%,$(OS)))
$(LIBXXH): LDFLAGS += -fPIC
endif
-$(LIBXXH): xxhash.c
+$(LIBXXH): xxhash.o
@echo compiling dynamic library $(LIBVER)
- @$(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
+ $(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
@echo creating versioned links
- @ln -sf $@ libxxhash.$(SHARED_EXT_MAJOR)
- @ln -sf $@ libxxhash.$(SHARED_EXT)
+ ln -sf $@ libxxhash.$(SHARED_EXT_MAJOR)
+ ln -sf $@ libxxhash.$(SHARED_EXT)
libxxhash : $(LIBXXH)
|