Skip to content

Commit ccc6ef7

Browse files
committed
llama-gguf-hash: makefile sha1 and xxhash moved to it's own obj file
1 parent f324f42 commit ccc6ef7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,15 @@ llama-gguf: examples/gguf/gguf.cpp \
11791179
$(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
11801180
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
11811181

1182-
llama-gguf-hash: examples/gguf-hash/gguf-hash.cpp examples/gguf-hash/deps/sha1/sha1.c examples/gguf-hash/deps/xxhash/xxhash.c\
1182+
examples/gguf-hash/deps/sha1/sha1.o: \
1183+
examples/gguf-hash/deps/sha1/sha1.c
1184+
$(CC) $(CFLAGS) -c $< -o $@
1185+
1186+
examples/gguf-hash/deps/xxhash/xxhash.o: \
1187+
examples/gguf-hash/deps/xxhash/xxhash.c
1188+
$(CC) $(CFLAGS) -c $< -o $@
1189+
1190+
llama-gguf-hash: examples/gguf-hash/gguf-hash.cpp examples/gguf-hash/deps/sha1/sha1.o examples/gguf-hash/deps/xxhash/xxhash.o\
11831191
$(OBJ_ALL)
11841192
$(CXX) $(CXXFLAGS) -Iexamples/gguf-hash/deps -c $< -o $(call GET_OBJ_FILE, $<)
11851193
$(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)

0 commit comments

Comments
 (0)