2022-03-10 13:09:41 +01:00
|
|
|
noinst_LIBRARIES = libbip.a libbiplex.a
|
2018-11-12 00:16:14 +01:00
|
|
|
|
2022-03-10 13:09:41 +01:00
|
|
|
libbiplex_a_SOURCES = \
|
|
|
|
conf.y lex.l
|
|
|
|
|
|
|
|
# Not adding AM_CFLAGS here, because many debian flex releases generate code
|
|
|
|
# that compares signed and unsigned integers. It looks like this issue is
|
|
|
|
# fixed by flex 2.6.5 which is unreleased.
|
|
|
|
libbiplex_a_CFLAGS = $(OPENSSL_CFLAGS)
|
|
|
|
|
|
|
|
libbip_a_SOURCES = \
|
2018-11-12 00:16:14 +01:00
|
|
|
bip.c bip.h \
|
|
|
|
connection.c connection.h \
|
|
|
|
defaults.h \
|
|
|
|
irc.c irc.h \
|
|
|
|
line.c line.h \
|
|
|
|
log.c log.h \
|
|
|
|
md5.c md5.h \
|
|
|
|
path_util.c path_util.h \
|
|
|
|
tuple.h \
|
2022-01-02 14:16:10 +01:00
|
|
|
util.c util.h \
|
|
|
|
utils/base64.c utils/base64.h
|
2018-11-12 00:16:14 +01:00
|
|
|
|
2018-12-12 02:05:14 +01:00
|
|
|
libbip_a_CFLAGS = ${OPENSSL_CFLAGS} $(AM_CFLAGS)
|
2018-11-18 21:37:46 +01:00
|
|
|
|
2018-11-12 00:16:14 +01:00
|
|
|
bin_PROGRAMS = bip bipmkpw
|
|
|
|
|
|
|
|
bip_SOURCES = bip_main.c
|
2018-12-12 02:05:14 +01:00
|
|
|
bip_CFLAGS = ${OPENSSL_CFLAGS} $(AM_CFLAGS)
|
2022-03-10 13:09:41 +01:00
|
|
|
bip_LDADD = libbip.a libbiplex.a ${OPENSSL_LIBS}
|
2018-11-12 00:16:14 +01:00
|
|
|
|
|
|
|
bipmkpw_SOURCES = bipmkpw.c md5.c util.c
|
2018-12-12 02:05:14 +01:00
|
|
|
bipmkpw_CFLAGS = ${OPENSSL_CFLAGS} $(AM_CFLAGS)
|
2022-03-10 13:09:41 +01:00
|
|
|
bipmkpw_LDADD = libbip.a libbiplex.a $(OPENSSL_LIBS)
|
|
|
|
|
2018-11-12 00:16:14 +01:00
|
|
|
AM_YFLAGS= -d
|
|
|
|
BUILT_SOURCES = conf.c conf.h lex.c
|
2018-12-11 11:12:08 +01:00
|
|
|
|
2022-01-06 21:34:55 +01:00
|
|
|
AM_CFLAGS=-Wall -Wextra -Werror \
|
|
|
|
-O2 \
|
|
|
|
-D_FORTIFY_SOURCE=2 \
|
|
|
|
-fstack-protector-strong -fstack-clash-protection \
|
|
|
|
-Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,separate-code \
|
|
|
|
-Wpedantic -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-security -Wnull-dereference -Wstack-protector -Wtrampolines -Walloca -Wvla -Warray-bounds=2 -Wimplicit-fallthrough=3 -Wtraditional-conversion -Wshift-overflow=2 -Wcast-qual -Wstringop-overflow=4 -Wconversion -Warith-conversion -Wlogical-op -Wduplicated-cond -Wduplicated-branches -Wformat-signedness -Wshadow -Wstrict-overflow=4 -Wundef -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wstack-usage=1000000 -Wcast-align=strict
|