From bbe9c59618295f9f33df12138ca760352d6f527e Mon Sep 17 00:00:00 2001 From: SuperUserNameMan Date: Tue, 13 Jun 2023 19:12:45 +0200 Subject: [PATCH] Update Makefile for minimalist example --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9a08d610b..55d5c2e52 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Define the default target now so that it is always the first target -BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot +BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot simple ifdef LLAMA_BUILD_SERVER BUILD_TARGETS += server @@ -270,6 +270,12 @@ main: examples/main/main.cpp build-info.h ggml. @echo @echo '==== Run ./main -h for help. ====' @echo + +simple: examples/simple/simple.cpp build-info.h ggml.o llama.o common.o $(OBJS) + $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS) + @echo + @echo '==== Run ./simple -h for help. ====' + @echo quantize: examples/quantize/quantize.cpp build-info.h ggml.o llama.o $(OBJS) $(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)