1# Copyright (c) 2007 Intel Corporation. All Rights Reserved.
2#
3# Permission is hereby granted, free of charge, to any person obtaining a
4# copy of this software and associated documentation files (the
5# "Software"), to deal in the Software without restriction, including
6# without limitation the rights to use, copy, modify, merge, publish,
7# distribute, sub license, and/or sell copies of the Software, and to
8# permit persons to whom the Software is furnished to do so, subject to
9# the following conditions:
10#
11# The above copyright notice and this permission notice (including the
12# next paragraph) shall be included in all copies or substantial portions
13# of the Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
18# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
19# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23bin_PROGRAMS = avcenc mpeg2vaenc h264encode jpegenc vp9enc vp8enc hevcencode
24noinst_PROGRAMS = svctenc
25
26AM_CPPFLAGS = \
27	-Wall				\
28	$(LIBVA_CFLAGS) 		\
29	$(NULL)
30
31if USE_SSP
32AM_CPPFLAGS += -fstack-protector
33endif
34
35h264encode_SOURCES	= h264encode.c
36h264encode_CFLAGS	= -I$(top_srcdir)/common -g
37h264encode_LDADD	= \
38       	$(LIBVA_LIBS) \
39	$(top_builddir)/common/libva-display.la \
40	-lpthread -lm
41
42hevcencode_SOURCES	= hevcencode.c
43hevcencode_CFLAGS	= -I$(top_srcdir)/common -g
44hevcencode_LDADD	= \
45       	$(LIBVA_LIBS) \
46	$(top_builddir)/common/libva-display.la \
47	-lpthread -lm
48
49
50avcenc_SOURCES		= avcenc.c
51avcenc_CFLAGS		= -I$(top_srcdir)/common -g
52avcenc_LDADD		= \
53       	$(LIBVA_LIBS) \
54	$(top_builddir)/common/libva-display.la \
55	-lpthread
56
57mpeg2vaenc_SOURCES	= mpeg2vaenc.c
58mpeg2vaenc_CFLAGS	= -I$(top_srcdir)/common
59mpeg2vaenc_LDADD	= \
60       	$(LIBVA_LIBS) \
61	$(top_builddir)/common/libva-display.la \
62	-lpthread
63
64jpegenc_SOURCES		= jpegenc.c
65jpegenc_CFLAGS		= -I$(top_srcdir)/common -g
66jpegenc_LDADD		= \
67       	$(LIBVA_LIBS) \
68	$(top_builddir)/common/libva-display.la \
69	-lpthread
70
71svctenc_SOURCES		= svctenc.c
72svctenc_CFLAGS		= -I$(top_srcdir)/common -g
73svctenc_LDADD		= \
74       	$(LIBVA_LIBS) \
75	$(top_builddir)/common/libva-display.la \
76	-lpthread -lm
77
78vp9enc_SOURCES     = vp9enc.c
79vp9enc_CFLAGS      = -I$(top_srcdir)/common -g
80vp9enc_LDADD       = \
81	$(LIBVA_LIBS) \
82	$(top_builddir)/common/libva-display.la \
83	-lpthread -lm
84
85vp8enc_SOURCES     = vp8enc.c
86vp8enc_CFLAGS      = -I$(top_srcdir)/common -g
87vp8enc_LDADD       = \
88	$(LIBVA_LIBS) \
89	$(top_builddir)/common/libva-display.la \
90	-lpthread -lm
91
92valgrind:	$(bin_PROGRAMS) $(noinst_PROGRAMS)
93	for a in $(bin_PROGRAMS) $(noinst_PROGRAMS); do \
94		valgrind --leak-check=full --show-reachable=yes .libs/$$a; \
95	done
96
97EXTRA_DIST = 		\
98	jpegenc_utils.h \
99	$(NULL)
100