]> git.proxmox.com Git - ceph.git/blame - ceph/src/zstd/contrib/long_distance_matching/Makefile
import 12.2.13 release
[ceph.git] / ceph / src / zstd / contrib / long_distance_matching / Makefile
CommitLineData
b9c3bfeb
TL
1# ################################################################
2# Copyright (c) 2017-present, Facebook, Inc.
3# All rights reserved.
4#
5# This source code is licensed under both the BSD-style license (found in the
6# LICENSE file in the root directory of this source tree) and the GPLv2 (found
7# in the COPYING file in the root directory of this source tree).
8# ################################################################
9
10# This Makefile presumes libzstd is installed, using `sudo make install`
11
12CPPFLAGS+= -I../../lib/common
13CFLAGS ?= -O3
14DEBUGFLAGS = -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
15 -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
16 -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security \
17 -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
18 -Wredundant-decls
19CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
20FLAGS = $(CPPFLAGS) $(CFLAGS)
21
22LDFLAGS += -lzstd
23
24.PHONY: default all clean
25
26default: all
27
28all: ldm
29
30ldm: ldm_common.c ldm.c main.c
31 $(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
32
33clean:
34 @rm -f core *.o tmp* result* *.ldm *.ldm.dec \
35 ldm
36 @echo Cleaning completed