@@ -57,19 +57,6 @@ LD_COMMAND = $(CXX) $^ $(ALL_LDFLAGS) $(LIBS) -pthread -o $@
57
57
CC_COMMAND = $(CC ) $(DEPFLAGS ) $(ALL_CFLAGS ) -c $< -o $@
58
58
CXX_COMMAND = $(CXX ) $(DEPFLAGS ) $(ALL_CXXFLAGS ) -c $< -o $@
59
59
60
- # Get a list of all zstd files so we rebuild the static library when we need to
61
- ZSTDCOMMON_FILES := $(wildcard $(ZSTDDIR ) /common/* .c) \
62
- $(wildcard $(ZSTDDIR ) /common/* .h)
63
- ZSTDCOMP_FILES := $(wildcard $(ZSTDDIR ) /compress/* .c) \
64
- $(wildcard $(ZSTDDIR ) /compress/* .h)
65
- ZSTDDECOMP_FILES := $(wildcard $(ZSTDDIR ) /decompress/* .c) \
66
- $(wildcard $(ZSTDDIR ) /decompress/* .h)
67
- ZSTDPROG_FILES := $(wildcard $(PROGDIR ) /* .c) \
68
- $(wildcard $(PROGDIR ) /* .h)
69
- ZSTD_FILES := $(wildcard $(ZSTDDIR ) /* .h) \
70
- $(ZSTDDECOMP_FILES ) $(ZSTDCOMMON_FILES ) $(ZSTDCOMP_FILES ) \
71
- $(ZSTDPROG_FILES )
72
-
73
60
# List all the pzstd source files so we can determine their dependencies
74
61
PZSTD_SRCS := $(wildcard * .cpp)
75
62
PZSTD_TESTS := $(wildcard test/* .cpp)
@@ -189,7 +176,8 @@ roundtrip: test/RoundTripTest$(EXT)
189
176
190
177
# Use the static library that zstd builds for simplicity and
191
178
# so we get the compiler options correct
192
- $(ZSTDDIR ) /libzstd.a : $(ZSTD_FILES )
179
+ .PHONY : $(ZSTDDIR ) /libzstd.a
180
+ $(ZSTDDIR ) /libzstd.a :
193
181
CFLAGS=" $( ALL_CFLAGS) " LDFLAGS=" $( ALL_LDFLAGS) " $(MAKE ) -C $(ZSTDDIR ) libzstd.a
194
182
195
183
# Rules to build the tests
0 commit comments