DIRS variable

This commit is contained in:
Timo Schmidt 2023-03-19 03:37:12 +01:00
parent 0be8415502
commit ea972a25b7
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ PREFIX = ~/.local
INCDIR = include INCDIR = include
OBJDIR = obj OBJDIR = obj
BUILDDIR = build BUILDDIR = build
DIRS = ${INCDIR} ${OBJDIR} ${BUILDDIR}
# includes # includes
INCS = -I${INCDIR} INCS = -I${INCDIR}
@ -14,3 +15,5 @@ CFLAGS = -Wall -Wextra -Werror ${INCS}
# compiler and linker # compiler and linker
CC = cc CC = cc
$(shell mkdir -p $(DIRS))