Commit graph

116 commits

Author SHA1 Message Date
orbea
d2f50cc16d makefile.shared: Don't use libtool
Gentoo Bug: https://bugs.gentoo.org/777084
2025-09-04 20:59:48 +02:00
Steffen Jaeckel
88dcebdbf5 Rework demos building and installation
* add `ltc` wrapper script for installed demos
* rework demos/CMakeLists.txt and add some more bells and whistles
* prefix installed demos with `ltc-`

Currently this makes the standard makefiles and CMake results diverge, but
we can fix that later if required.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-12-05 17:23:12 +01:00
Steffen Jaeckel
dc945f9697 Add LTC_PTHREAD to pkg-config file if enabled at build time
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-11-20 13:11:59 +01:00
Steffen Jaeckel
2400883060 Remove remaining footers
Fixes 24765c30c5

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-11-20 12:59:49 +01:00
Steffen Jaeckel
7a38fca62a Fix some pkg-config related things
* use a separate `libtomcrypt` folder to install the headers to
* use `INCPATH` and `LIBPATH` when installing `libtomcrypt.pc`
* fix `libtomcrypt.pc` generation for `makefile.unix`

This fixes #625

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-08-07 11:37:19 +02:00
Steffen Jaeckel
9e0a131b2c introduce separate aes_desc
`aes_desc` and `aes_enc_desc` now do auto-detection of the best suitable
AES implementation for the platform.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-06-22 18:37:25 +02:00
Steffen Jaeckel
4767558fd0 Add correct MPI provider defines to pkg-config cflags
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-06-19 20:24:03 +02:00
Steffen Jaeckel
2c3a5fd0ac update Libs part of pkg-config file with configured MPI providers
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-06-19 19:18:28 +02:00
Steffen Jaeckel
cdc1dbe6f5 port cmake integration changes from libtommath
... also enable building of tests.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2022-10-05 14:49:54 +02:00
Steffen Jaeckel
c117cd8a85 add comment indicating supported platforms of makefile.shared 2021-04-10 13:02:39 +02:00
Biswapriyo Nath
e86dbc4591
Makefile: Fix shared library build in MinGW.
This enables -no-undefined linker flag in mingw toolchain.
Previous related commit 9c2c9f8af4
2021-03-28 22:06:52 +05:30
Steffen Jaeckel
4b3ef78901 TGTLIBTOOL wasn't always defined 2019-06-04 08:50:27 +02:00
orbea
ccc18b9eda makefile.shared: Support rlibtool.
When building libtomcrypt with rlibtool instead of libtool it will fail
when rlibtool fails to parse the generated libtool which does not exist.

Since rlibtool should be the default choice for most slibtool users in
the future this patch will use slibtool-shared instead which will
correctly build the shared library.

This could also help build the shared library on additional targets and
hosts where the stock libtool does not have shared libraries enabled.
2018-09-06 18:19:10 +02:00
orbea
f2918866bc makefile.shared: Respect LIBTOOL. 2018-05-19 08:36:41 -07:00
Steffen Jaeckel
fc6eb3ecf0 add -p switch to install commands in GNU makefiles
This fixes #340

[skip ci]
2018-01-21 13:23:14 +01:00
Steffen Jaeckel
196f25e32f there should be no need to pass CFLAGS when linking 2017-12-10 12:35:59 +01:00
Karel Miko
9c2c9f8af4 libtool on cygwin needs -no-undefined 2017-09-27 21:25:19 +02:00
Andrew Janke
39c721c8da makefile.shared: protect commas in function calls through variable substitution 2017-08-31 05:51:37 -04:00
Steffen Jaeckel
ab8c5b8b49 fix help of {un,}install targets 2017-07-20 12:58:28 +02:00
Steffen Jaeckel
24c5b74193 introduce 'make help' 2017-07-17 13:36:34 +02:00
Steffen Jaeckel
bffaab4eed re-group demos and really build everything in 'all' target 2017-07-17 13:36:34 +02:00
Steffen Jaeckel
b1c0227d54 introduce LTC_CFLAGS and LTC_LDFLAGS 2017-07-11 15:33:33 +02:00
Steffen Jaeckel
dd5996dd1f don't find the lo's to link, but use the list of objects 2017-07-10 10:20:36 +02:00
Steffen Jaeckel
221f7f223d add 'uninstall' make target
[skip ci]
2017-07-10 10:16:35 +02:00
Steffen Jaeckel
e53858c740 update VERSION variables in makefiles
VERSION is now VERSION_PC
the new VERSION contains the entire string of SCRYPT
2017-07-05 14:30:17 +02:00
Steffen Jaeckel
e68d846429 hopefully finally fix usage of $(DESTDIR)
This closes #232
2017-06-23 14:05:57 +02:00
Steffen Jaeckel
09c4d4c93b proper use of $(DESTDIR)
@rofl0r @ [1]

"...still it's unusual/unexpected to embed DESTDIR in LIBPATH
etc. where this could hickup is when for example hardcoded paths need
to be embedded into the resulting binary. for example, in the
netbsd-curses makefile i linked earlier, such a case would be reference
to the terminfo DB location, which is derived from PREFIX.
other possible cases might be stuff that dlopen()s its own libs using an
absolute path, or uses other data files. for such a case a contributor
would typically re-use DATAPATH oslt and put it into CPPFLAGS or write
it into a header, to find the required files. when now these paths have
DESTDIR in them too, this will not work. thus it is good practice to use
$(DESTDIR) only in install targets, and keep it out of other vars."


[1] 8e29a6061f (commitcomment-22678488)

This closes #232
2017-06-22 14:21:14 +02:00
Steffen Jaeckel
fe19dad623 replace SVN tags 2017-06-20 15:16:11 +02:00
Steffen Jaeckel
8c11490e2d fix usage of PREFIX vs. DESTDIR
This closes #232
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
a0e5c2e4ff add some makefile docs 2017-06-15 00:46:50 +02:00
Steffen Jaeckel
3995f971d7 make sure to use makefile.shared on Mac 2017-06-15 00:46:50 +02:00
Steffen Jaeckel
fe0b72ef51 remove dependency of demos to tests/common 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
e1a1145802 rename 'testprof/' to 'tests/' 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
07ffa0f1a2 remove tomcrypt_prof test-only library 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
201681ee3b merge testprof/timing_test.c into demos/timing.c 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
eaf20dda5b demos must now link against testprof/common.o 2017-06-08 22:20:44 +02:00
Bernhard M. Wiedemann
704055810f sort input files
when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would differ.

See https://reproducible-builds.org/ for why this matters.
2017-05-29 14:58:07 +02:00
Steffen Jaeckel
7379c94f0a merge .include and .common makefiles 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
ea67579298 further clean-up
- improve doc generation
- update version handling
  no need for VERSION_{MAJ,MIN}
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
6cd8f2504b clean-up some makefiles
move shared variables between makefile and makefile.shared
  to makefile.include
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
d996958133 move biggest part of install rules to makefile.common 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
794a416715 fix libtomcrypt.pc installation 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
abe9116de5 introduce makefile.common 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
ee0874b50b minor improvements 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
3c5ec6b699 split-out binary installation in separate install target 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
6e484cd420 use make internal macros 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
8ee458b625 don't include testprof for library build
...well msvc still does it as I can't test it...
2017-05-11 23:04:37 +02:00
Steffen Jaeckel
1b71e23e42 fix some testprof related errors 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
3fd1771d35 also install useful demos 2017-05-11 23:04:37 +02:00
Karel Miko
bf45ea66e5 drop the need for testprof/makefile* 2017-05-11 23:04:37 +02:00