Sha256: 61ec911e570d785edd631f6faada745c3734ecdab99ea336fc4f0b8dd59e7309

Contents?: true

Size: 1.4 KB

Versions: 11

Compression:

Stored size: 1.4 KB

Contents

# ##########################################################################
# Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# ##########################################################################

VOID    := /dev/null
ZSTDDIR  := ../include
LIBDIR  := ../static
DLLDIR  := ../dll

CFLAGS  ?= -O3   # can select custom flags. For example : CFLAGS="-O2 -g" make
CFLAGS  += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum \
           -Wdeclaration-after-statement -Wstrict-prototypes \
           -Wpointer-arith -Wstrict-aliasing=1
CFLAGS  += $(MOREFLAGS)
CPPFLAGS:= -I$(ZSTDDIR) -DXXH_NAMESPACE=ZSTD_
FLAGS   := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)


# Define *.exe as extension for Windows systems
ifneq (,$(filter Windows%,$(OS)))
EXT =.exe
else
EXT =
endif

.PHONY: default fullbench-dll fullbench-lib


default: all

all: fullbench-dll fullbench-lib


fullbench-lib: fullbench.c datagen.c
	$(CC) $(FLAGS) $^ -o $@$(EXT) $(LIBDIR)/libzstd_static.lib

fullbench-dll: fullbench.c datagen.c
	$(CC) $(FLAGS) $^ -o $@$(EXT) -DZSTD_DLL_IMPORT=1 $(DLLDIR)/libzstd.dll

clean:
	@$(RM) fullbench-dll$(EXT) fullbench-lib$(EXT) \
	@echo Cleaning completed

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
zstd-ruby-1.3.1.1 ext/zstdruby/libzstd/dll/example/Makefile
zstd-ruby-1.3.1.0 ext/zstdruby/libzstd/dll/example/Makefile
zstd-ruby-1.3.0.0 ext/zstdruby/libzstd/dll/example/Makefile
zstd-ruby-1.2.0.0 ext/zstdruby/libzstd/dll/example/Makefile
zstd-1.1.2.1 ext/zstd/libzstd/dll/example/Makefile
zstd-ruby-1.1.4.0 ext/zstdruby/libzstd/dll/example/Makefile
zstd-ruby-1.1.3.0 ext/zstdruby/libzstd/dll/example/Makefile
zstd-ruby-0.1.2 ext/zstdruby/libzstd/dll/example/Makefile
zstd-ruby-0.1.1 ext/zstdruby/libzstd/dll/example/Makefile
zstd-ruby-0.1.0 ext/zstdruby/libzstd/dll/example/Makefile
zstd-1.1.2.0 ext/zstd/libzstd/dll/example/Makefile