config.mk

This commit is contained in:
Timo Schmidt 2023-03-26 07:51:29 +02:00
parent 64ca327e50
commit e4128afd05
1 changed files with 33 additions and 0 deletions

33
ex00/config.mk Normal file
View File

@ -0,0 +1,33 @@
# Configuration for rush01's Makefile
# paths
PREFIX=~/.local
INCDIR=include
OBJDIR=obj
BUILDDIR=build
DIRS=
DIRS+=${INCDIR}
DIRS+=${OBJDIR}
DIRS+=${BUILDDIR}
# includes
INCS=-I${INCDIR}
# flags
CFLAGS=
CFLAGS+=-Wall
CFLAGS+=-Wextra
#CFLAGS+=-Werror
CFLAGS+=${INCS}
LDFLAGS=
# compiler and linker
CC=cc
# other executables
RM=/bin/rm -f
MKDIR=/bin/mkdir -p
CP=/bin/cp -f
CHMOD=/bin/chmod
$(shell mkdir -p $(DIRS))