| 1 |
# Makefile for cipher modules |
| 2 |
# Copyright (C) 2008 Free Software Foundation, Inc. |
| 3 |
# |
| 4 |
# This file is part of Libgcrypt. |
| 5 |
# |
| 6 |
# Libgcrypt is free software; you can redistribute it and/or modify |
| 7 |
# it under the terms of the GNU Lesser General Public License as |
| 8 |
# published by the Free Software Foundation; either version 2.1 of |
| 9 |
# the License, or (at your option) any later version. |
| 10 |
# |
| 11 |
# Libgcrypt is distributed in the hope that it will be useful, |
| 12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
# GNU Lesser General Public License for more details. |
| 15 |
# |
| 16 |
# You should have received a copy of the GNU Lesser General Public |
| 17 |
# License along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 18 |
|
| 19 |
# Process this file with automake to produce Makefile.in |
| 20 |
|
| 21 |
# Need to include ../src in addition to top_srcdir because gcrypt.h is |
| 22 |
# a built header. |
| 23 |
AM_CPPFLAGS = -I../src -I$(top_srcdir)/src |
| 24 |
AM_CFLAGS = $(GPG_ERROR_CFLAGS) |
| 25 |
|
| 26 |
noinst_LTLIBRARIES = librandom.la |
| 27 |
|
| 28 |
GCRYPT_MODULES = @GCRYPT_RANDOM@ |
| 29 |
|
| 30 |
librandom_la_DEPENDENCIES = $(GCRYPT_MODULES) |
| 31 |
librandom_la_LIBADD = $(GCRYPT_MODULES) |
| 32 |
|
| 33 |
librandom_la_SOURCES = \ |
| 34 |
random.c random.h \ |
| 35 |
rand-internal.h \ |
| 36 |
random-csprng.c \ |
| 37 |
random-drbg.c \ |
| 38 |
random-system.c \ |
| 39 |
rndjent.c \ |
| 40 |
rndhw.c |
| 41 |
|
| 42 |
EXTRA_librandom_la_SOURCES = \ |
| 43 |
rndgetentropy.c \ |
| 44 |
rndoldlinux.c \ |
| 45 |
rndegd.c \ |
| 46 |
rndunix.c \ |
| 47 |
rndw32.c \ |
| 48 |
jitterentropy-gcd.c jitterentropy-gcd.h \ |
| 49 |
jitterentropy-health.c jitterentropy-health.h \ |
| 50 |
jitterentropy-noise.c jitterentropy-noise.h \ |
| 51 |
jitterentropy-sha3.c jitterentropy-sha3.h \ |
| 52 |
jitterentropy-timer.c jitterentropy-timer.h \ |
| 53 |
jitterentropy-base.h \ |
| 54 |
jitterentropy-base.c jitterentropy.h jitterentropy-base-user.h |
| 55 |
|
| 56 |
# The rndjent module needs to be compiled without optimization. */ |
| 57 |
if ENABLE_O_FLAG_MUNGING |
| 58 |
o_flag_munging = sed -e 's/[[:blank:]]-O\([1-9sgz][1-9sgz]*\)/ -O0 /g' -e 's/[[:blank:]]-Ofast/ -O0 /g' |
| 59 |
else |
| 60 |
o_flag_munging = cat |
| 61 |
endif |
| 62 |
|
| 63 |
rndjent.o: $(srcdir)/rndjent.c jitterentropy-base-user.h \ |
| 64 |
$(srcdir)/jitterentropy-gcd.c $(srcdir)/jitterentropy-gcd.h \ |
| 65 |
$(srcdir)/jitterentropy-health.c $(srcdir)/jitterentropy-health.h \ |
| 66 |
$(srcdir)/jitterentropy-noise.c $(srcdir)/jitterentropy-noise.h \ |
| 67 |
$(srcdir)/jitterentropy-sha3.c $(srcdir)/jitterentropy-sha3.h \ |
| 68 |
$(srcdir)/jitterentropy-timer.c $(srcdir)/jitterentropy-timer.h \ |
| 69 |
$(srcdir)/jitterentropy-base.c $(srcdir)/jitterentropy.h |
| 70 |
`echo $(COMPILE) -c $(srcdir)/rndjent.c | $(o_flag_munging) ` |
| 71 |
|
| 72 |
rndjent.lo: $(srcdir)/rndjent.c jitterentropy-base-user.h \ |
| 73 |
$(srcdir)/jitterentropy-gcd.c $(srcdir)/jitterentropy-gcd.h \ |
| 74 |
$(srcdir)/jitterentropy-health.c $(srcdir)/jitterentropy-health.h \ |
| 75 |
$(srcdir)/jitterentropy-noise.c $(srcdir)/jitterentropy-noise.h \ |
| 76 |
$(srcdir)/jitterentropy-sha3.c $(srcdir)/jitterentropy-sha3.h \ |
| 77 |
$(srcdir)/jitterentropy-timer.c $(srcdir)/jitterentropy-timer.h \ |
| 78 |
$(srcdir)/jitterentropy-base.c $(srcdir)/jitterentropy.h |
| 79 |
`echo $(LTCOMPILE) -c $(srcdir)/rndjent.c | $(o_flag_munging) ` |