Commit Graph

29 Commits

Author SHA1 Message Date
Steffen Jaeckel
a42f467ff1 Update makefiles 2017-06-27 20:05:36 +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
Karel Miko
a0257df999 update makefiles 2017-06-22 13:19:47 +02:00
Karel Miko
f9802359c9 update makefiles 2017-06-22 13:19:47 +02:00
Steffen Jaeckel
8c11490e2d fix usage of PREFIX vs. DESTDIR
This closes #232
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
7597d20c78 use CROSS_COMPILE instead of PREFIX to indicate toolchain prefix 2017-06-20 15:16:11 +02:00
Steffen Jaeckel
b16066cbfc Add possibility to change install options
This closes #231
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
048cbc55b0 disable yet another warning 2017-06-15 00:46:50 +02:00
Steffen Jaeckel
5de7e58e84 disable yet another clang warning 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
73934ad2fd add ld option -pthread when LTC_PTHREAD is enabled 2017-06-12 17:19:43 +02:00
Karel Miko
2d8816607b update makefiles 2017-06-08 23:34:16 +02:00
Steffen Jaeckel
f47a71bc6c Update makefiles 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
e45e02d635 Update makefiles 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
40747cfcfd add a build-run with debugging-options 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
b83f9472c0 Update makefiles 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
70a27a852e Update makefiles 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
3f66f7df83 Update makefiles 2017-06-08 22:20:44 +02:00
Steffen Jaeckel
db5438ca55 don't build openssl-enc for tests 2017-06-08 22:19:48 +02:00
Steffen Jaeckel
08a461b39c also build openssl-enc 2017-06-08 21:32:10 +02:00
Kelvin Sherlock
9913c1dcb8 AIX and OS X (and maybe BSD) sh has a built-in echo which doesn’t support the -n flag (OS X sh is actually bash but it doesn’t support -n based on compile-time flags and the POSIXLY_CORRECT environment variable).
AIX /bin/echo doesn’t support -n.

AIX echo and OS X /bin/echo support \c to prevent a trailing newline but linux echo (bash builtin and /bin/echo) don’t support it unless you also use the -e flag (which is not support by AIX /bin/echo or OS X sh or /bin/echo).

The BSD echo man page suggests using printf to avoid trailing newline, which is available on linux, OS X, and AIX.
2017-05-22 17:30:30 -04:00
Steffen Jaeckel
6a4978ef5e better EXTRALIBS 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
81f0297285 small fix-ups 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
7379c94f0a merge .include and .common makefiles 2017-05-11 23:04:37 +02:00