aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-23 09:37:53 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-23 09:37:53 +0200
commitb98f270b28eff320f8c97e074944867121b8d858 (patch)
tree86436f4b105b22a8f1762f8567d23185cd7a9645 /Makefile
parentdec884d42f7591cb94a6636a304d87c798bdd3fc (diff)
downloadtoolame-dab-b98f270b28eff320f8c97e074944867121b8d858.tar.gz
toolame-dab-b98f270b28eff320f8c97e074944867121b8d858.tar.bz2
toolame-dab-b98f270b28eff320f8c97e074944867121b8d858.zip
Show git version in usage screen
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0b0c4d0..a030e68 100644
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,8 @@ c_sources = \
OBJ = $(c_sources:.c=.o)
+GIT_VER = -DGIT_VERSION="\"`sh git-version.sh`\""
+
#Uncomment this if you want to do some profiling/debugging
#PG = -g -pg
PG = -g -fomit-frame-pointer
@@ -74,7 +76,7 @@ PG = -g -fomit-frame-pointer
OPTIM = -O2
# These flags are pretty much mandatory
-REQUIRED = -DINLINE=inline
+REQUIRED = -DINLINE=inline ${GIT_VER}
#pick your architecture
ARCH = -march=native