Skip to content

Commit

Permalink
Merge pull request dsprenkels#26 from evanmcc/make-portability
Browse files Browse the repository at this point in the history
Make portability
  • Loading branch information
Daan Sprenkels authored May 22, 2019
2 parents 2c3ef24 + bcc9cce commit 50f71ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ CFLAGS += -g -O2 -m64 -std=c99 -pedantic \
-D_FORTIFY_SOURCE=2 -fPIC -fno-strict-overflow
SRCS = hazmat.c randombytes.c sss.c tweetnacl.c
OBJS := ${SRCS:.c=.o}
UNAME_S := $(shell uname -s)

all: libsss.a

libsss.a: randombytes/librandombytes.a $(OBJS)
$(AR) -rcs libsss.a $^
ifeq ($(UNAME_S),Linux)
$(AR) -rcs libsss.a $^
endif
ifeq ($(UNAME_S),Darwin)
libtool -static -o libsss.a $^
endif

randombytes/librandombytes.a:
$(MAKE) -C randombytes librandombytes.a
Expand Down

0 comments on commit 50f71ee

Please sign in to comment.