Files
sss/Makefile
Daan Sprenkels b536d6f0f1 travis: add new configuration
This commit enables travis-ci on linux and osx
with memory checking only enabled on linux.
2017-04-25 18:53:56 +02:00

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