also support signing
[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 if WITH_OPENSSL
17 libd0_blind_id_la_SOURCES += d0_bignum-openssl.c
18 else
19 libd0_blind_id_la_SOURCES += d0_bignum-gmp.c
20 endif
21 libd0_blind_id_la_LDFLAGS = -versioninfo 3:0:3
22 libd0_blind_id_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
23 library_includedir = $(includedir)/d0_blind_id
24 library_include_HEADERS = d0_blind_id.h d0.h
25 pkgconfigdir = $(libdir)/pkgconfig
26 pkgconfig_HEADERS = d0_blind_id.pc
27
28 if ENABLE_RIJNDAEL
29 lib_LTLIBRARIES += libd0_rijndael.la
30 libd0_rijndael_la_SOURCES = d0_rijndael.c \
31                             d0_rijndael.h
32 libd0_rijndael_la_LDFLAGS = -versioninfo 0:0:0
33 libd0_rijndael_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
34 library_include_HEADERS += d0_rijndael.h
35 pkgconfig_HEADERS += d0_rijndael.pc
36 endif