aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
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