Commit | Line | Data |
---|---|---|
0f00dc4c MW |
1 | ### -*-makefile-*- |
2 | ### | |
3 | ### Build script for basic utilities | |
4 | ### | |
5 | ### (c) 2013 Straylight/Edgeware | |
6 | ### | |
7 | ||
8 | ###----- Licensing notice --------------------------------------------------- | |
9 | ### | |
10 | ### This file is part of Catacomb. | |
11 | ### | |
12 | ### Catacomb is free software; you can redistribute it and/or modify | |
13 | ### it under the terms of the GNU Library General Public License as | |
14 | ### published by the Free Software Foundation; either version 2 of the | |
15 | ### License, or (at your option) any later version. | |
16 | ### | |
17 | ### Catacomb is distributed in the hope that it will be useful, | |
18 | ### but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | ### GNU Library General Public License for more details. | |
21 | ### | |
22 | ### You should have received a copy of the GNU Library General Public | |
23 | ### License along with Catacomb; if not, write to the Free | |
24 | ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, | |
25 | ### MA 02111-1307, USA. | |
26 | ||
27 | include $(top_srcdir)/vars.am | |
28 | ||
29 | noinst_LTLIBRARIES = libbase.la | |
30 | libbase_la_SOURCES = | |
31 | ||
28363d2c MW |
32 | TEST_LIBS = libbase.la |
33 | ||
0f00dc4c MW |
34 | ###-------------------------------------------------------------------------- |
35 | ### Component files. | |
36 | ||
37 | ## The locked-memory arena. | |
38 | pkginclude_HEADERS += arena.h | |
39 | libbase_la_SOURCES += arena.c | |
40 | ||
41 | ## Constant-type operations. | |
42 | pkginclude_HEADERS += ct.h | |
1aaccf40 | 43 | libbase_la_SOURCES += ct.c ct-test.c |
0f00dc4c | 44 | |
d3f33b9a MW |
45 | ## Bit permutations. |
46 | pkginclude_HEADERS += permute.h | |
47 | ||
08e2be29 MW |
48 | ## CPU-specific dispatch. |
49 | pkginclude_HEADERS += dispatch.h | |
50 | libbase_la_SOURCES += dispatch.c | |
a3ad4421 MW |
51 | if CPUFAM_X86 |
52 | libbase_la_SOURCES += dispatch-x86ish.S | |
53 | endif | |
54 | if CPUFAM_AMD64 | |
55 | libbase_la_SOURCES += dispatch-x86ish.S | |
56 | endif | |
08e2be29 | 57 | |
0f00dc4c MW |
58 | ## Acceptable key-size descriptions. |
59 | pkginclude_HEADERS += keysz.h | |
60 | libbase_la_SOURCES += keysz.c keysz-conv.c | |
61 | ||
62 | ## System-level memory locking. | |
63 | pkginclude_HEADERS += lmem.h | |
64 | libbase_la_SOURCES += lmem.c | |
65 | ||
66 | ## Clearing secrets from memory. | |
67 | pkginclude_HEADERS += paranoia.h | |
68 | ||
28363d2c MW |
69 | ## Reservoir handling. |
70 | pkginclude_HEADERS += rsvr.h | |
71 | libbase_la_SOURCES += rsvr.c | |
72 | TESTS += rsvr.t$(EXEEXT) | |
73 | EXTRA_DIST += t/rsvr | |
74 | ||
1a0c09c4 MW |
75 | ## Base definitions for assembler source. |
76 | EXTRA_DIST += asm-common.h | |
77 | ||
4bc8424a MW |
78 | if ASM_DEBUG |
79 | libbase_la_SOURCES += regdump.c regdump.h | |
80 | if CPUFAM_X86 | |
81 | libbase_la_SOURCES += regdump-x86ish.S | |
82 | endif | |
83 | if CPUFAM_AMD64 | |
84 | libbase_la_SOURCES += regdump-x86ish.S | |
85 | endif | |
86 | if CPUFAM_ARMEL | |
87 | libbase_la_SOURCES += regdump-arm.S | |
88 | endif | |
89 | if CPUFAM_ARM64 | |
90 | libbase_la_SOURCES += regdump-arm64.S | |
91 | endif | |
92 | endif | |
93 | ||
0f00dc4c | 94 | ###----- That's all, folks -------------------------------------------------- |