summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 5dcf5cf8b5ef3f9579533d888750758784d7a5b8 (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
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
bin_PROGRAMS = simplertp simplertp-genkey

simplertp_LDADD = $(QT_LIBS) $(AO_LIBS) $(V4LC_LIBS) -ljpeg \
	$(OPUS_LIBS) $(AO_LIBS) \
	$(top_srcdir)/lrtp/src/liblrtp.la \
	$(top_srcdir)/libaudioin/src/libaudioin.la \
	$(shell ../tools/MocList o ) qrc_simplertp.o 

simplertp_CXXFLAGS = $(QT_CFLAGS) $(AO_CFLAGS) $(V4LC_CFLAGS) \
	-I$(top_srcdir)/lrtp/src \
	-I$(top_srcdir)/libaudioin/src \
	$(OPUS_CFLAGS) $(AO_CFLAGS)

AM_CXXFLAGS = $(simplertp_CXXFLAGS)

simplertp_SOURCES = \
	simplertp.cc \
	mainwindow.cc \
	v4l.cc \
	opusencoder.cc \
	opusdecoder.cc \
	samplecache.cc \
	frame.cc \
	audioinput.cc \
	audioinputhandler.cc \
	audiooutputhandler.cc \
	soundplayer.cc \
	outputstreamer.cc \
	inputstreamer.cc \
	videowidget.cc

simplertp_genkey_LDADD =
simplertp_genkey_CXXFLAGS = 
simplertp_genkey_SOURCES = \
	simplertp-genkey.cc

EXTRA_DIST = \
	simplertp.qrc
	mainwindow.h \
	v4l.h \
	opusencoder.h \
	opusdecoder.h \
	samplecache.h \
	frame.h \
	audioinput.h \
	audioinputhandler.h \
	audiooutputhandler.h \
	soundplayer.h \
	outputstreamer.h \
	inputstreamer.h \
	videowidget.h

simplertp_MOC = $(shell ../tools/MocList cc )

BUILT_SOURCES = $(simplertp_MOC) qrc_simplertp.cc

CLEANFILES = $(BUILT_SOURCES)

qrc_%.cc: %.qrc
	rcc $< > $@

%.moc.cc: %.h
	$(QT_MOC) -o $@ $<

#
# ui files not used in this project...
#%.h: %.ui
#	$(QT_UIC) -o $@ $<
#
#%.cc: %.ui
#	$(QT_UIC) -o $@ -impl $*.h $<

# command for creating .res file from .rc on Win32
%.res: %.rc
	rc $<