Skip to content

Commit e005bc4

Browse files
ggerganoviThalay
authored andcommitted
make : add grammar parser to common objects
1 parent 188d40f commit e005bc4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ clean:
402402

403403
CC_SDL=`sdl2-config --cflags --libs`
404404

405-
SRC_COMMON = examples/common.cpp examples/common-ggml.cpp
405+
SRC_COMMON = examples/common.cpp examples/common-ggml.cpp examples/grammar-parser.cpp
406406
SRC_COMMON_SDL = examples/common-sdl.cpp
407407

408408
main: examples/main/main.cpp $(SRC_COMMON) $(WHISPER_OBJ)
@@ -421,8 +421,8 @@ server: examples/server/server.cpp $(SRC_COMMON) $(WHISPER_OBJ)
421421
stream: examples/stream/stream.cpp $(SRC_COMMON) $(SRC_COMMON_SDL) $(WHISPER_OBJ)
422422
$(CXX) $(CXXFLAGS) examples/stream/stream.cpp $(SRC_COMMON) $(SRC_COMMON_SDL) $(WHISPER_OBJ) -o stream $(CC_SDL) $(LDFLAGS)
423423

424-
command: examples/command/command.cpp examples/grammar-parser.cpp $(SRC_COMMON) $(SRC_COMMON_SDL) $(WHISPER_OBJ)
425-
$(CXX) $(CXXFLAGS) examples/command/command.cpp examples/grammar-parser.cpp $(SRC_COMMON) $(SRC_COMMON_SDL) $(WHISPER_OBJ) -o command $(CC_SDL) $(LDFLAGS)
424+
command: examples/command/command.cpp $(SRC_COMMON) $(SRC_COMMON_SDL) $(WHISPER_OBJ)
425+
$(CXX) $(CXXFLAGS) examples/command/command.cpp $(SRC_COMMON) $(SRC_COMMON_SDL) $(WHISPER_OBJ) -o command $(CC_SDL) $(LDFLAGS)
426426

427427
lsp: examples/lsp/lsp.cpp $(SRC_COMMON) $(SRC_COMMON_SDL) $(WHISPER_OBJ)
428428
$(CXX) $(CXXFLAGS) examples/lsp/lsp.cpp $(SRC_COMMON) $(SRC_COMMON_SDL) $(WHISPER_OBJ) -o lsp $(CC_SDL) $(LDFLAGS)

examples/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ add_library(${TARGET} STATIC
2727
common.cpp
2828
common-ggml.h
2929
common-ggml.cpp
30+
grammar-parser.h
3031
grammar-parser.cpp
3132
)
3233

0 commit comments

Comments
 (0)