# AEAntivirus macOS daemon — build on a Mac with Xcode command line tools.
#
#   make          # builds ./aeantivirusd
#   make clean
#
CC      = clang
CFLAGS  = -O2 -Wall -Wextra -std=c11
LDFLAGS = -framework CoreServices -lcurl

OBJS = aeantivirusd.o sha256.o

all: aeantivirusd

aeantivirusd: $(OBJS)
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f aeantivirusd *.o

.PHONY: all clean
