Parent: [1497d3] (diff)

Child: [9e3867] (diff)

Download this file

Makefile.am    137 lines (117 with data), 4.0 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# dir over all OpenHome dirs
TOPOH=@TOPOH@/
TOPOHNET=@TOPOHNET@/
TOPOHNETGENERATED=@TOPOHNETGENERATED@/
TOPOHSONGCAST=@TOPOHSONGCAST@/
OTHERLIBS=@OTHERLIBS@
OHBTYPE=Release
# Top ohSongcast dir
TOPSC = $(TOPOH)ohSongcast/
# Internal path to obj inside ohNet, ohSongcast etc.
OBJIPATH = Build/Obj/Posix/$(OHBTYPE)/
# ohSongcast other objects
TOPSCO=$(TOPSC)$(OBJIPATH)
AM_CPPFLAGS = -DDEBUG -g -Wall \
-DDATADIR=\"${pkgdatadir}\" -DCONFIGDIR=\"${sysconfdir}\" \
-DPACKAGE_VERSION=\"${PACKAGE_VERSION}\"
if WITH_OHBUILD
AM_CPPFLAGS += \
-I$(TOPOH)ohNet/Build/Include/ \
-I$(TOPOH)ohNetGenerated/Build/Include/ \
-I$(TOPOH)ohTopology/build/Include/ \
-I$(TOPSC) \
-DWITH_OHBUILD
else
AM_CPPFLAGS += -I$(TOPOHNET)include/ohNet
endif
if WAVSC2
AM_CPPFLAGS += \
-I$(top_srcdir)/mpd2src \
-I$(top_srcdir)/sc2src \
-DWITH_WAVSC2
endif
AM_CXXFLAGS = -std=c++11
bin_PROGRAMS = sc2mpd mpd2sc
# Maybe these are needed for the oh headers ?
OHCCFLAGS = -D_GNU_SOURCE -D_REENTRANT -DDEFINE_LITTLE_ENDIAN \
-DDEFINE_TRACE \
-DDllImport="__attribute__ ((visibility(\"default\")))" \
-DDllExport="__attribute__ ((visibility(\"default\")))" \
-DDllExportClass="__attribute__ ((visibility(\"default\")))"
OTHEROSC2 = $(TOPSCO)/Ohm.o $(TOPSCO)/OhmMsg.o $(TOPSCO)/OhmSocket.o \
$(TOPSCO)/OhmReceiver.o $(TOPSCO)/OhmProtocolMulticast.o \
$(TOPSCO)/OhmProtocolUnicast.o \
$(TOPOH)ohNetGenerated/$(OBJIPATH)DvAvOpenhomeOrgReceiver1.o
if WITH_OHBUILD
sc2mpd_LDADD = $(OTHEROSC2) $(TOPOH)ohNet/$(OBJIPATH)libohNetCore.a \
$(TOPOH)ohNet/$(OBJIPATH)libTestFramework.a $(OTHERLIBS)
else
sc2mpd_LDADD = \
-L${TOPOHSONGCAST}lib/ohSongcast -lohSongcast \
-L${TOPOHNETGENERATED}lib/ohNetGenerated -lohNetGeneratedDevices \
-L${TOPOHNET}lib/ohNet -lohNetCore \
-L${TOPOHNET}lib/ohNet -lTestFramework \
$(OTHERLIBS)
endif
sc2mpd_CPPFLAGS = -I$(top_srcdir) $(AM_CPPFLAGS)
sc2mpd_SOURCES = \
sc2src/alsadirect.cpp \
sc2src/chrono.cpp \
sc2src/chrono.h \
sc2src/conftree.cpp \
sc2src/conftree.h \
sc2src/httpgate.cpp \
sc2src/log.cpp \
sc2src/log.h \
sc2src/pathut.cpp \
sc2src/pathut.h \
sc2src/rcvqueue.h \
sc2src/sc2mpd.cpp \
sc2src/smallut.cpp \
sc2src/smallut.h \
sc2src/wav.cpp \
sc2src/wav.h \
sc2src/workqueue.h
if WAVSC2
sc2mpd_SOURCES += \
mpd2src/openaudio.cpp \
mpd2src/wavreader.cpp \
mpd2src/fiforeader.cpp \
mpd2src/stringtotokens.cpp
endif
OTHEROMP2 = $(TOPSCO)/Ohm.o $(TOPSCO)/OhmMsg.o $(TOPSCO)/OhmSocket.o \
$(TOPSCO)/OhmSender.o \
$(TOPOH)ohNetGenerated/$(OBJIPATH)DvAvOpenhomeOrgSender1.o
if WITH_OHBUILD
mpd2sc_LDADD = $(OTHEROMP2) $(TOPOH)ohNet/$(OBJIPATH)libohNetCore.a \
$(TOPOH)ohNet/$(OBJIPATH)libTestFramework.a $(OTHERLIBS)
else
mpd2sc_LDADD = \
-L${TOPOHSONGCAST}lib/ohSongcast -lohSongcast \
-L${TOPOHNETGENERATED}lib/ohNetGenerated -lohNetGeneratedDevices \
-L${TOPOHNET}lib/ohNet -lohNetCore \
-L${TOPOHNET}lib/ohNet -lTestFramework \
$(OTHERLIBS)
endif
mpd2sc_CPPFLAGS = -I$(top_srcdir)/sc2src $(AM_CPPFLAGS)
mpd2sc_SOURCES = \
mpd2src/audioreader.h \
mpd2src/audioutil.h \
mpd2src/base64.cxx \
mpd2src/base64.hxx \
mpd2src/fiforeader.cpp \
mpd2src/fiforeader.h \
mpd2src/icon.h \
mpd2src/mpd2sc.cpp \
mpd2src/openaudio.cpp \
mpd2src/openaudio.h \
mpd2src/stringtotokens.cpp \
mpd2src/stringtotokens.h \
mpd2src/wavreader.cpp \
mpd2src/wavreader.h \
sc2src/log.cpp
dist_bin_SCRIPTS = mpd2src/scmakempdsender
dist_noinst_SCRIPTS = ohbuild.sh
dist-hook:
test -z "`git status -s | grep -v sc2mpd-$(VERSION)`"
git tag -f -a sc2mpd-v$(VERSION) -m 'version $(VERSION)'