## Makefile.am
##
## Automake.am for rivendell/lib
##
## (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
##
##   This program is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License version 2 as
##   published by the Free Software Foundation.
##
##   This program is distributed in the hope that it will be useful,
##   but WITHOUT ANY WARRANTY; without even the implied warranty of
##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##   GNU General Public License for more details.
##
##   You should have received a copy of the GNU General Public
##   License along with this program; if not, write to the Free Software
##   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
##
## Use automake to process this into a Makefile.in

AM_CPPFLAGS = -Wall -DPREFIX=\"$(prefix)\" @QT5_CFLAGS@ @MUSICBRAINZ_CFLAGS@ -Wno-strict-aliasing -std=c++11 -fPIC -I/usr/include/taglib @IMAGEMAGICK_CFLAGS@
MOC = @QT_MOC@
CWRAP = ../helpers/cwrap

# The dependency for qt's Meta Object Compiler (moc)
moc_%.cpp:	%.h
	$(MOC) $< -o $@

# I18N Stuff
install-exec-local:	
	../helpers/rdi18n_helper.sh --install librd $(DESTDIR)$(prefix)/share/rivendell

uninstall-local:
	../helpers/rdi18n_helper.sh --uninstall librd $(DESTDIR)$(prefix)/share/rivendell

all:	
	../helpers/rdi18n_helper.sh --update librd $(DESTDIR)$(prefix)/share/rivendell

