1AM_CFLAGS = -Bsymbolic -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -Werror-implicit-function-declaration -std=c99 -D_POSIX_C_SOURCE=200112 -D_ISOC99_SOURCE -Wl,--as-needed -Wl,--no-undefined -fno-asynchronous-unwind-tables
2
3
4SUBDIRS = . test
5
6lib_LTLIBRARIES = libiec16022.la
7
8libiec16022include_HEADERS =	\
9	iec16022ecc200.h		\
10	image.h				\
11	reedsol.h
12
13libiec16022includedir = $(includedir)/iec16022
14
15libiec16022_la_LDFLAGS = -version-number $(LT_VERSION_C):$(LT_VERSION_R):$(LT_VERSION_A)
16
17bin_PROGRAMS = iec16022
18check_PROGRAMS = iec16022
19EXTRA_PROGRAMS = fuzzer
20
21man_MANS = iec16022.1
22
23iec16022_SOURCES =	\
24	iec16022.c
25
26iec16022_LDADD =	\
27	libiec16022.la  \
28	-lpopt
29
30fuzzer_SOURCES = fuzzer.c
31fuzzer_LDADD = $(iec16022_LDADD)
32
33libiec16022_la_SOURCES =	\
34	iec16022ecc200.c	\
35	iec16022ecc200.h	\
36	image.c			\
37	image.h			\
38	reedsol.c		\
39	reedsol.h
40
41EXTRA_DIST =				\
42	autogen.sh			\
43	autogen-clean.sh		\
44	iec16022.1.in			\
45	libiec16022.pc.in		\
46	test/testsuite.sh		\
47	test/testsuite-example.bin	\
48	test/testsuite-example.eps	\
49	test/testsuite-example.hex	\
50	test/testsuite-example.png	\
51	test/testsuite-example.text	\
52	test/testsuite-example.utf8	\
53	$(man_MANS)
54
55pkgconfigdir = $(prefix)/libdata/pkgconfig
56pkgconfig_DATA= libiec16022.pc
57
58iec16022.signed.exe: .libs/iec16022.exe
59	osslsigncode sign -ts http://timestamp.globalsign.com/scripts/timestamp.dll -certs $(SIGNKEY).crt -key $(SIGNKEY).key -in $^ -out $@
60