Makefile.am 12.8 KB
Newer Older
1 2
GITVERSION_FILE=gitversion.h
GITVERSION_FILE_TMP=gitversion.h.tmp
aymeric's avatar
aymeric committed
3

4
ECHO=/bin/echo
5

6
ANDROID_SRC_FILES= \
7 8 9 10 11
	android/AudioRecord.cpp android/AudioRecord.h \
	android/AudioSystem.cpp android/AudioSystem.h \
	android/AudioTrack.cpp android/AudioTrack.h \
	android/String8.cpp android/String8.h \
	android/androidsound.cpp \
Ghislain MARY's avatar
Ghislain MARY committed
12
	android/androidsound_depr.cpp \
13
	android/androidvideo.cpp \
Ghislain MARY's avatar
Ghislain MARY committed
14 15
	android/android-display.c \
	android/android-display-bad.cpp \
16 17 18 19
	android/android-opengl-display.c \
	android/audio.h \
	android/loader.cpp android/loader.h \
	audiofilters/webrtc_aec.c
Ghislain MARY's avatar
Ghislain MARY committed
20 21 22

EXTRA_DIST= audiofilters/winsnd2.c audiofilters/winsnd.c videofilters/winvideo.c  \
	videofilters/winvideods.c videofilters/wincevideods.c dxfilter.h dxfilter.cpp \
23
	audiofilters/winsndds.cpp \
Ghislain MARY's avatar
Ghislain MARY committed
24 25
	voip/nowebcamCIF.jpg audiofilters/winsnd3.c utils/vfw-missing.h \
	videofilters/winvideo2.c utils/msjava.c $(ANDROID_SRC_FILES) \
26
	$(GITVERSION_FILE) yuv2rgb.fs yuv2rgb.vs
aymeric's avatar
aymeric committed
27

28
BUILT_SOURCES=basedescs.h $(GITVERSION_FILE) yuv2rgb.fs.h yuv2rgb.vs.h
aymeric's avatar
aymeric committed
29

30
CLEANFILES=basedescs.h voipdescs.h basedescs.txt voipdescs.txt $(GITVERSION_FILE) yuv2rgb.fs.h yuv2rgb.vs.h
aymeric's avatar
aymeric committed
31

32 33 34 35 36
lib_LTLIBRARIES=libmediastreamer_base.la
if BUILD_VOIP_LIBRARY
lib_LTLIBRARIES+=libmediastreamer_voip.la
endif

Ghislain MARY's avatar
Ghislain MARY committed
37
libmediastreamer_base_la_SOURCES=	base/mscommon.c \
38
					$(GITVERSION_FILE) \
Ghislain MARY's avatar
Ghislain MARY committed
39 40 41 42 43
					base/msfilter.c \
					base/msqueue.c \
					base/msticker.c \
					base/eventqueue.c \
					base/mssndcard.c \
Simon Morlat's avatar
Simon Morlat committed
44
					base/msfactory.c \
Ghislain MARY's avatar
Ghislain MARY committed
45 46 47 48 49 50
					otherfilters/tee.c \
					otherfilters/join.c \
					base/mswebcam.c \
					base/mtu.c \
					otherfilters/void.c \
					otherfilters/itc.c
51
libmediastreamer_voip_la_SOURCES=
aymeric's avatar
aymeric committed
52

53
#dummy c++ file to force libtool to use c++ linking (because of msdscap-mingw.cc)
54
nodist_EXTRA_libmediastreamer_base_la_SOURCES = dummy.cxx
aymeric's avatar
aymeric committed
55 56


57
if ORTP_ENABLED
58
BUILT_SOURCES+=voipdescs.h
Ghislain MARY's avatar
Ghislain MARY committed
59 60 61 62 63 64 65 66 67 68
libmediastreamer_voip_la_SOURCES+=	voip/private.h \
					voip/msvoip.c \
					voip/mediastream.c \
					voip/audiostream.c \
					voip/ringstream.c \
					voip/ice.c \
					otherfilters/msrtp.c \
					voip/qualityindicator.c \
					voip/audioconference.c \
					voip/bitratedriver.c \
