cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

Makefile (518B)


      1# SPDX-License-Identifier: GPL-2.0
      2
      3CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
      4
      5src_test := $(wildcard *_test.c)
      6
      7TEST_GEN_PROGS := $(src_test:.c=)
      8
      9TEST_GEN_PROGS_EXTENDED := true
     10
     11KSFT_KHDR_INSTALL := 1
     12OVERRIDE_TARGETS := 1
     13include ../lib.mk
     14
     15khdr_dir = $(top_srcdir)/usr/include
     16
     17$(khdr_dir)/linux/landlock.h: khdr
     18	@:
     19
     20$(OUTPUT)/true: true.c
     21	$(LINK.c) $< $(LDLIBS) -o $@ -static
     22
     23$(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h
     24	$(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir)