## 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 cocodir = $(libdir)/intercomlayer coco_LTLIBRARIES = libTrdCommandCoder.la libTrdCommandCoder_la_SOURCES = TRDCommandCoder.cc \ TrdFeeCommandCoder.cc \ ErrorRetriever.cc noinst_HEADERS = TRDCommandCoder.h \ TrdFeeCommandCoder.hh \ ErrorRetriever.hh \ TrdException.hh dist_noinst_DATA = trd-commandcoder.spec bin_PROGRAMS = scc scc_SOURCES = scc.cc scc_LDADD = libTrdCommandCoder.la -lACE #scc_LDFLAGS = -Wl,-rpath,$(cocodir) -lCommandCoder 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