69
					voip/qosanalyzer.c voip/qosanalyzer.h \
Ghislain MARY's avatar
Ghislain MARY committed
70
					voip/bitratecontrol.c
71
else
72
libmediastreamer_base_la_SOURCES+=	ortp-deps/logging.c \
73 74
					ortp-deps/port.c \
					ortp-deps/str_utils.c
75 76 77 78
if MS2_FILTERS
libmediastreamer_base_la_SOURCES+=	ortp-deps/b64.c \
					ortp-deps/payloadtype.c
endif
79
endif
80

81
if MS2_FILTERS
Ghislain MARY's avatar
Ghislain MARY committed
82 83 84
libmediastreamer_voip_la_SOURCES+=	audiofilters/alaw.c \
					audiofilters/ulaw.c \
					audiofilters/dtmfgen.c \
Margaux Clerc's avatar
Margaux Clerc committed
85
					audiofilters/g711.c audiofilters/g711.h \
Ghislain MARY's avatar
Ghislain MARY committed
86 87 88 89 90 91 92 93 94 95 96
					audiofilters/msvolume.c \
					utils/dsptools.c \
					utils/kiss_fft.c \
					utils/_kiss_fft_guts.h \
					utils/kiss_fft.h \
					utils/kiss_fftr.c \
					utils/kiss_fftr.h \
					audiofilters/equalizer.c \
					audiofilters/chanadapt.c \
					audiofilters/audiomixer.c \
					audiofilters/tonedetector.c \
97
					audiofilters/devices.c audiofilters/devices.h \
Ghislain MARY's avatar
Ghislain MARY committed
98 99 100 101 102
					utils/g722.h \
					utils/g722_decode.c \
					utils/g722_encode.c \
					audiofilters/msg722.c \
					audiofilters/l16.c \
103 104 105
					audiofilters/genericplc.c \
					audiofilters/msfileplayer.c \
					audiofilters/msfilerec.c \
106
					audiofilters/waveheader.h \
107
					audiofilters/flowcontrol.c
108

109
if BUILD_SPEEX
Ghislain MARY's avatar
Ghislain MARY committed
110
libmediastreamer_voip_la_SOURCES+=	audiofilters/msspeex.c audiofilters/speexec.c
111 112 113
endif

if BUILD_GSM
Ghislain MARY's avatar
Ghislain MARY committed
114
libmediastreamer_voip_la_SOURCES+=	audiofilters/gsm.c
115 116
endif

117
if BUILD_G726
Ghislain MARY's avatar
Ghislain MARY committed
118
libmediastreamer_voip_la_SOURCES+=	audiofilters/g726.c
119 120
endif

Ghislain MARY's avatar
Ghislain MARY committed
121 122 123 124
if BUILD_OPUS
libmediastreamer_voip_la_SOURCES+=	audiofilters/msopus.c
endif

125
if BUILD_WIN32
126
libmediastreamer_voip_la_SOURCES+=	audiofilters/winsnd3.c
127 128
endif

aymeric's avatar
aymeric committed
129
if BUILD_RESAMPLE
Ghislain MARY's avatar
Ghislain MARY committed
130
libmediastreamer_voip_la_SOURCES+=	audiofilters/msresample.c
aymeric's avatar
aymeric committed
131 132 133
endif

if BUILD_ALSA
Ghislain MARY's avatar
Ghislain MARY committed
134
libmediastreamer_voip_la_SOURCES+=	audiofilters/alsa.c
aymeric's avatar
aymeric committed
135 136
endif

137 138 139 140
if BUILD_QSA
libmediastreamer_voip_la_SOURCES+=	audiofilters/qsa.c
endif

