minor cleaning

This commit is contained in:
Yann Collet
2020-10-21 03:22:27 -07:00
parent 911dbdbb4b
commit 3e519be965
+4 -3
View File
@@ -164,7 +164,8 @@ endif
endif endif
CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT) CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT)
ZSTD_OBJ := $(ZSTD_FILES:.c=.o) ZSTD_FULL_OBJ := $(ZSTD_FILES:.c=.o)
ZSTD_LOCAL_OBJ := $(notdir $(ZSTD_FULL_OBJ))
vpath %.c ./common vpath %.c ./common
vpath %.c ./compress vpath %.c ./compress
@@ -173,7 +174,7 @@ vpath %.c ./dictBuilder
vpath %.c ./legacy vpath %.c ./legacy
vpath %.c ./deprecated vpath %.c ./deprecated
ZSTD_DYNLIB_OBJ := $(notdir $(ZSTD_OBJ)) ZSTD_DYNLIB_OBJ := $(ZSTD_LOCAL_OBJ)
# macOS linker doesn't support -soname, and use different extension # macOS linker doesn't support -soname, and use different extension
# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html # see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
@@ -200,7 +201,7 @@ lib-all: all
all: lib all: lib
libzstd.a: ARFLAGS = rcs libzstd.a: ARFLAGS = rcs
libzstd.a: $(ZSTD_OBJ) libzstd.a: $(ZSTD_FULL_OBJ)
@echo compiling static library @echo compiling static library
$(Q)$(AR) $(ARFLAGS) $@ $^ $(Q)$(AR) $(ARFLAGS) $@ $^