zstd/contrib/adaptive-compression/Makefile

35 lines
1.1 KiB
Makefile
Raw Normal View History

ZSTDDIR = ../../lib
ZSTDCOMMON_FILES := $(ZSTDDIR)/common/*.c
ZSTDCOMP_FILES := $(ZSTDDIR)/compress/*.c
ZSTDDECOMP_FILES := $(ZSTDDIR)/decompress/*.c
ZSTD_FILES := $(ZSTDDECOMP_FILES) $(ZSTDCOMMON_FILES) $(ZSTDCOMP_FILES)
DEBUGFLAGS= -g -DZSTD_DEBUG=1
CPPFLAGS += -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/compress \
-I$(ZSTDDIR)/dictBuilder -I$(ZSTDDIR)/deprecated -I$(PRGDIR)
CFLAGS ?= -O3
CFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
-Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
-Wstrict-prototypes -Wundef -Wformat-security \
-Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
-Wredundant-decls
CFLAGS += $(DEBUGFLAGS)
CFLAGS += $(MOREFLAGS)
FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
2017-07-05 16:57:50 +00:00
all: clean single multi
single: $(ZSTD_FILES) single.c
2017-07-03 21:18:46 +00:00
$(CC) $(FLAGS) $^ -o $@
2017-07-05 16:57:50 +00:00
multi: $(ZSTD_FILES) multi.c
$(CC) $(FLAGS) $^ -o $@
clean:
2017-07-05 16:57:50 +00:00
@$(RM) -f single multi
2017-07-03 21:18:46 +00:00
@$(RM) -rf *.dSYM
@$(RM) -f tmp*
2017-07-05 21:36:09 +00:00
@$(RM) -f tests/*.zst
@$(RM) -f tests/tmp*
@echo "finished cleaning"