aymeric's avatar
aymeric committed
141
if BUILD_OSS
Ghislain MARY's avatar
Ghislain MARY committed
142
libmediastreamer_voip_la_SOURCES+=	audiofilters/oss.c
aymeric's avatar
aymeric committed
143 144 145
endif

if BUILD_ARTS
Ghislain MARY's avatar
Ghislain MARY committed
146
libmediastreamer_voip_la_SOURCES+=	audiofilters/arts.c
aymeric's avatar
aymeric committed
147 148 149
endif

if BUILD_PORTAUDIO
Ghislain MARY's avatar
Ghislain MARY committed
150
libmediastreamer_voip_la_SOURCES+=	audiofilters/pasnd.c
aymeric's avatar
aymeric committed
151 152 153
endif

if BUILD_MACSND
Ghislain MARY's avatar
Ghislain MARY committed
154
libmediastreamer_voip_la_SOURCES+=	audiofilters/macsnd.c
aymeric's avatar
aymeric committed
155 156
endif

jehan's avatar
jehan committed
157
if BUILD_IOSIOUNIT
Ghislain MARY's avatar
Ghislain MARY committed
158
libmediastreamer_voip_la_SOURCES+=	audiofilters/msiounit.m
johan's avatar
johan committed
159
libmediastreamer_voip_la_SOURCES+=	audiofilters/aac-eld.c
160 161
endif

aymeric's avatar
aymeric committed
162
if BUILD_MACAQSND
Ghislain MARY's avatar
Ghislain MARY committed
163
libmediastreamer_voip_la_SOURCES+=	audiofilters/aqsnd.c
aymeric's avatar
aymeric committed
164 165
endif

166
if BUILD_PULSEAUDIO
Ghislain MARY's avatar
Ghislain MARY committed
167
libmediastreamer_voip_la_SOURCES+=	audiofilters/pulseaudio.c
168 169
endif

aymeric's avatar
aymeric committed
170 171 172
if BUILD_VIDEO

if BUILD_MACOSX
Ghislain MARY's avatar
Ghislain MARY committed
173 174 175 176
libmediastreamer_voip_la_SOURCES+=	videofilters/qtcapture.m \
					videofilters/msosxdisplay.m \
					utils/shaders.c utils/shaders.h \
					utils/opengles_display.c utils/opengles_display.h
177
nodist_libmediastreamer_voip_la_SOURCES = yuv2rgb.fs.h yuv2rgb.fs.h
178 179
endif

jehan's avatar
jehan committed
180
if BUILD_IOS
Ghislain MARY's avatar
Ghislain MARY committed
181
libmediastreamer_voip_la_SOURCES+=	voip/scaler.c \
182
					voip/ioshardware.m \
Ghislain MARY's avatar
Ghislain MARY committed
183 184 185 186 187 188
					videofilters/iosdisplay.m \
					videofilters/ioscapture.m \
					utils/shaders.c \
					utils/shaders.h \
					utils/opengles_display.c \
					utils/opengles_display.h
189
nodist_libmediastreamer_voip_la_SOURCES = yuv2rgb.fs.h yuv2rgb.fs.h
jehan's avatar
jehan committed
190
endif
191

192
if BUILD_V4L1
Ghislain MARY's avatar
Ghislain MARY committed
193
libmediastreamer_voip_la_SOURCES+=	videofilters/msv4l.c
194 195 196
endif

if BUILD_V4L2
Ghislain MARY's avatar
Ghislain MARY committed
197
libmediastreamer_voip_la_SOURCES+=	videofilters/msv4l2.c
aymeric's avatar
aymeric committed
198 199
endif

200
if BUILD_WIN32
Ghislain MARY's avatar
Ghislain MARY committed
201
libmediastreamer_voip_la_SOURCES+=	videofilters/msdscap-mingw.cc videofilters/drawdib-display.c
202 203 204
endif

