summaryrefslogtreecommitdiffabout
path: root/src/Makefile.am
blob: 7258e8bb881c66981dbcf04a3a9d55c62cca4307 (plain)
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
bin_PROGRAMS=iii-extract-riff-chunk
sbin_PROGRAMS=iiid
noinst_HEADERS = \
	eyefi.h \
	eyekinfig.h eyetil.h \
	eyefiworker.h iiidb.h \
	seclude.h

AM_CPPFLAGS = ${CPPFLAGS_DEBUG} \
	      -DEYEKIN_CONF_DIR=\"${sysconfdir}/${PACKAGE}\" \
	      -DWITH_PURE_VIRTUAL
DEFAULT_INCLUDES = -I${top_builddir} -I${builddir} -I${srcdir}
INCLUDES = ${MODULES_CFLAGS} ${UUID_CFLAGS} ${SQLITE_CFLAGS}

iiid_SOURCES = iiid.cc \
	eyekinfig.cc eyetil.cc \
	eyefiworker.cc
nodist_iiid_SOURCES = \
	${builddir}/soapC.cpp ${builddir}/soapeyefiService.cpp \
	COPYING.cc
iiid_LDADD = ${MODULES_LIBS} ${UUID_LIBS} ${SQLITE_LIBS}

iii_extract_riff_chunk_SOURCES = iii-extract-riff-chunk.cc
nodist_iii_extract_riff_chunk_SOURCES = COPYING.cc

COPYING.cc: ${top_srcdir}/COPYING
	echo "const char * COPYING = " >$@ || (rm $@;exit 1)
	sed -e 's/"/\\"/g' -e 's/^/\"/' -e 's/$$/\\n\"/' $< >>$@ || (rm $@;exit 1)
	echo ';' >>$@ || (rm $@;exit 1)

${srcdir}/eyefiservice.cc: ${builddir}/soapeyefiService.h
${srcdir}/iiid.cc: ${builddir}/eyefi.nsmap

${builddir}soapC.cpp ${builddir}/soapeyefiService.cpp ${builddir}/eyefi.nsmap ${builddir}/soapeyefiService.h: ${srcdir}/eyefi.h
	${SOAPCPP2} -d${builddir} -S -L -a -i -w -x $<

clean-local:
	rm -f soap{{H,Stub,eyefiService}.h,{C,eyefiService}.cpp} eyefi.nsmap COPYING.cc