Fixed Makefile

This commit is contained in:
Nate Choe
2022-02-15 16:48:17 -06:00
parent 8d1650299a
commit 978a6cbfd7

View File

@@ -1,6 +1,6 @@
SRC = $(wildcard src/*.c)
OBJ = $(subst .c,.o,$(subst src,work,$(SRC)))
LIBS = -pthread -pie -lrt $(shell pkg-config --libs gnutls)
LIBS = -pthread -pie -lrt -ldl $(shell pkg-config --libs gnutls)
CFLAGS := -O2 -pipe -Wall -Wpedantic -ansi
CFLAGS += -Isrc/ -fpie -D_POSIX_C_SOURCE=200809L $(shell pkg-config --cflags gnutls)
INSTALLDIR := /usr/sbin