if BUILD_THEORA
Ghislain MARY's avatar
Ghislain MARY committed
205
libmediastreamer_voip_la_SOURCES+=	videofilters/theora.c
206 207
endif

208
if BUILD_VP8
Ghislain MARY's avatar
Ghislain MARY committed
209
libmediastreamer_voip_la_SOURCES+=	videofilters/vp8.c
210 211
endif

212 213 214 215
if BUILD_MATROSKA
libmediastreamer_voip_la_SOURCES+=	videofilters/mkv.c
endif

216
if BUILD_AVCODEC
Ghislain MARY's avatar
Ghislain MARY committed
217 218
libmediastreamer_voip_la_SOURCES+=	videofilters/videoenc.c \
					videofilters/videodec.c \
219 220 221
					utils/swscale.h \
					utils/ffmpeg-priv.h \
					utils/ffmpeg-priv.c \
Ghislain MARY's avatar
Ghislain MARY committed
222
					videofilters/h264dec.c \
223
					videofilters/jpegwriter.c
224 225
endif

226 227
if BUILD_AVCODEC
libmediastreamer_voip_la_SOURCES+= 	videofilters/nowebcam.c voip/nowebcam.h
228 229
else
if BUILD_IOS
230
libmediastreamer_voip_la_SOURCES+= 	videofilters/nowebcam.c voip/nowebcam.h
231 232 233
endif
endif #might be better

Simon Morlat's avatar
Simon Morlat committed
234
if BUILD_SDL
235
libmediastreamer_voip_la_SOURCES+=	videofilters/videoout.c
Simon Morlat's avatar
Simon Morlat committed
236 237 238
endif

if BUILD_X11_XV
Ghislain MARY's avatar
Ghislain MARY committed
239
libmediastreamer_voip_la_SOURCES+=	videofilters/x11video.c
Simon Morlat's avatar
Simon Morlat committed
240 241
endif

242
if BUILD_X11_GL
Ghislain MARY's avatar
Ghislain MARY committed
243
libmediastreamer_voip_la_SOURCES+=	videofilters/glxvideo.c utils/opengles_display.c utils/shaders.c
244 245
endif

Ghislain MARY's avatar
Ghislain MARY committed
246 247 248 249 250 251 252
libmediastreamer_voip_la_SOURCES+=	voip/rfc2429.h \
					videofilters/pixconv.c  \
					videofilters/sizeconv.c \
					voip/msvideo.c \
					voip/msvideo_neon.c \
					voip/msvideo_neon.h \
					voip/rfc3984.c \
Ghislain MARY's avatar
Ghislain MARY committed
253
					voip/videostarter.c \
254 255
					voip/vp8rtpfmt.c \
					voip/vp8rtpfmt.h \
Ghislain MARY's avatar
Ghislain MARY committed
256 257
					videofilters/mire.c \
					videofilters/extdisplay.c \
258
					utils/bits_rw.c \
259
					utils/x11_helper.c \
260
					voip/layouts.c voip/layouts.h
aymeric's avatar
aymeric committed
261

262
if ORTP_ENABLED
Ghislain MARY's avatar
Ghislain MARY committed
263
libmediastreamer_voip_la_SOURCES+=	voip/videostream.c
264
endif
aymeric's avatar
aymeric committed
265

266
endif BUILD_VIDEO
aymeric's avatar
aymeric committed
267

268
endif MS2_FILTERS
aymeric's avatar
aymeric committed
269

270
if BUILD_UPNP
271
libmediastreamer_voip_la_SOURCES+=	upnp/upnp_igd.c \
272
					upnp/upnp_igd_private.h \
273 274 275 276
					upnp/upnp_igd_cmd.c \
					upnp/upnp_igd_utils.c \
					upnp/upnp_igd_utils.h
endif
aymeric's avatar
aymeric committed
277

