From ae06c0483f3e48ff664da4678e519e9a69cd453b Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 4 Apr 2023 23:53:08 +0200 Subject: Move variables in config.mk --- Makefile | 7 +------ config.mk | 10 ++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 config.mk diff --git a/Makefile b/Makefile index 494f29a..7edbff9 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,8 @@ # See LICENSE file for copyright and license details. -CC = cc -SRC != find src -name "*.c" -OBJ = ${SRC:.c=.o} +include config.mk -LIBNAME = liblog -LIBVER = 0.0.0-a1 -CFLAGS = -Wall -ansi --std=c89 -pedantic ${OPT} -DLIBVER=\"${LIBVER}\" dist: static shared diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..17be91f --- /dev/null +++ b/config.mk @@ -0,0 +1,10 @@ +# See LICENSE file for copyright and license details. + +CC = cc +SRC != find src -name "*.c" +OBJ = ${SRC:.c=.o} + +LIBNAME = liblog +LIBVER = 0.0.0-a1 + +CFLAGS = -Wall -ansi --std=c89 -pedantic ${OPT} -DLIBVER=\"${LIBVER}\" \ No newline at end of file -- cgit v1.2.3