SHD-CacheAttackLab/Part3-PrimeProbe/Makefile

36 lines
538 B
Makefile
Raw Permalink Normal View History

2023-01-31 20:19:02 +00:00
include ../cpu.mk
TARGETS=attacker
UTILS=util.o
all: $(TARGETS)
$(UTILS): %.o: %.c %.h
$(CC) $(CFLAGS) -c $<
%.o: %.c util.h
$(CC) $(CFLAGS) -c $<
$(TARGETS): %:%.o util.o
$(CC) $(CFLAGS) $^ -o $@
run_victim-2:
taskset -c $(SENDER_CPU) ./victim-2
run_victim-3:
taskset -c $(SENDER_CPU) ./victim-3
run_victim-4:
taskset -c $(SENDER_CPU) ./victim-4
2024-02-07 14:23:56 +00:00
run_victim-16:
taskset -c $(SENDER_CPU) ./victim-16
2023-01-31 20:19:02 +00:00
run_attacker: attacker
taskset -c $(RECEIVER_CPU) ./attacker
.PHONY: clean
clean:
$(RM) *.o $(HELPERS) $(TARGETS)