zstd/contrib/long_distance_matching/Makefile

44 lines
1.5 KiB
Makefile
Raw Normal View History

2017-07-05 20:57:07 +00:00
# ################################################################
# 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.
# ################################################################
# This Makefile presumes libzstd is installed, using `sudo make install`
CPPFLAGS+= -I../../lib/common
CFLAGS ?= -O3
DEBUGFLAGS = -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
-Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
-Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security \
-Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
-Wredundant-decls
CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
FLAGS = $(CPPFLAGS) $(CFLAGS)
2017-07-05 20:57:07 +00:00
2017-07-06 14:30:49 +00:00
LDFLAGS += -lzstd
2017-07-05 20:57:07 +00:00
.PHONY: default all clean
default: all
2017-07-21 17:44:39 +00:00
all: main-circular-buffer main-integrated main-64
2017-07-05 20:57:07 +00:00
2017-07-24 19:40:59 +00:00
main-circular-buffer: ldm_common.c circular_buffer_table.c ldm.c main-ldm.c
2017-07-17 18:53:54 +00:00
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
2017-07-24 19:40:59 +00:00
main-64: ldm_common.c ldm_64_hash.c main-ldm.c
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
2017-07-24 19:40:59 +00:00
main-integrated: ldm_common.c ldm_integrated.c main-ldm.c
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
2017-07-05 20:57:07 +00:00
clean:
@rm -f core *.o tmp* result* *.ldm *.ldm.dec \
main-circular-buffer main-64 main-integrated
2017-07-05 20:57:07 +00:00
@echo Cleaning completed