OPT := -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto -fuse-linker-plugin CFLAGS := $(OPT) -Wall -Wextra -std=c17 LDFLAGS := $(OPT) d01: CFLAGS += $(shell pkg-config --cflags openssl) -pthread d01: LDLIBS += $(shell pkg-config --libs openssl) programs := $(patsubst %.c, %, $(wildcard *.c)) .PHONY: all all: $(programs) .PHONY: clean clean: rm -f $(programs)