--- a/Makefile.am
+++ b/Makefile.am
@@ -1,127 +1,48 @@
AM_CPPFLAGS = -DDEBUG -g -Wall \
- -DDATADIR=\"${pkgdatadir}\" -DCONFIGDIR=\"${sysconfdir}\"
+ -DDATADIR=\"${pkgdatadir}\" -DCONFIGDIR=\"${sysconfdir}\" \
+ -DPACKAGE_VERSION=\"${PACKAGE_VERSION}\"
AM_CXXFLAGS = -std=c++0x
-
-lib_LTLIBRARIES = libupnpp.la
-
-libupnpp_la_SOURCES = \
- libupnpp/control/avlastchg.cxx \
- libupnpp/control/avlastchg.hxx \
- libupnpp/control/avtransport.cxx \
- libupnpp/control/avtransport.hxx \
- libupnpp/control/cdircontent.cxx \
- libupnpp/control/cdircontent.hxx \
- libupnpp/control/cdirectory.cxx \
- libupnpp/control/cdirectory.hxx \
- libupnpp/control/description.cxx \
- libupnpp/control/description.hxx \
- libupnpp/control/device.hxx \
- libupnpp/control/discovery.cxx \
- libupnpp/control/discovery.hxx \
- libupnpp/control/httpdownload.cxx \
- libupnpp/control/httpdownload.hxx \
- libupnpp/control/mediarenderer.cxx \
- libupnpp/control/mediarenderer.hxx \
- libupnpp/control/mediaserver.cxx \
- libupnpp/control/mediaserver.hxx \
- libupnpp/control/ohplaylist.cxx \
- libupnpp/control/ohplaylist.hxx \
- libupnpp/control/ohproduct.cxx \
- libupnpp/control/ohproduct.hxx \
- libupnpp/control/renderingcontrol.cxx \
- libupnpp/control/renderingcontrol.hxx \
- libupnpp/control/service.cxx \
- libupnpp/control/service.hxx \
- libupnpp/device/device.cxx \
- libupnpp/device/device.hxx \
- libupnpp/device/vdir.cxx \
- libupnpp/device/vdir.hxx \
- libupnpp/base64.hxx \
- libupnpp/base64.cxx \
- libupnpp/expatmm.hxx \
- libupnpp/getsyshwaddr.c \
- libupnpp/getsyshwaddr.h \
- libupnpp/ixmlwrap.cxx \
- libupnpp/ixmlwrap.hxx \
- libupnpp/log.cxx \
- libupnpp/log.hxx \
- libupnpp/md5.cxx \
- libupnpp/md5.hxx \
- libupnpp/ptmutex.hxx \
- libupnpp/soaphelp.cxx \
- libupnpp/soaphelp.hxx \
- libupnpp/upnpavutils.cxx \
- libupnpp/upnpavutils.hxx \
- libupnpp/upnpp_p.hxx \
- libupnpp/upnpplib.cxx \
- libupnpp/upnpplib.hxx \
- libupnpp/workqueue.hxx
-
-nobase_include_HEADERS = \
- libupnpp/control/avtransport.hxx \
- libupnpp/control/cdircontent.hxx \
- libupnpp/control/cdirectory.hxx \
- libupnpp/control/description.hxx \
- libupnpp/control/device.hxx \
- libupnpp/control/discovery.hxx \
- libupnpp/control/mediarenderer.hxx \
- libupnpp/control/mediaserver.hxx \
- libupnpp/control/ohproduct.hxx \
- libupnpp/control/ohplaylist.hxx \
- libupnpp/control/renderingcontrol.hxx \
- libupnpp/control/service.hxx \
- libupnpp/device/device.hxx \
- libupnpp/base64.hxx \
- libupnpp/log.hxx \
- libupnpp/ptmutex.hxx \
- libupnpp/soaphelp.hxx \
- libupnpp/upnpavutils.hxx \
- libupnpp/upnpplib.hxx \
- libupnpp/upnpputils.hxx
-
-libupnpp_la_LDFLAGS = -release $(VERSION)
-libupnpp_la_LIBADD = $(LIBUPNPP_LIBS)
bin_PROGRAMS = upmpdcli
upmpdcli_SOURCES = \
- upmpd/conftree.cxx \
- upmpd/conftree.hxx \
- upmpd/ohmetacache.cxx \
- upmpd/ohmetacache.hxx \
- upmpd/mpdcli.cxx \
- upmpd/mpdcli.hxx \
- upmpd/upmpd.hxx \
- upmpd/upmpd.cxx \
- upmpd/upmpdutils.cxx \
- upmpd/upmpdutils.hxx \
- upmpd/renderctl.hxx \
- upmpd/renderctl.cxx \
- upmpd/avtransport.hxx \
- upmpd/avtransport.cxx \
- upmpd/conman.hxx \
- upmpd/conman.cxx \
- upmpd/ohproduct.hxx \
- upmpd/ohproduct.cxx \
- upmpd/ohinfo.hxx \
- upmpd/ohinfo.cxx \
- upmpd/ohtime.hxx \
- upmpd/ohtime.cxx \
- upmpd/ohvolume.hxx \
- upmpd/ohvolume.cxx \
- upmpd/ohplaylist.hxx \
- upmpd/ohplaylist.cxx
+ src/conftree.cxx \
+ src/conftree.hxx \
+ src/ohmetacache.cxx \
+ src/ohmetacache.hxx \
+ src/mpdcli.cxx \
+ src/mpdcli.hxx \
+ src/upmpd.hxx \
+ src/upmpd.cxx \
+ src/upmpdutils.cxx \
+ src/upmpdutils.hxx \
+ src/renderctl.hxx \
+ src/renderctl.cxx \
+ src/avtransport.hxx \
+ src/avtransport.cxx \
+ src/conman.hxx \
+ src/conman.cxx \
+ src/ohproduct.hxx \
+ src/ohproduct.cxx \
+ src/ohinfo.hxx \
+ src/ohinfo.cxx \
+ src/ohtime.hxx \
+ src/ohtime.cxx \
+ src/ohvolume.hxx \
+ src/ohvolume.cxx \
+ src/ohplaylist.hxx \
+ src/ohplaylist.cxx
-upmpdcli_LDADD = libupnpp.la -lmpdclient -lcurl -lpthread -lrt
+upmpdcli_LDADD = -lupnpp -lmpdclient -lpthread
-dist_pkgdata_DATA = upmpd/description.xml upmpd/AVTransport.xml \
- upmpd/RenderingControl.xml upmpd/ConnectionManager.xml \
- upmpd/OHProduct.xml upmpd/OHInfo.xml upmpd/OHTime.xml \
- upmpd/OHVolume.xml upmpd/OHPlaylist.xml upmpd/protocolinfo.txt
+dist_pkgdata_DATA = src/description.xml src/AVTransport.xml \
+ src/RenderingControl.xml src/ConnectionManager.xml \
+ src/OHProduct.xml src/OHInfo.xml src/OHTime.xml \
+ src/OHVolume.xml src/OHPlaylist.xml src/protocolinfo.txt
-dist_sysconf_DATA = upmpd/upmpdcli.conf
+dist_sysconf_DATA = src/upmpdcli.conf
dist_man1_MANS = man/upmpdcli.1