Skip to content

Commit

Permalink
Make the blake-related target equal to the created shared-object file
Browse files Browse the repository at this point in the history
... so to allow make to detect that the target is already built.
  • Loading branch information
Luca Favatella committed Nov 10, 2017
1 parent 3baa8a4 commit ec5b0e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ before_script:
- LIBP="$(pwd)/src"
- echo "The library path variable value is ${LIBP:?}"
script:
- ( cd src && make blake2b; )
- ( cd src && make libblake2b.so; )
- if test quick = "${JOB:?}"; then ( cd src && env ${LIBV:?}="${LIBP:?}" make test example; ); fi
- if test demo30 = "${JOB:?}"; then ( cd src && env ${LIBV:?}="${LIBP:?}" make demo30; ); fi
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ CFLAGS = -Wall -Wno-format -fomit-frame-pointer $(OPT)
GCC = gcc -m64 -std=gnu11 $(CFLAGS)
LIBS = -L. -lblake2b

all : blake2b test example lean28stx8 mean28 lean30stx8 mean30 lean32stx8 mean32 verify28 verify30 verify32 demo30
all : libblake2b.so test example lean28stx8 mean28 lean30stx8 mean30 lean32stx8 mean32 verify28 verify30 verify32 demo30

blake2b: blake2.h blake2-impl.h blake2b-ref.c
libblake2b.so: blake2.h blake2-impl.h blake2b-ref.c
$(GCC) -fPIC -shared -o libblake2b.so blake2b-ref.c
echo "add build dir to LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH on Mac OSX) if library not found"

Expand Down

0 comments on commit ec5b0e1

Please sign in to comment.