Commit Graph

101 Commits

Author SHA1 Message Date
Steffen Jaeckel
4800543664 add -p switch to install commands in GNU makefiles
This fixes #340

[skip ci]

(cherry picked from commit fc6eb3ecf07e1cceb5ce85907db8191877704570)
2018-01-22 10:05:03 +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
Steffen Jaeckel
7898864b24 use glibtool on Macs 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
d21d01bcb5 consolidate makefiles a bit 2017-05-11 23:04:37 +02:00
Karel Miko
28835a513f update makefiles 2017-04-28 19:24:58 +02:00
Karel Miko
f767ea3dcd update makefiles 2017-04-23 23:27:54 +02:00
Kelvin Sherlock
b412ab539a update makefiles for blake2b. 2017-04-08 15:44:30 -04:00
Kelvin Sherlock
b0e9a23e31 makefile updates. 2017-04-07 23:47:16 -04:00
Karel Miko
eefb8dc479 renaming prngs/chacha.c prngs/chacha20.c 2017-04-03 22:54:27 +02:00
Karel Miko
3cfb58c2f4 update makefiles 2017-04-02 18:13:45 +02:00
Karel Miko
ff6abc776c RFC 7539 - ChaCha20 and Poly1305 + chacha based PRNG 2017-04-02 18:13:45 +02:00
Steffen Jaeckel
59b4026fa7 Update makefiles 2017-03-30 22:29:02 +02:00
Steffen Jaeckel
ac7915ed13 Update makefiles 2017-03-30 18:46:05 +02:00
Karel Miko
c6a0362c88 SHA3 2017-03-29 13:44:04 +02:00
Steffen Jaeckel
d153d1303a Update makefiles 2017-03-28 22:57:22 +02:00
Steffen Jaeckel
ba338eced8 also build executables in makefile.shared from template 2017-03-24 16:42:49 +01:00
Steffen Jaeckel
27f8e8bf75 Update makefiles 2017-03-22 11:24:21 +01:00