278
basedescs.h:	Makefile $(libmediastreamer_base_la_SOURCES)
279 280 281 282
	cd $(srcdir) && \
	awk 'BEGIN { FS="[()]" ; }; /^\t*MS_FILTER_DESC_EXPORT/{ printf("%s\n", $$2) } '  > $(abs_builddir)/basedescs.txt $(libmediastreamer_base_la_SOURCES) && \
	awk 'BEGIN { print("#include \"mediastreamer2/msfilter.h\"\n") } { printf("extern MSFilterDesc %s;\n",$$1) } ' $(abs_builddir)/basedescs.txt > $(abs_builddir)/$@ && \
	awk 'BEGIN { print("MSFilterDesc * ms_base_filter_descs[]={") } { printf("&%s,\n",$$1) } END{ print("NULL\n};\n") } ' $(abs_builddir)/basedescs.txt >> $(abs_builddir)/$@
283 284

voipdescs.h:	Makefile $(libmediastreamer_voip_la_SOURCES)
285 286 287 288
	cd $(srcdir) && \
	awk 'BEGIN { FS="[()]" ; }; /^\t*MS_FILTER_DESC_EXPORT/{ printf("%s\n", $$2) } '  > $(abs_builddir)/voipdescs.txt $(libmediastreamer_voip_la_SOURCES) && \
	awk 'BEGIN { print("#include \"mediastreamer2/msfilter.h\"\n") } { printf("extern MSFilterDesc %s;\n",$$1) } ' $(abs_builddir)/voipdescs.txt > $(abs_builddir)/$@ && \
	awk 'BEGIN { print("MSFilterDesc * ms_voip_filter_descs[]={") } { printf("&%s,\n",$$1) } END{ print("NULL\n};\n") } ' $(abs_builddir)/voipdescs.txt >> $(abs_builddir)/$@
aymeric's avatar
aymeric committed
289 290


291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
libmediastreamer_base_la_LIBADD = $(ORTP_LIBS)
libmediastreamer_base_la_LDFLAGS = -no-undefined -version-info $(LIBMEDIASTREAMER_SO_VERSION)
libmediastreamer_voip_la_LDFLAGS = -no-undefined -version-info $(LIBMEDIASTREAMER_SO_VERSION)

if HAVE_LD_OUTPUT_DEF
libmediastreamer_base_la_LDFLAGS += -Wl,--output-def,libmediastreamer_base-$(LIBMEDIASTREAMER_SO_CURRENT).def
libmediastreamer_voip_la_LDFLAGS += -Wl,--output-def,libmediastreamer_voip-$(LIBMEDIASTREAMER_SO_CURRENT).def
defexecdir = $(libdir)
defexec_DATA = libmediastreamer_base-$(LIBMEDIASTREAMER_SO_CURRENT).def libmediastreamer_voip-$(LIBMEDIASTREAMER_SO_CURRENT).def
CLEANFILES += $(defexec_DATA)

libmediastreamer_base-$(LIBMEDIASTREAMER_SO_CURRENT).def: libmediastreamer_base.la
libmediastreamer_voip-$(LIBMEDIASTREAMER_SO_CURRENT).def: libmediastreamer_voip.la

if BUILD_WIN32
defexec_DATA += libmediastreamer_base-$(LIBMEDIASTREAMER_SO_CURRENT).lib libmediastreamer_voip-$(LIBMEDIASTREAMER_SO_CURRENT).lib
libmediastreamer_base-$(LIBMEDIASTREAMER_SO_CURRENT).lib: libmediastreamer_base-$(LIBMEDIASTREAMER_SO_CURRENT).def libmediastreamer_base.la
	$(DLLTOOL) --dllname libmediastreamer_base-$(LIBMEDIASTREAMER_SO_CURRENT).dll --input-def libmediastreamer_base-$(LIBMEDIASTREAMER_SO_CURRENT).def --output-lib $@ libmediastreamer_base.la
