Files
sss/Makefile
2017-04-11 19:47:46 +02:00

19 lines
286 B
Makefile

CFLAGS = -Wall -g -O2 -pedantic
SRCS = sss.c hazmat.c tweetnacl.c
OBJS := ${SRCS:.c=.o}
all: libsss.a
libsss.a: $(OBJS)
$(AR) -rcs libsss.a $^
%.out: %.o
$(CC) -o $@ $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS)
./$@
test: test_hazmat.out
.PHONY: clean
clean:
$(RM) *.o *.gch *.a *.out