# This Makefile can be used with GNU Make or BSD Make LIB = libsphincs-shake-256s-simple_clean.a HEADERS = address.h api.h context.h fors.h hash.h merkle.h nistapi.h params.h shake_offsets.h thash.h utils.h utilsx1.h wots.h wotsx1.h OBJECTS = address.o context_shake.o fors.o hash_shake.o merkle.o sign.o thash_shake_simple.o utils.o utilsx1.o wots.o wotsx1.o CFLAGS = -std=c99 -O3 -Wall -Wconversion -Werror -Wextra -Wmissing-prototypes -Wpedantic -Wredundant-decls -I../../../common $(EXTRAFLAGS) all: $(LIB) %.o: %.c $(HEADERS) $(CC) $(CFLAGS) -c -o $@ $< $(LIB): $(OBJECTS) $(AR) -r $@ $(OBJECTS) clean: $(RM) $(OBJECTS) $(RM) $(LIB)