libmediastreamer_voip-$(LIBMEDIASTREAMER_SO_CURRENT).lib: libmediastreamer_voip-$(LIBMEDIASTREAMER_SO_CURRENT).def libmediastreamer_voip.la
	$(DLLTOOL) --dllname libmediastreamer_voip-$(LIBMEDIASTREAMER_SO_CURRENT).dll --input-def libmediastreamer_voip-$(LIBMEDIASTREAMER_SO_CURRENT).def --output-lib $@ libmediastreamer_voip.la
endif
endif
Simon Morlat's avatar
Simon Morlat committed
313

314
if !BUILD_WIN32
315
libmediastreamer_base_la_LDFLAGS+=-rdynamic
316
endif
aymeric's avatar
aymeric committed
317

318
if BUILD_WIN32
319 320 321 322
libmediastreamer_base_la_LIBADD+=	-lole32 \
					-loleaut32\
					-lwinmm \
					-luuid
aymeric's avatar
aymeric committed
323
endif
324

Jehan Monnier's avatar
Jehan Monnier committed
325
if BUILD_WIN32_WCE
326
libmediastreamer_base_la_LIBADD+=	-lmmtimer
Jehan Monnier's avatar
Jehan Monnier committed
327
endif
aymeric's avatar
aymeric committed
328

Yann Diorcet's avatar
Yann Diorcet committed
329
AM_CPPFLAGS=\
Ghislain MARY's avatar
Ghislain MARY committed
330
	-I$(top_srcdir)/include/ \
331 332 333 334 335
	-I$(top_srcdir)/src/base \
	-I$(top_srcdir)/src/utils \
	-I$(top_srcdir)/src/voip \
	-I$(top_srcdir)/src/audiofilters \
	-I$(top_srcdir)/src/otherfilters \
336
	-I$(top_srcdir)/src/videofilters
jehan's avatar
jehan committed
337

Yann Diorcet's avatar
Yann Diorcet committed
338 339 340 341 342 343 344 345 346
AM_CFLAGS=\
	$(STRICT_OPTIONS) \
	$(ORTP_CFLAGS)   \
	$(SPEEX_CFLAGS)  \
	$(GSM_CFLAGS)    \
	$(STRICT_OPTIONS) \
	$(LIBPULSE_CFLAGS) \
	$(SPANDSP_CFLAGS)  \
	$(MSSILK_CFLAGS) \
347
	$(PCAP_CFLAGS) \
348
	$(OPUS_CFLAGS)
aymeric's avatar
aymeric committed
349

Yann Diorcet's avatar
Yann Diorcet committed
350 351 352
AM_CXXFLAGS=\
	$(STRICT_OPTIONS) \
	$(ORTP_CFLAGS)
353

Simon Morlat's avatar
Simon Morlat committed
354 355
DEFS=@DEFS@  -DPACKAGE_PLUGINS_DIR=\"$(PACKAGE_PLUGINS_DIR)\" -DLOCALEDIR=\"$(localedir)\" -DMS2_INTERNAL

356 357 358 359
if MS2_FILTERS
DEFS+= -DMS2_FILTERS
endif

aymeric's avatar
aymeric committed
360
if BUILD_VIDEO
Simon Morlat's avatar
Simon Morlat committed
361
AM_CFLAGS+=$(VIDEO_CFLAGS) $(GLEW_CFLAGS)
aymeric's avatar
aymeric committed
362 363
endif

364

365
libmediastreamer_voip_la_LIBADD=	libmediastreamer_base.la \
366 367
					$(ORTP_LIBS) \
					$(VP8_LIBS) \
368 369
					$(PORTAUDIO_LIBS) \
					$(ALSA_LIBS) \
370
					$(QSA_LIBS) \
371 372 373 374 375 376
					$(ARTS_LIBS) \
					$(LIBPULSE_LIBS) \
					$(SPEEX_LIBS) \
					$(GSM_LIBS) \
					$(LIBV4L1_LIBS) \
					$(LIBV4L2_LIBS) \
