99122c43ff15077f8e30c8e4e5db005c280fff46
[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 # versioninfo:
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 else
20 if WITH_OPENSSL
21 libd0_blind_id_la_SOURCES += d0_bignum-openssl.c
22 else
23 libd0_blind_id_la_SOURCES += d0_bignum-gmp.c
24 endif
25 endif
26 libd0_blind_id_la_LDFLAGS = -versioninfo 7:0:7
27 libd0_blind_id_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
28 library_includedir = $(includedir)/d0_blind_id
29 library_include_HEADERS = d0_blind_id.h d0.h
30 pkgconfigdir = $(libdir)/pkgconfig
31 pkgconfig_HEADERS = d0_blind_id.pc
32
33 if ENABLE_RIJNDAEL
34 lib_LTLIBRARIES += libd0_rijndael.la
35 libd0_rijndael_la_SOURCES = d0_rijndael.c \
36                             d0_rijndael.h
37 libd0_rijndael_la_LDFLAGS = -versioninfo 0:0:0
38 libd0_rijndael_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
39 library_include_HEADERS += d0_rijndael.h
40 pkgconfig_HEADERS += d0_rijndael.pc
41 endif
42
43 EXTRA_DIST = d0_blind_id.txt autogen.sh