CFLAGS ?= -O3 -march=native -std=gnu11 -Wall -Wextra -Wno-unused-parameter
all: svy-cpuminer smw_test
svy-cpuminer: svy-cpuminer.c smw_core.c smw_core.h jsmn_min.h
	$(CC) $(CFLAGS) -o $@ svy-cpuminer.c smw_core.c -lpthread -lssl -lcrypto
smw_test: smw_test.c smw_core.c smw_core.h
	$(CC) $(CFLAGS) -o $@ smw_test.c smw_core.c
clean:
	rm -f svy-cpuminer smw_test
