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 22cve-2016-7042: LDLIBS += $(KEYUTILS_LIBS) 23 24cve-2016-7117: CFLAGS += -pthread 25cve-2016-7117: LDLIBS += -lrt 26 27cve-2014-0196: CFLAGS += -pthread 28cve-2014-0196: LDLIBS += -lrt -lutil 29 30cve-2017-2671: CFLAGS += -pthread 31cve-2017-2671: LDLIBS += -lrt 32 33meltdown: CFLAGS += -I$(abs_srcdir)/../realtime/include 34 35ifneq (,$(filter $(HOST_CPU),x86 x86_64)) 36meltdown: CFLAGS += -msse2 37endif 38 39include $(top_srcdir)/include/mk/generic_leaf_target.mk 40