# Included by all module and cli Makefiles. # Each including Makefile must set ROOT before including this file: # ROOT := $(abspath ) CC = gcc CFLAGS = -std=c11 -Wall -Wextra -D_GNU_SOURCE -flto -I$(ROOT)/include BUILD = $(ROOT)/build # Automatic dependency generation. # -MMD emit a .d file listing header prerequisites alongside each .o # -MP add phony targets for headers so removed headers don't break make DEPFLAGS = -MMD -MP