From 989b8aa3e3a002693c817567ce279049fa1ffe45 Mon Sep 17 00:00:00 2001 From: Meiye-lj Date: Sun, 28 Jul 2024 17:48:02 +0800 Subject: [PATCH] Fixing missing dependencies --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 13d5404..f45b251 100644 --- a/Makefile +++ b/Makefile @@ -12,19 +12,19 @@ csim: csim.c cachelab.c cachelab.h test-trans: test-trans.c trans.o cachelab.c cachelab.h $(CC) $(CFLAGS) -o test-trans test-trans.c cachelab.c trans.o -tracegen: tracegen.c trans.o cachelab.c +tracegen: tracegen.c trans.o cachelab.c cachelab.h $(CC) $(CFLAGS) -O0 -o tracegen tracegen.c trans.o cachelab.c -trans.o: trans.c +trans.o: trans.c cachelab.h contracts.h $(CC) $(CFLAGS) -O0 -c trans.c -handin: +handin: tar -cvf ${USER}_handin.tar csim.c trans.c # # Clean the src dirctory # -clean: +clean: rm -rf *.o rm -f csim rm -f test-trans tracegen