From eba9c5000b1b15ba150366975fedad1613978443 Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 20 Jan 2024 16:27:03 +0100 Subject: makefile: Move configuration to config.mk --- Makefile | 6 +----- config.mk | 5 +++++ src/Makefile | 3 +-- 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 config.mk diff --git a/Makefile b/Makefile index c493c37..215ec63 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,4 @@ -PROGRAM_NAME=diff-dd -PROGRAM_VERSION=2.0.0 - -export PROGRAM_NAME -export PROGRAM_VERSION +include config.mk all: $(MAKE) -C src all diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..b993552 --- /dev/null +++ b/config.mk @@ -0,0 +1,5 @@ +PROGRAM_NAME = diff-dd +PROGRAM_VERSION = 2.0.0 + +CC=g++ +CFLAGS=-Wall -fmax-errors=2 diff --git a/src/Makefile b/src/Makefile index 7aa7e25..2f6ec09 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,4 @@ -CC=g++ -CFLAGS=-Wall -fmax-errors=2 +include ../config.mk SOURCES=*.cpp HEADERS=*.h -- cgit v1.2.3