diff --git a/SAS/OTDB/include/OTDB/Makefile.am b/SAS/OTDB/include/OTDB/Makefile.am
index 4e3bc23357e91b1a8e38529f99081a057779a7f1..2156bb2bc86c0db2968f5e966e22ea313f117b2c 100644
--- a/SAS/OTDB/include/OTDB/Makefile.am
+++ b/SAS/OTDB/include/OTDB/Makefile.am
@@ -1,4 +1,4 @@
-pkginclude_HEADERS 	= 	Converter.h \
+pkginclude_HEADERS 	= Package__Version.h  	Converter.h \
 				ClassifConv.h \
 				ParamTypeConv.h \
 				TreeStateConv.h \
diff --git a/SAS/OTDB/src/Makefile.am b/SAS/OTDB/src/Makefile.am
index 777f575387f3424a97202d4bed0920ea81bb70d3..1715edc5bcc4c5cac9f1711fdf9cb08c18393a3b 100644
--- a/SAS/OTDB/src/Makefile.am
+++ b/SAS/OTDB/src/Makefile.am
@@ -1,6 +1,6 @@
 lib_LTLIBRARIES			= libotdb.la
 
-libotdb_la_SOURCES 		= $(DOCHDRS) \
+libotdb_la_SOURCES 		= Package__Version.cc  $(DOCHDRS) \
 							OTDBconnection.cc	\
 							misc.cc \
 							OTDBtree.cc	\
@@ -20,4 +20,10 @@ libotdb_la_SOURCES 		= $(DOCHDRS) \
 #						    OTDBevent.cc	\
 #						    OTDBeventList.cc	
 
+bin_PROGRAMS = versionotdb
+
+versionotdb_SOURCES      = versionotdb.cc
+versionotdb_LDADD        = libotdb.la
+versionotdb_DEPENDENCIES = libotdb.la $(LOFAR_DEPEND)
+
 include $(top_srcdir)/Makefile.common