forked from vieter-v/libvieter
refactor: slightly change api
This commit is contained in:
parent
30e086ad6b
commit
11709cc611
5 changed files with 35 additions and 32 deletions
6
Makefile
6
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue