refactor: slightly change api

This commit is contained in:
Jef Roosens 2023-01-18 14:12:02 +01:00
parent 30e086ad6b
commit 11709cc611
5 changed files with 35 additions and 32 deletions

View file

@ -1,3 +1,6 @@
# https://spin.atomicobject.com/2016/08/26/makefile-c-projects/ was a great
# base for this Makefile
LIB_FILENAME ?= libvieter.a
BUILD_DIR ?= build
@ -22,7 +25,8 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
# object file is also recompiled if only a header is changed.
# -MP: generate a dummy target for every header file (according to the docs it
# prevents some errors when removing header files)
CFLAGS ?= $(INC_FLAGS) -MMD -MP -Wall -Werror -Wextra
CFLAGS ?= -MMD -MP -Wall -Werror -Wextra
CFLAGS += $(INC_FLAGS)
.PHONY: all
all: vieter