mirror of
https://github.com/dsprenkels/sss.git
synced 2026-01-10 06:07:59 -05:00
This commit enables travis-ci on linux and osx with memory checking only enabled on linux.
23 lines
418 B
Makefile
23 lines
418 B
Makefile
CFLAGS = -Wall -g -O2
|
|
SRCS = hazmat.c randombytes.c sss.c keccak.c tweetnacl.c
|
|
OBJS := ${SRCS:.c=.o}
|
|
|
|
all: libsss.a
|
|
|
|
libsss.a: $(OBJS)
|
|
$(AR) -rcs libsss.a $^
|
|
|
|
%.out: %.o
|
|
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS)
|
|
$(MEMCHECK) ./$@
|
|
|
|
test_sss.out: $(OBJS)
|
|
test_hazmat.out: $(filter-out hazmat.o,$(OBJS))
|
|
|
|
.PHONY: test
|
|
test: test_hazmat.out test_sss.out
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) *.o *.gch *.a *.out
|