aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--config.mk5
-rw-r--r--src/Makefile3
3 files changed, 7 insertions, 7 deletions
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