cachelab finished again

This commit is contained in:
2025-04-25 00:36:49 +08:00
parent 92300134d2
commit 44051e5098
5 changed files with 963 additions and 2911 deletions

View File

@@ -8,7 +8,8 @@ LDFLAGS +=
LDLIBS += -lzstd
CPPFLAGS := -Ofast -Wall -Wextra -Winline -Winit-self -Wno-sequence-point\
CPPFLAGS := -O3 -Wall -Wextra -Winline -Winit-self -Wno-sequence-point\
-Wno-unused-function -Wno-inline -fPIC -W -Wcast-qual -Wpointer-arith -Icbsl/include
#CPPFLAGS := -g
@@ -19,7 +20,7 @@ objects = Cache.o CacheHelper.o getopt.o cbsl/src/buffer.o cbsl/src/file.o cbsl/
all: $(PROGRAMS)
Cache : $(objects)
icx $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
gcc $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
rm -f $(objects)
clean: