From 1f2a309ea070d08f59821357f3b8690c954503a0 Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Wed, 5 Oct 2022 00:12:06 +0200 Subject: Add command line interface --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2