Merge branch 'Lyberta/VersionInfo' into 'master'
[xonotic/d0_blind_id.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 bin_PROGRAMS = blind_id
4 blind_id_SOURCES = main.c
5 blind_id_LDADD = libd0_blind_id.la
6
7 lib_LTLIBRARIES = libd0_blind_id.la
8 # version-info:
9 #   - compatible interface change: c:r:a -> c+1:0:a+1
10 #   - incompatible interface change: c:r:a -> c+1:0:0
11 #   - internal change: c:r:a -> c:r+1:a
12
13 libd0_blind_id_la_SOURCES = d0_blind_id.c d0.c d0_iobuf.c sha2.c \
14                             d0_blind_id.h d0.h d0_iobuf.h sha2.h \
15                             d0_bignum.h
16
17 if WITH_TOMMATH
18 libd0_blind_id_la_SOURCES += d0_bignum-tommath.c
19 libd0_blind_id_la_CPPFLAGS = -DTOMMATH
20 else
21 if WITH_TOMSFASTMATH
22 libd0_blind_id_la_SOURCES += d0_bignum-tommath.c
23 libd0_blind_id_la_CPPFLAGS = -DTOMSFASTMATH
24 else
25 if WITH_OPENSSL
26 libd0_blind_id_la_SOURCES += d0_bignum-openssl.c
27 else
28 libd0_blind_id_la_SOURCES += d0_bignum-gmp.c
29 endif
30 endif
31 endif
32 libd0_blind_id_la_LDFLAGS = -version-info 7:1:7
33 libd0_blind_id_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
34 library_includedir = $(includedir)/d0_blind_id
35 library_include_HEADERS = d0_blind_id.h d0.h
36 pkgconfigdir = $(libdir)/pkgconfig
37 pkgconfig_HEADERS = d0_blind_id.pc
38
39 if ENABLE_RIJNDAEL
40 lib_LTLIBRARIES += libd0_rijndael.la
41 libd0_rijndael_la_SOURCES = d0_rijndael.c \
42                             d0_rijndael.h
43 libd0_rijndael_la_LDFLAGS = -version-info 0:0:0
44 libd0_rijndael_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
45 library_include_HEADERS += d0_rijndael.h
46 pkgconfig_HEADERS += d0_rijndael.pc
47 endif
48
49 EXTRA_DIST = d0_blind_id.txt autogen.sh