aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDannyDaemonic <DannyDaemonic@gmail.com>2023-08-04 08:20:12 -0700
committerGitHub <noreply@github.com>2023-08-04 08:20:12 -0700
commit3498588e0fb4daf040c4e3c698595cb0bfd345c0 (patch)
treeda51423cc8e1574b92507663d332507e1dea32fd /Makefile
parent5f631c26794b6371fcf2660e8d0c53494a5575f7 (diff)
Add --simple-io option for subprocesses and break out console.h and cpp (#1558)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a692a39..e0528ae 100644
--- a/Makefile
+++ b/Makefile
@@ -340,6 +340,9 @@ llama.o: llama.cpp ggml.h ggml-alloc.h ggml-cuda.h ggml-metal.h llama.h llama-ut
common.o: examples/common.cpp examples/common.h
$(CXX) $(CXXFLAGS) -c $< -o $@
+console.o: examples/console.cpp examples/console.h
+ $(CXX) $(CXXFLAGS) -c $< -o $@
+
grammar-parser.o: examples/grammar-parser.cpp examples/grammar-parser.h
$(CXX) $(CXXFLAGS) -c $< -o $@
@@ -353,7 +356,7 @@ clean:
# Examples
#
-main: examples/main/main.cpp build-info.h ggml.o llama.o common.o grammar-parser.o $(OBJS)
+main: examples/main/main.cpp build-info.h ggml.o llama.o common.o console.o grammar-parser.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
@echo
@echo '==== Run ./main -h for help. ===='