diff --git a/Makefile b/Makefile index 4c61c66..ba448d5 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,14 @@ CC = cc CFLAGS = -std=c11 -Wall -Wextra -O3 -mcx16 -pthread LDFLAGS = -pthread + +PLATFORM := $(shell uname) + +ifeq ($(PLATFORM),Darwin) +LDLIBS = -latomic_ops +else LDLIBS = -latomic +endif objects = main.o lstack.o sha1.o