-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
executable file
·65 lines (53 loc) · 1.64 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## SPDX-License-Identifier: GPL-3.0-or-later
## Makefile.am for bef project
## Copyright (C) 2024 gbletr42
##
## This program is free software: you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by the Free
## Software Foundation, either version 3 of the License, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
## more details.
##
## You should have received a copy of the GNU General Public License along with
## this program. If not, see <https://www.gnu.org/licenses/>.
AUTOMAKE_OPTIONS = subdir-objects
CFLAGS += -Wall -Wextra -Wpedantic -Wno-sign-compare -Wpadded -Wcast-align -Wstrict-aliasing -Wpointer-arith -Winit-self -Wshadow -Wswitch-enum -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wfloat-equal -Wundef -Wdeclaration-after-statement -Wvla $(OPENMP_CFLAGS)
CXXFLAGS += $(CFLAGS)
bin_PROGRAMS = bef
bef_SOURCES = src/bef.c src/bef_cmd.c src/zfec.c
bef_LDADD = -lxxhash
if BLAKE3
bef_LDADD += -lblake3
endif
if ZLIBNG
bef_LDADD += -lz-ng
else
if ZLIB
bef_LDADD += -lz
endif
endif
if OPENSSL
bef_LDADD += -lcrypto
endif
if LIBERASURECODE
bef_LDADD += -lerasurecode
endif
if CM256CC
bef_CXXFLAGS = $(CXXFLAGS) -DUSE_SSSE3 #won't build on Arch otherwise...
bef_SOURCES += src/cm256.cc
bef_LDADD += -lcm256cc -lstdc++
endif
if OPENFEC
bef_LDADD += -lopenfec
endif
if LEOPARD
bef_LDADD += -lleopard
endif
if WIREHAIR
bef_LDADD += -lwirehair
endif
man_MANS = doc/bef.1