SHD-CacheAttackLab/Part2-DeadDrop/Makefile

27 lines
392 B
Makefile
Raw Normal View History

2023-01-31 20:19:02 +00:00
include ../cpu.mk
TARGETS=receiver sender
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_sender: sender
taskset -c $(SENDER_CPU) ./sender
run_receiver: receiver
taskset -c $(RECEIVER_CPU) ./receiver
.PHONY: clean
clean:
$(RM) *.o $(HELPERS) $(TARGETS)