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