summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 9e77f4fb5dc1bfd9724d6bf3f991cfc4a218d09a (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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
bin_PROGRAMS =

if WITH_CLIENT
bin_PROGRAMS += miav
endif

if WITH_SERVER
bin_PROGRAMS += miavd
endif

# This is needed for XXXX.moc.o compilation
AM_CXXFLAGS = $(QT_CFLAGS)

miav_CXXFLAGS = $(SDL_CFLAGS) $(DV_CFLAGS) $(IEC61883_CFLAGS) $(QT_CFLAGS) \
	-I../include -DETC=\"$(prefix)/etc/miav\" -I$(top_srcdir)/hugin \
	-DPIXMAPS=\":/pixmaps\"

miav_LDADD = $(shell ../tools/MocList o) $(QT_LIBS) $(IEC61883_LIBS) \
	$(SDL_LIBS) $(DV_LIBS) qrc_miav.o 

miav_SOURCES = \
	aa_socket.cc \
	cprlisten.cc \
	aboutwindow.cc \
	camera.cc \
	cprquerydialog.cc \
	decoder.cc \
	dv1394.cc \
	dvfile.cc \
	encoder.cc \
	frame.cc \
	historywidget.cc \
	info.cc \
	info_gui.cc \
	mainwindow.cc \
	messagebox.cc \
	miav.cc \
	player.cc \
	recedge.cc \
	videowidget.cc \
	yuv_draw.cc \
\
	$(top_srcdir)/hugin/hugin.c \
	socket.cc \
	thread.cc \
	util.cc \
	miav_config.cc \
	network.cc

miavd_CXXFLAGS = $(JPEG_CFLAGS) $(FAME_CFLAGS) $(LAME_CFLAGS) $(DV_CFLAGS) \
	 $(PTHREAD_CFLAGS) -I../include -DETC=\"/etc/miav\" \
	-I$(top_srcdir)/hugin -DWITH_HUG_FILTER

miavd_CFLAGS = -DWITH_HUG_FILTER

miavd_LDADD = $(JPEG_LIBS) $(FAME_LIBS) $(LAME_LIBS) $(DV_LIBS) $(PTHREAD_LIBS)

miavd_SOURCES = \
	$(top_srcdir)/hugin/hugin.c \
	$(top_srcdir)/hugin/hugin_filter.c \
	miavd.cc \
	audio_encoder.cc \
	daemon.cc \
	file.cc \
	frame.cc \
	img_encoder.cc \
	jpeg_mem_dest.cc \
	libfame_wrapper.cc \
	liblame_wrapper.cc \
	miav_daemon.cc \
	miav_config.cc \
	mov_encoder.cc \
	mov_encoder_thread.cc \
	mov_encoder_writer.cc \
	multicast.cc \
	multicast_configuration.cc \
	multiplexer.cc \
	mutex.cc \
	network.cc \
	server.cc \
	server_status.cc \
	semaphore.cc \
	socket.cc \
	thread.cc \
	threadsafe_queue.cc \
	threadsafe_queue_fifo.cc \
	threadsafe_queue_priority.cc \
	util.cc

EXTRA_DIST = \
	aa_socket.h \
	aboutwindow.h \
	audio_encoder.h \
	camera.h \
	cprlisten.h \
	cprquerydialog.h \
	daemon.h \
	decoder.h \
	dv.h \
	dv1394.h \
	dvfile.h \
	encoder.h \
	file.h \
	font.h \
	frame.h \
	frame_stream.h \
	historywidget.h \
	img_encoder.h \
	info.h \
	info_gui.h \
	iso11172-1.h \
	iso11172-2.h \
	iso11172-3.h \
	jpeg_mem_dest.h \
	libfame_wrapper.h \
	liblame_wrapper.h \
	mainwindow.h \
	messagebox.h \
	miav_config.h \
	miav_daemon.h \
	mov_encoder.h \
	mov_encoder_thread.h \
	mov_encoder_writer.h \
	multicast.h \
	multicast_configuration.h \
	multiplexer.h \
	mutex.h \
	network.h \
	package.h \
	player.h \
	queue.h \
	recedge.h \
	semaphore.h \
	server.h \
	server_status.h \
	socket.h \
	thread.h \
	threadsafe_queue.h \
	threadsafe_queue_fifo.h \
	threadsafe_queue_priority.h \
	util.h \
	videowidget.h \
	yuv_draw.h \
	miav.qrc

miav_MOC =
if WITH_CLIENT
miav_MOC += $(shell  if [ $QT_CXXFLAGS ] ; then ../tools/MocList cc; fi )
endif

BUILT_SOURCES = $(miav_MOC) qrc_miav.cc

CLEANFILES = $(BUILT_SOURCES)

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

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

%.h: %.ui
	$(UIC) -o $@ $<

%.cc: %.ui
	$(UIC) -o $@ -impl $*.h $<

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