From 4c3db4aa74348d5cf41c43140d2a59d6fe2c8374 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 21 Jul 2026 14:49:23 +0000 Subject: simple implementation for N,M are both multiple of 8 --- cachelab-handout/Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'cachelab-handout/Makefile') diff --git a/cachelab-handout/Makefile b/cachelab-handout/Makefile index 6fc127d..249098e 100644 --- a/cachelab-handout/Makefile +++ b/cachelab-handout/Makefile @@ -8,22 +8,20 @@ CFLAGS = -g -Wall -Werror -std=c99 -m64 CXX = g++ CXXFLAGS = -g -Wall -Werror -std=c++17 -m64 -# all: csim test-trans tracegen -# # Generate a handin tar file each time you compile -# -tar -cvf ${USER}-handin.tar csim.c trans.c +all: csim test-trans tracegen csim: csim.cc cachelab.c cachelab.h $(CC) $(CFLAGS) -c cachelab.c -o cachelab.o $(CXX) $(CXXFLAGS) -o csim csim.cc cachelab.o -lm -# test-trans: test-trans.c trans.o cachelab.c cachelab.h -# $(CC) $(CFLAGS) -o test-trans test-trans.c cachelab.c trans.o +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 -# $(CC) $(CFLAGS) -O0 -o tracegen tracegen.c trans.o cachelab.c +tracegen: tracegen.c trans.o cachelab.c + $(CC) $(CFLAGS) -O0 -o tracegen tracegen.c trans.o cachelab.c -# trans.o: trans.c -# $(CC) $(CFLAGS) -O0 -c trans.c +trans.o: trans.c + $(CC) $(CFLAGS) -O0 -c trans.c # # Clean the src dirctory -- cgit v1.3.1-4-g156e