]> git.proxmox.com Git - ceph.git/blob - ceph/src/zstd/contrib/long_distance_matching/Makefile
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / zstd / contrib / long_distance_matching / Makefile
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
12 CPPFLAGS+= -I../../lib/common
13 CFLAGS ?= -O3
14 DEBUGFLAGS = -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
19 CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
20 FLAGS = $(CPPFLAGS) $(CFLAGS)
21
22 LDFLAGS += -lzstd
23
24 .PHONY: default all clean
25
26 default: all
27
28 all: ldm
29
30 ldm: ldm_common.c ldm.c main.c
31 $(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
32
33 clean:
34 @rm -f core *.o tmp* result* *.ldm *.ldm.dec \
35 ldm
36 @echo Cleaning completed