fix build of rijndael lib
[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_bignum-gmp.c d0_blind_id.c d0.c d0_iobuf.c sha2.c
14 libd0_blind_id_la_LDFLAGS = -versioninfo 2:0:2
15 libd0_blind_id_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
16 library_includedir = $(includedir)/d0_blind_id
17 library_include_HEADERS = d0_blind_id.h d0.h
18 pkgconfigdir = $(libdir)/pkgconfig
19 pkgconfig_HEADERS = d0_blind_id.pc
20
21 if ENABLE_RIJNDAEL
22 lib_LTLIBRARIES += libd0_rijndael.la
23 libd0_rijndael_la_SOURCES = d0_rijndael.c
24 libd0_rijndael_la_LDFLAGS = -versioninfo 0:0:0
25 libd0_rijndael_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement
26 library_include_HEADERS += d0_rijndael.h
27 pkgconfig_HEADERS += d0_rijndael.pc
28 endif