-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathMakefile.am
29 lines (21 loc) · 1.48 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
bin_PROGRAMS = tls-scan
tls_scan_SOURCES = main.c common.c cert-parser.c gnutls13.c proto-adapters.c
TS_VERSION = $(shell grep -m 1 Version $(top_srcdir)/CHANGELOG | awk '{print $$2}')
TS_BUILD_DATE = $(shell date '+%Y-%m-%d')
TS_OS = $(shell uname -s)
TS_ARCH = $(shell uname -p)
AM_CPPFLAGS = -I$(top_srcdir)/include -I build-root/include -I build-root/include -Wall -Wundef -Wshadow -Wunreachable-code -Wswitch-default -Wcast-align -pedantic -g -std=c99 -D_GNU_SOURCE -DTS_VERSION=\"$(TS_VERSION)\" -DTS_BUILD_DATE=\"$(TS_BUILD_DATE)\" -DTS_OS=\"$(TS_OS)\" -DTS_ARCH=\"$(TS_ARCH)\"
if LINUX_AMD64
LDADD = build-root/lib/libssl.a build-root/lib/libcrypto.a build-root/lib/libevent.a build-root/lib/libevent_openssl.a build-root/lib/libgnutls.a build-root/lib64/libhogweed.a build-root/lib64/libnettle.a build-root/lib/libz.a -ldl -lrt
endif
if LINUX_ARM64
LDADD = build-root/lib/libssl.a build-root/lib/libcrypto.a build-root/lib/libevent.a build-root/lib/libevent_openssl.a build-root/lib/libgnutls.a build-root/lib/libhogweed.a build-root/lib/libnettle.a build-root/lib/libz.a -ldl -lrt
endif
if DARWIN_AMD64
LDADD = build-root/lib/libssl.a build-root/lib/libcrypto.a build-root/lib/libevent.a build-root/lib/libevent_openssl.a build-root/lib/libgnutls.a build-root/lib/libhogweed.a build-root/lib/libnettle.a -ldl
AM_LDFLAGS = -lz -framework Security -framework CoreFoundation
endif
myconfdir = $(sysconfdir)/tls-scan
myconf_DATA = ca-bundle.crt
man1_MANS = man/tls-scan.1
EXTRA_DIST = build-x86-64.sh