377
					$(LIBV4LCONVERT_LIBS) \
Ghislain MARY's avatar
Ghislain MARY committed
378
					$(SPANDSP_LIBS) \
Ghislain MARY's avatar
Ghislain MARY committed
379 380
					$(PCAP_LIBS) \
					$(OPUS_LIBS)
381

382 383 384 385 386 387 388
if BUILD_WIN32
libmediastreamer_voip_la_LIBADD+=       -lole32 \
                                        -loleaut32\
                                        -lwinmm \
                                        -luuid
endif

389 390 391 392 393
if BUILD_VP8
AM_CFLAGS+=$(VP8_CFLAGS)
libmediastreamer_voip_la_LIBADD+=$(VP8_LIBS)
endif

394 395 396 397 398 399 400 401
if BUILD_MATROSKA
AM_CFLAGS+=				$(EBML_CFLAGS) \
					$(MATROSKA_CFLAGS)

libmediastreamer_voip_la_LIBADD+=	$(MATROSKA_LIBS) \
					$(EBML_LIBS)
endif

402 403 404 405 406 407
if BUILD_VIDEO
libmediastreamer_voip_la_LIBADD+=	$(VIDEO_LIBS) \
					$(THEORA_LIBS) \
					$(GLEW_LIBS)
endif

408
if BUILD_UPNP
409
AM_CFLAGS+=$(LIBUPNP_CFLAGS) -D_GNU_SOURCE
410 411 412
libmediastreamer_voip_la_LIBADD+=	$(LIBUPNP_LIBS)
endif

413
if BUILD_IOS
414 415 416 417 418 419 420 421 422 423 424
libmediastreamer_voip_la_LDFLAGS+=	-framework CoreGraphics
endif

if BUILD_MACOSX
libmediastreamer_voip_la_LDFLAGS+=	-framework Cocoa -framework OpenGL -framework QuartzCore
endif



AM_OBJCFLAGS=$(AM_CFLAGS)

aymeric's avatar
aymeric committed
425 426
imgdir=$(datadir)/images/

Ghislain MARY's avatar
Ghislain MARY committed
427
img_DATA=voip/nowebcamCIF.jpg
aymeric's avatar
aymeric committed
428

429 430
make_gitversion_h:
	if test -d $(top_srcdir)/.git ; then \
431
		$(ECHO) -n "#define GIT_VERSION " > $(GITVERSION_FILE_TMP) &&\
Simon Morlat's avatar
Simon Morlat committed
432
		$(ECHO) \"`cd $(top_srcdir) && git describe --always`\" >> $(GITVERSION_FILE_TMP) &&\
433 434 435 436 437
		if test "`cat $(GITVERSION_FILE_TMP)`" != "`cat $(srcdir)/$(GITVERSION_FILE)`" ; then \
			cp -f $(GITVERSION_FILE_TMP) $(srcdir)/$(GITVERSION_FILE) ; \
		fi \
		&& rm -f $(GITVERSION_FILE_TMP) ;\
	fi
438 439
	if ! test -f $(srcdir)/$(GITVERSION_FILE) ; then \
		$(ECHO) -n "#define GIT_VERSION \"unknown\" " > $(srcdir)/$(GITVERSION_FILE) ;\
440 441 442 443
	fi

$(GITVERSION_FILE):	make_gitversion_h

444
yuv2rgb.fs.h: yuv2rgb.fs
445 446
	cd $(abs_srcdir) && \
	xxd -i yuv2rgb.fs | sed s/}\;/,0x00}\;/ > $(abs_builddir)/yuv2rgb.fs.h
447 448

yuv2rgb.vs.h: yuv2rgb.vs
449 450
	cd $(abs_srcdir) && \
	xxd -i yuv2rgb.vs | sed s/}\;/,0x00}\;/ > $(abs_builddir)/yuv2rgb.vs.h