lib_LTLIBRARIES = librd.la
dist_librd_la_SOURCES = dbversion.h\
                        gpio.h\
                        export_bmiemr.cpp\
                        export_cutlog.cpp\
                        export_deltaflex.cpp\
                        export_musicclassical.cpp\
                        export_musicplayout.cpp\
                        export_musicsummary.cpp\
                        export_nprsoundex.cpp\
                        export_radiotraffic.cpp\
                        export_resultsrecon.cpp\
                        export_soundex.cpp\
                        export_spincount.cpp\
                        export_technical.cpp\
                        export_textlog.cpp\
                        rd.h\
                        rdadd_cart.cpp rdadd_cart.h\
                        rdadd_log.cpp rdadd_log.h\
                        rdairplay_conf.cpp rdairplay_conf.h\
                        rdapplication.cpp rdapplication.h\
                        rdaudio_exists.cpp rdaudio_exists.h\
                        rdaudio_port.cpp rdaudio_port.h\
                        rdaudioconvert.cpp rdaudioconvert.h\
                        rdaudioexport.cpp rdaudioexport.h\
                        rdaudioimport.cpp rdaudioimport.h\
                        rdaudioinfo.cpp rdaudioinfo.h\
                        rdaudiosettings.cpp rdaudiosettings.h\
                        rdaudiostore.cpp rdaudiostore.h\
                        rdbipushbutton.cpp rdbipushbutton.h\
                        rdbusybar.cpp rdbusybar.h\
                        rdbusydialog.cpp rdbusydialog.h\
                        rdbutton_dialog.cpp rdbutton_dialog.h\
                        rdbutton_panel.cpp rdbutton_panel.h\
                        rdcae.cpp rdcae.h\
                        rdcardselector.cpp rdcardselector.h\
                        rdcart.cpp rdcart.h\
                        rdcart_dialog.cpp rdcart_dialog.h\
                        rdcart_search_text.cpp rdcart_search_text.h\
                        rdcartdrag.cpp rdcartdrag.h\
                        rdcartfilter.cpp rdcartfilter.h\
                        rdcartslot.cpp rdcartslot.h\
                        rdcastsearch.cpp rdcastsearch.h\
                        rdcatch_conf.cpp rdcatch_conf.h\
                        rdcatchevent.cpp rdcatchevent.h\
                        rdcutlistmodel.cpp rdcutlistmodel.h\
                        rdcddblookup.cpp rdcddblookup.h\
                        rdcdplayer.cpp rdcdplayer.h\
                        rdcdripper.cpp rdcdripper.h\
                        rdcheck_version.cpp rdcheck_version.h\
                        rdclock.cpp rdclock.h\
                        rdclockmodel.cpp rdclockmodel.h\
                        rdcmd_cache.cpp rdcmd_cache.h\
                        rdcmd_switch.cpp rdcmd_switch.h\
                        rdcodetrap.cpp rdcodetrap.h\
                        rdcombobox.cpp rdcombobox.h\
                        rdconf.cpp rdconf.h\
                        rdconfig.cpp rdconfig.h\
                        rdcopyaudio.cpp rdcopyaudio.h\
                        rdcoreapplication.cpp rdcoreapplication.h\
                        rdcsv.cpp rdcsv.h\
                        rdcueedit.cpp rdcueedit.h\
                        rdcueeditdialog.cpp rdcueeditdialog.h\
                        rdcut.cpp rdcut.h\
                        rdcut_dialog.cpp rdcut_dialog.h\
                        rdcut_path.cpp rdcut_path.h\
                        rddatedecode.cpp rddatedecode.h\
                        rddatedialog.cpp rddatedialog.h\
                        rddateedit.cpp rddateedit.h\
                        rddatetimeedit.cpp rddatetimeedit.h\
                        rddatepicker.cpp rddatepicker.h\
		        rddb.h rddb.cpp\
                        rddbheartbeat.cpp rddbheartbeat.h\
                        rddatapacer.cpp rddatapacer.h\
                        rddatetime.cpp rddatetime.h\
                        rddebug.cpp rddebug.h\
                        rddeck.cpp rddeck.h\
                        rddelete.cpp rddelete.h\
                        rddialog.cpp rddialog.h\
                        rddisclookup.cpp rddisclookup.h\
                        rddisclookup_factory.cpp rddisclookup_factory.h\
                        rddiscrecord.cpp rddiscrecord.h\
                        rddiscmodel.cpp rddiscmodel.h\
                        rddownload.cpp rddownload.h\
                        rddropbox.cpp rddropbox.h\
                        rddropboxlistmodel.cpp rddropboxlistmodel.h\
                        rddummylookup.cpp rddummylookup.h\
                        rdedit_panel_name.cpp rdedit_panel_name.h\
                        rdemptycart.cpp rdemptycart.h\
                        rdendpointlistmodel.cpp rdendpointlistmodel.h\
                        rdescape_string.cpp rdescape_string.h\
                        rdevent.cpp rdevent.h\
                        rdevent_line.cpp rdevent_line.h\
                        rdevent_player.cpp rdevent_player.h\
                        rdeventimportlist.cpp rdeventimportlist.h\
                        rdexport_settings_dialog.cpp rdexport_settings_dialog.h\
                        rdfeed.cpp rdfeed.h\
                        rdfeedlistmodel.cpp rdfeedlistmodel.h\
                        rdfontengine.cpp rdfontengine.h\
                        rdformpost.cpp rdformpost.h\
                        rdflacdecode.cpp rdflacdecode.h\
                        rdframe.cpp rdframe.h\
                        rdgain_envelope.cpp rdgain_envelope.h\
                        rdget_ath.cpp rdget_ath.h\
                        rdgetpasswd.cpp rdgetpasswd.h\
                        rdgpio.cpp rdgpio.h\
                        rdgpiolistmodel.cpp rdgpiolistmodel.h\
                        rdgpiologmodel.cpp rdgpiologmodel.h\
                        rdgpioselector.cpp rdgpioselector.h\
                        rdgpioslotsmodel.cpp rdgpioslotsmodel.h\
                        rdgrid.cpp rdgrid.h\
                        rdgroup.cpp rdgroup.h\
                        rdgroup_list.cpp rdgroup_list.h\
                        rdgrouplistmodel.cpp rdgrouplistmodel.h\
                        rdhash.cpp rdhash.h\
                        rdhostvarlistmodel.cpp rdhostvarlistmodel.h\
                        rdidvalidator.cpp rdidvalidator.h\
                        rdiconengine.cpp rdiconengine.h\
                        rdimagemagick.cpp rdimagemagick.h\
                        rdimagepickerbox.cpp rdimagepickerbox.h\
                        rdimagepickermodel.cpp rdimagepickermodel.h\
                        rdimport_audio.cpp rdimport_audio.h\
                        rdinstancelock.cpp rdinstancelock.h\
                        rdjackclientlistmodel.cpp rdjackclientlistmodel.h\
                        rdkernelgpio.cpp rdkernelgpio.h\
                        rdlibrary_conf.cpp rdlibrary_conf.h\
                        rdlibrarymodel.cpp rdlibrarymodel.h\
                        rdlineedit.cpp rdlineedit.h\
                        rdlistselector.cpp rdlistselector.h\
                        rdlist_groups.cpp rdlist_groups.h\
                        rdlist_logs.cpp rdlist_logs.h\
                        rdlistsvcs.cpp rdlistsvcs.h\
                        rdlivewire.cpp rdlivewire.h\
                        rdlivewiredestination.cpp rdlivewiredestination.h\
                        rdlivewiresource.cpp rdlivewiresource.h\
                        rdlog.cpp rdlog.h\
                        rdlog_line.cpp rdlog_line.h\
                        rdlogedit_conf.cpp rdlogedit_conf.h\
                        rdlogeventdialog.cpp rdlogeventdialog.h\
                        rdlogfilter.cpp rdlogfilter.h\
                        rdlogimportmodel.cpp rdlogimportmodel.h\
                        rdloglock.cpp rdloglock.h\
                        rdloglistmodel.cpp rdloglistmodel.h\
                        rdlogmodel.cpp rdlogmodel.h\
                        rdlogplay.cpp rdlogplay.h\
                        rdmacro.cpp rdmacro.h\
                        rdmacro_event.cpp rdmacro_event.h\
                        rdmacrocartmodel.cpp rdmacrocartmodel.h\
                        rdmainwindow.cpp rdmainwindow.h\
                        rdmarker_bar.cpp rdmarker_bar.h\
                        rdmarkerdialog.cpp rdmarkerdialog.h\
                        rdmarkerplayer.cpp rdmarkerplayer.h\
                        rdmarkerreadout.cpp rdmarkerreadout.h\
                        rdmarkerview.cpp rdmarkerview.h\
                        rdmatrix.cpp rdmatrix.h\
                        rdmatrixlistmodel.cpp rdmatrixlistmodel.h\
                        rdmblookup.cpp rdmblookup.h\
                        rdmeteraverage.cpp rdmeteraverage.h\
                        rdmeterstrip.cpp rdmeterstrip.h\
                        rdmixer.cpp rdmixer.h\
                        rdmonitor_config.cpp rdmonitor_config.h\
			rdmp4.cpp rdmp4.h\
                        rdmulticaster.cpp rdmulticaster.h\
                        rdnodelistmodel.cpp rdnodelistmodel.h\
                        rdnodeslotsmodel.cpp rdnodeslotsmodel.h\
                        rdnotification.cpp rdnotification.h\
                        rdoneshot.cpp rdoneshot.h\
                        rdpam.cpp rdpam.h\
                        rdpanel_button.cpp rdpanel_button.h\
                        rdpasswd.cpp rdpasswd.h\
                        rdpaths.h\
                        rdplay_deck.cpp rdplay_deck.h\
                        rdplaymeter.cpp rdplaymeter.h\
                        rdpeaksexport.cpp rdpeaksexport.h\
                        rdpodcast.cpp rdpodcast.h\
                        rdpodcastfilter.cpp rdpodcastfilter.h\
                        rdpodcastlistmodel.cpp rdpodcastlistmodel.h\
                        rdportnames.cpp rdportnames.h\
                        rdprocess.cpp rdprocess.h\
                        rdprofile.cpp rdprofile.h\
                        rdpushbutton.cpp rdpushbutton.h\
                        rdpypadlistmodel.cpp rdpypadlistmodel.h\
                        rdrange.cpp rdrange.h\
                        rdrecording.cpp rdrecording.h\
                        rdrehash.cpp rdrehash.h\
                        rdrenderer.cpp rdrenderer.h\
                        rdreplcartlistmodel.cpp rdreplcartlistmodel.h\
                        rdreplicator.cpp rdreplicator.h\
                        rdreplicatorlistmodel.cpp rdreplicatorlistmodel.h\
                        rdreport.cpp rdreport.h\
                        rdresourcelistmodel.cpp rdresourcelistmodel.h\
                        rdringbuffer.cpp rdringbuffer.h\
                        rdripc.cpp rdripc.h\
                        rdrssschemas.cpp rdrssschemas.h\
                        rdrsscategorybox.cpp rdrsscategorybox.h\
                        rdschedcartlist.cpp rdschedcartlist.h\
                        rdschedcode.cpp rdschedcode.h\
                        rdschedcodelistmodel.cpp rdschedcodelistmodel.h\
                        rdschedcodes_dialog.cpp rdschedcodes_dialog.h\
                        rdschedruleslist.cpp rdschedruleslist.h\
                        rdsegmeter.cpp rdsegmeter.h\
                        rdsendmail.cpp rdsendmail.h\
                        rdservicelistmodel.cpp rdservicelistmodel.h\
                        rdsettings.cpp rdsettings.h\
                        rdsimpleplayer.cpp rdsimpleplayer.h\
                        rdslider.cpp rdslider.h\
                        rdslotbox.cpp rdslotbox.h\
                        rdslotbutton.cpp rdslotbutton.h\
                        rdslotdialog.cpp rdslotdialog.h\
                        rdslotoptions.cpp rdslotoptions.h\
                        rdsocket.cpp rdsocket.h\
                        rdsocketstrings.cpp rdsocketstrings.h\
                        rdsound_panel.cpp rdsound_panel.h\
                        rdstation.cpp rdstation.h\
                        rdstationlistmodel.cpp rdstationlistmodel.h\
                        rdstatus.cpp rdstatus.h\
                        rdstereometer.cpp rdstereometer.h\
                        rdstringlist.cpp rdstringlist.h\
                        rdsvc.cpp rdsvc.h\
                        rdsystem.cpp rdsystem.h\
                        rdsystemuser.cpp rdsystemuser.h\
                        rdtableview.cpp rdtableview.h\
                        rdtempdirectory.cpp rdtempdirectory.h\
                        rdtextfile.cpp rdtextfile.h\
                        rdtextvalidator.cpp rdtextvalidator.h\
                        rdtimeedit.cpp rdtimeedit.h\
                        rdtimeengine.cpp rdtimeengine.h\
                        rdtimeprobe.cpp rdtimeprobe.h\
                        rdtrackereditdialog.cpp rdtrackereditdialog.h\
                        rdtrackermodel.cpp rdtrackermodel.h\
                        rdtrackertableview.cpp rdtrackertableview.h\
                        rdtrackerwidget.cpp rdtrackerwidget.h\
                        rdtranslator.cpp rdtranslator.h\
                        rdtransportbutton.cpp rdtransportbutton.h\
                        rdtransfer.cpp rdtransfer.h\
                        rdtreeview.cpp rdtreeview.h\
                        rdtrimaudio.cpp rdtrimaudio.h\
                        rdtty.cpp rdtty.h\
                        rdttydevice.cpp rdttydevice.h\
                        rdttyout.cpp rdttyout.h\
                        rdurl.cpp rdurl.h\
                        rdupload.cpp rdupload.h\
                        rdunixserver.cpp rdunixserver.h\
                        rdunixsocket.cpp rdunixsocket.h\
                        rduser.cpp rduser.h\
                        rduserlistmodel.cpp rduserlistmodel.h\
                        rdversion.cpp rdversion.h\
                        rdwavedata.cpp rdwavedata.h\
                        rdwavedata_dialog.cpp rdwavedata_dialog.h\
                        rdwavefactory.cpp rdwavefactory.h\
                        rdwavefile.cpp rdwavefile.h\
                        rdwavescene.cpp rdwavescene.h\
                        rdwavepainter.cpp rdwavepainter.h\
                        rdwavewidget.cpp rdwavewidget.h\
                        rdweb.cpp rdweb.h\
                        rdwebresult.cpp rdwebresult.h\
                        rdwidget.cpp rdwidget.h\
                        rdxport_interface.h


