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