## Makefile.am -- Process this file with automake to produce Makefile.in # Please read the libtool manual before changing the version number! # http://www.gnu.org/software/libtool/manual.html#Versioning libTrdCommandCoder_la_LDFLAGS = -version-info $(LIB_VERSION) # Directory for command coders lib_LTLIBRARIES = libTrdCommandCoder.la libTrdCommandCoder_la_SOURCES = TrdFeeCommandCoder.cc \ CacheManager.cc \ ErrorRetriever.cc \ RocInfo.cc \ WingDB.cc \ CoCoFacade.cc dist_noinst_HEADERS = TrdFeeCommandCoder.hh \ CacheManager.hh \ ErrorRetriever.hh \ RocInfo.hh \ TrdException.hh \ WingDB.hh \ CoCoFacade.h dist_noinst_DATA = trd-commandcoder.spec bin_PROGRAMS = scc #dimcoco scc_SOURCES = scc.cc scc_LDADD = libTrdCommandCoder.la -lrt #dimcoco_SOURCES = dimcoco.cc #dimcoco_LDADD = libTrdCommandCoder.la -lrt rpm: make dist rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz .PHONY: svnversion.h.tmp svnversion.h.tmp: rm -f $@ echo '#ifndef TRD_FEE_COCO_SVNVERSION_H' >> $@ echo '#define TRD_FEE_COCO_SVNVERSION_H' >> $@ echo '#define SVNREPO "'`svn info | awk '/^URL/ {print $$2}'`'"' >> $@ echo '#define SVNREL "'`svnversion .`'"' >> $@ echo '#endif' >> $@ svnversion.h: svnversion.h.tmp if [ ! -f $@ ] ; then cp $< $@; fi if [ x"`diff $< $@`" != x ] ; then cp $< $@; fi