added artifacts
This commit is contained in:
parent
cb794602ee
commit
cf2057109f
35 changed files with 6394 additions and 0 deletions
24
artifacts/page-table/Makefile
Normal file
24
artifacts/page-table/Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
CC := gcc
|
||||
|
||||
SOURCES := $(wildcard *.c)
|
||||
|
||||
TARGETS := $(SOURCES:.c=.elf)
|
||||
|
||||
CFLAGS += -g
|
||||
CFLAGS += -O2
|
||||
CFLAGS += -static
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Wextra
|
||||
CFLAGS += -Wno-int-to-pointer-cast
|
||||
CFLAGS += -Wno-pointer-to-int-cast
|
||||
CFLAGS += -D_FILE_OFFSET_BITS=64
|
||||
CFLAGS += -I../include
|
||||
CFLAGS += -pthread
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
%.elf: %.c ../include/tlb_flush.h ../include/cacheutils.h ../include/ulkm.h ../include/utils.h ../include/coarse_grain_leak.h
|
||||
$(CC) -D_FILE_OFFSET_BITS=64 $< $(CFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
rm -f *.elf
|
Loading…
Add table
Add a link
Reference in a new issue