aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2022-10-05 00:12:06 +0200
committerGravatar Tim Segers <tsegers@pm.me>2022-10-05 22:00:40 +0200
commit1f2a309ea070d08f59821357f3b8690c954503a0 (patch)
tree9e340a5d9ae7128bdc6b94c1746925b572bd2992 /Makefile
parent5aab2fa8558dc9053eff79a3578854ba44f65b76 (diff)
downloadopendeco-1f2a309ea070d08f59821357f3b8690c954503a0.tar.gz
Add command line interface
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e8a1323..c5f698a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
+VERSION=\"$(shell git describe --tags --dirty)\"
+
opendeco: opendeco.c deco.c deco.h schedule.c schedule.h output.c output.h
- gcc --std=c99 -pedantic -Wall -Werror -O3 -lm opendeco.c deco.c schedule.c output.c -o opendeco
+ gcc --std=c99 -pedantic -Wall -Werror -O3 -lm -DVERSION=${VERSION} opendeco.c deco.c schedule.c output.c -o opendeco
run: opendeco
- ./opendeco
+ ./opendeco -d 30 -t 120 -g EAN32 --decogasses EAN50
clean:
rm opendeco