aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-10 21:33:25 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-10 21:33:25 +0100
commitb0113afac2a68066fafbb2796963fa2cb72ac638 (patch)
tree5d19ddf394ff655dfb28d7d9972db9ca108a9de3 /Makefile.am
parenta0603c8b1285d649fff786172769d0ad4637a32e (diff)
downloadODR-AudioEnc-b0113afac2a68066fafbb2796963fa2cb72ac638.tar.gz
ODR-AudioEnc-b0113afac2a68066fafbb2796963fa2cb72ac638.tar.bz2
ODR-AudioEnc-b0113afac2a68066fafbb2796963fa2cb72ac638.zip
Add version number to the programs
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am51
1 files changed, 30 insertions, 21 deletions
diff --git a/Makefile.am b/Makefile.am
index 459e61d..bf31fdd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,12 @@
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = subdir-objects
+if IS_GIT_REPO
+GITVERSION_FLAGS = -DGITVERSION="\"`git describe`\""
+else
+GITVERSION_FLAGS =
+endif
+
AM_CPPFLAGS = \
-I$(top_srcdir)/libAACdec/include \
-I$(top_srcdir)/libAACenc/include \
@@ -37,27 +43,30 @@ libfdk_aac_la_LDFLAGS = -version-info @FDK_AAC_VERSION@ -no-undefined \
#aac_enc_SOURCES = src/aac-enc.c \
# src/wavreader.c
-dabplus_enc_file_LDADD = libfdk-aac.la -lfec
-dabplus_enc_file_SOURCES = src/dabplus-enc-file.c \
- src/wavreader.c
-
-dabplus_enc_file_zmq_LDADD = libfdk-aac.la -lfec -lzmq
-dabplus_enc_file_zmq_SOURCES = src/dabplus-enc-file-zmq.c \
- src/wavreader.c \
- contrib/lib_crc.h \
- contrib/lib_crc.c
-
-dabplus_enc_alsa_zmq_LDFLAGS = -no-install
-dabplus_enc_alsa_zmq_LDADD = libfdk-aac.la -lfec -lzmq -lasound \
- -lrt -lboost_thread
-dabplus_enc_alsa_zmq_SOURCES = src/AlsaDabplus.cpp \
- src/AlsaInput.cpp \
- src/AlsaInput.h \
- src/SampleQueue.h \
- src/zmq.hpp
-
-
-mot_encoder_CFLAGS = @MAGICKWAND_CFLAGS@ -Icontrib
+dabplus_enc_file_LDADD = libfdk-aac.la -lfec
+dabplus_enc_file_CFLAGS = $(AM_CPPFLAGS) $(GITVERSION_FLAGS)
+dabplus_enc_file_SOURCES = src/dabplus-enc-file.c \
+ src/wavreader.c
+
+dabplus_enc_file_zmq_LDADD = libfdk-aac.la -lfec -lzmq
+dabplus_enc_file_zmq_CFLAGS = $(AM_CPPFLAGS) $(GITVERSION_FLAGS)
+dabplus_enc_file_zmq_SOURCES = src/dabplus-enc-file-zmq.c \
+ src/wavreader.c \
+ contrib/lib_crc.h \
+ contrib/lib_crc.c
+
+dabplus_enc_alsa_zmq_LDFLAGS = -no-install
+dabplus_enc_alsa_zmq_LDADD = libfdk-aac.la -lfec -lzmq -lasound \
+ -lrt -lboost_thread
+dabplus_enc_alsa_zmq_CPPFLAGS = $(AM_CPPFLAGS) $(GITVERSION_FLAGS)
+dabplus_enc_alsa_zmq_SOURCES = src/AlsaDabplus.cpp \
+ src/AlsaInput.cpp \
+ src/AlsaInput.h \
+ src/SampleQueue.h \
+ src/zmq.hpp
+
+
+mot_encoder_CFLAGS = $(GITVERSION_FLAGS) @MAGICKWAND_CFLAGS@ -Icontrib
mot_encoder_LDADD = @MAGICKWAND_LDADD@
mot_encoder_SOURCES = src/mot-encoder.c \
contrib/lib_crc.h \