From e4128afd05647b4e1ec2f12c1c50cc009b141e9e Mon Sep 17 00:00:00 2001 From: Timo Schmidt Date: Sun, 26 Mar 2023 07:51:29 +0200 Subject: [PATCH] config.mk --- ex00/config.mk | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ex00/config.mk diff --git a/ex00/config.mk b/ex00/config.mk new file mode 100644 index 0000000..0aea22f --- /dev/null +++ b/ex00/config.mk @@ -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))