Also use CFLAGS in the linking phase.

This commit is contained in:
default 2022-10-28 21:55:36 +02:00
parent 4aad0ad417
commit 9de7175503

View File

@ -4,7 +4,7 @@ CFLAGS=-g -Wall
all: snac
snac: snac.o main.o data.o http.o httpd.o webfinger.o activitypub.o html.o utils.o format.o
$(CC) -L/usr/local/lib *.o -lcurl -lcrypto -pthread -o $@
$(CC) $(CFLAGS) -L/usr/local/lib *.o -lcurl -lcrypto -pthread -o $@
.c.o:
$(CC) $(CFLAGS) -I/usr/local/include -c $<