aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-04-04 23:53:08 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-04-04 23:53:08 +0200
commitae06c0483f3e48ff664da4678e519e9a69cd453b (patch)
tree17a4fb853dc03b28c650f2afc75aaa768910a783
parente389fbbfeee4b750e2c41f15dfd320a104c1ed06 (diff)
downloadlog-ae06c0483f3e48ff664da4678e519e9a69cd453b.tar.gz
log-ae06c0483f3e48ff664da4678e519e9a69cd453b.zip
Move variables in config.mk
-rw-r--r--Makefile7
-rw-r--r--config.mk10
2 files changed, 11 insertions, 6 deletions
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