1# Copyright (c) 2017 Linux Test Project
2#
3# This program is free software; you can redistribute it and/or
4# modify it under the terms of the GNU General Public License as
5# published by the Free Software Foundation; either version 2 of
6# the License, or (at your option) any later version.
7#
8# This program is distributed in the hope that it would be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16top_srcdir		?= ../..
17
18include $(top_srcdir)/include/mk/testcases.mk
19
20CFLAGS			+= -D_GNU_SOURCE
21
22stack_clash:	CFLAGS += -fno-optimize-sibling-calls
23
24cve-2016-7042:	LDLIBS += $(KEYUTILS_LIBS)
25
26cve-2016-7117:	CFLAGS += -pthread
27cve-2016-7117:	LDLIBS += -lrt
28
29cve-2014-0196:  CFLAGS += -pthread
30cve-2014-0196:  LDLIBS += -lrt
31
32ifneq ($(ANDROID),1)
33cve-2014-0196:  LDLIBS += -lutil
34endif
35
36cve-2017-2671:	CFLAGS += -pthread
37cve-2017-2671:	LDLIBS += -lrt
38
39meltdown: CFLAGS += -I$(abs_srcdir)/../realtime/include
40
41ifneq (,$(filter $(HOST_CPU),x86 x86_64))
42meltdown: CFLAGS += -msse2
43endif
44
45cve-2017-17052:	CFLAGS += -pthread
46cve-2017-17053:	CFLAGS += -pthread
47
48cve-2015-3290:	CFLAGS += -pthread
49
50include $(top_srcdir)/include/mk/generic_leaf_target.mk
51