nodist_librd_la_SOURCES = moc_rdadd_cart.cpp\
                          moc_rdadd_log.cpp\
                          moc_rdapplication.cpp\
                          moc_rdaudioconvert.cpp\
                          moc_rdaudioexport.cpp\
                          moc_rdaudioimport.cpp\
                          moc_rdaudioinfo.cpp\
                          moc_rdaudiostore.cpp\
                          moc_rdbipushbutton.cpp\
                          moc_rdbusybar.cpp\
                          moc_rdbusydialog.cpp\
                          moc_rdbutton_dialog.cpp\
                          moc_rdcae.cpp\
                          moc_rdcardselector.cpp\
                          moc_rdcart_dialog.cpp\
                          moc_rdcartfilter.cpp\
                          moc_rdcartslot.cpp\
                          moc_rdcddblookup.cpp\
                          moc_rdcdplayer.cpp\
                          moc_rdcdripper.cpp\
                          moc_rdclockmodel.cpp\
                          moc_rdcodetrap.cpp\
                          moc_rdcombobox.cpp\
                          moc_rdcoreapplication.cpp\
                          moc_rdcueedit.cpp\
                          moc_rdcueeditdialog.cpp\
                          moc_rdcut_dialog.cpp\
                          moc_rdcutlistmodel.cpp\
                          moc_rddatapacer.cpp\
                          moc_rddatedialog.cpp\
                          moc_rddateedit.cpp\
                          moc_rddatetimeedit.cpp\
                          moc_rddatepicker.cpp\
                          moc_rddbheartbeat.cpp\
                          moc_rddelete.cpp\
                          moc_rddialog.cpp\
                          moc_rddisclookup.cpp\
                          moc_rddiscmodel.cpp\
                          moc_rddownload.cpp\
                          moc_rddropboxlistmodel.cpp\
                          moc_rddummylookup.cpp\
                          moc_rdedit_panel_name.cpp\
                          moc_rdemptycart.cpp\
                          moc_rdendpointlistmodel.cpp\
                          moc_rdevent_player.cpp\
                          moc_rdexport_settings_dialog.cpp\
                          moc_rdfeed.cpp\
                          moc_rdfeedlistmodel.cpp\
                          moc_rdframe.cpp\
                          moc_rdget_ath.cpp\
                          moc_rdgetpasswd.cpp\
                          moc_rdgpio.cpp\
                          moc_rdgpiolistmodel.cpp\
                          moc_rdgpiologmodel.cpp\
                          moc_rdgpioselector.cpp\
                          moc_rdgpioslotsmodel.cpp\
                          moc_rdgrouplistmodel.cpp\
                          moc_rdhostvarlistmodel.cpp\
                          moc_rdimagepickerbox.cpp\
                          moc_rdimagepickermodel.cpp\
                          moc_rdimport_audio.cpp\
                          moc_rdjackclientlistmodel.cpp\
                          moc_rdkernelgpio.cpp\
                          moc_rdlibrarymodel.cpp\
                          moc_rdlineedit.cpp\
                          moc_rdlist_groups.cpp\
                          moc_rdlist_logs.cpp\
                          moc_rdlistselector.cpp\
                          moc_rdlistsvcs.cpp\
                          moc_rdlivewire.cpp\
                          moc_rdlogeventdialog.cpp\
                          moc_rdlogfilter.cpp\
                          moc_rdlogimportmodel.cpp\
                          moc_rdloglock.cpp\
                          moc_rdloglistmodel.cpp\
                          moc_rdlogmodel.cpp\
                          moc_rdlogplay.cpp\
                          moc_rdmacro_event.cpp\
                          moc_rdmacrocartmodel.cpp\
                          moc_rdmainwindow.cpp\
                          moc_rdmarker_bar.cpp\
                          moc_rdmarkerdialog.cpp\
                          moc_rdmarkerplayer.cpp\
                          moc_rdmarkerreadout.cpp\
                          moc_rdmarkerview.cpp\
                          moc_rdmatrixlistmodel.cpp\
                          moc_rdmblookup.cpp\
                          moc_rdmeterstrip.cpp\
                          moc_rdmulticaster.cpp\
                          moc_rdnodelistmodel.cpp\
                          moc_rdnodeslotsmodel.cpp\
                          moc_rdoneshot.cpp\
                          moc_rdpanel_button.cpp\
                          moc_rdpasswd.cpp\
                          moc_rdplay_deck.cpp\
                          moc_rdplaymeter.cpp\
                          moc_rdpodcastfilter.cpp\
                          moc_rdpodcastlistmodel.cpp\
                          moc_rdprocess.cpp\
                          moc_rdpushbutton.cpp\
                          moc_rdpypadlistmodel.cpp\
                          moc_rdrehash.cpp\
                          moc_rdrenderer.cpp\
                          moc_rdreplcartlistmodel.cpp\
                          moc_rdreplicatorlistmodel.cpp\
                          moc_rdresourcelistmodel.cpp\
                          moc_rdripc.cpp\
                          moc_rdschedcodelistmodel.cpp\
                          moc_rdschedcodes_dialog.cpp\
                          moc_rdrsscategorybox.cpp\
                          moc_rdsegmeter.cpp\
                          moc_rdservicelistmodel.cpp\
                          moc_rdsimpleplayer.cpp\
                          moc_rdslider.cpp\
                          moc_rdsocket.cpp\
                          moc_rdsound_panel.cpp\
                          moc_rdslotbox.cpp\
                          moc_rdslotbutton.cpp\
                          moc_rdslotdialog.cpp\
                          moc_rdstationlistmodel.cpp\
                          moc_rdstereometer.cpp\
                          moc_rdsvc.cpp\
                          moc_rdtableview.cpp\
                          moc_rdtimeedit.cpp\
                          moc_rdtimeengine.cpp\
                          moc_rdtrackereditdialog.cpp\
                          moc_rdtrackermodel.cpp\
                          moc_rdtrackertableview.cpp\
                          moc_rdtrackerwidget.cpp\
                          moc_rdtransfer.cpp\
                          moc_rdtranslator.cpp\
                          moc_rdtransportbutton.cpp\
                          moc_rdtreeview.cpp\
                          moc_rdtrimaudio.cpp\
                          moc_rdttydevice.cpp\
                          moc_rdunixserver.cpp\
                          moc_rdunixsocket.cpp\
                          moc_rduserlistmodel.cpp\
                          moc_rdupload.cpp\
                          moc_rdwavedata_dialog.cpp\
                          moc_rdwavescene.cpp\
                          moc_rdwavewidget.cpp\
                          moc_rdwidget.cpp

librd_la_LDFLAGS = -release $(VERSION)

EXTRA_DIST = librd.pro\
             librd_cs.ts\
             librd_de.ts\
             librd_es.ts\
             librd_fr.ts\
             librd_nb.ts\
             librd_nn.ts\
             librd_pt_BR.ts\
             rdpaths.h.in

CLEANFILES = *~\
             moc_*\
             *.lib\
             *.obj\
             *.qm

DISTCLEANFILES = rdpaths.h

MAINTAINERCLEANFILES = *~\
                       *.tar.gz\
                       aclocal.m4\
                       configure\
                       Makefile.in\
                       moc_*
