Skip to content

Commit acc111c

Browse files
authored
Allow old Make to build server. (ggml-org#2098)
Also make server build by default. Tested with Make 3.82
1 parent 23c7c6f commit acc111c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Makefile

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# Define the default target now so that it is always the first target
2-
BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch simple libembdinput.so embd-input-test
3-
4-
ifdef LLAMA_BUILD_SERVER
5-
BUILD_TARGETS += server
6-
LLAMA_SERVER_VERBOSE ?= 1
7-
server: private CXXFLAGS += -DSERVER_VERBOSE=$(LLAMA_SERVER_VERBOSE)
8-
endif
2+
BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch simple server libembdinput.so embd-input-test
93

104
default: $(BUILD_TARGETS)
115

@@ -61,6 +55,10 @@ else
6155
CXXFLAGS += -DNDEBUG
6256
endif
6357

58+
ifdef LLAMA_SERVER_VERBOSE
59+
CXXFLAGS += -DSERVER_VERBOSE=$(LLAMA_SERVER_VERBOSE)
60+
endif
61+
6462
# warnings
6563
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith
6664
CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar

0 commit comments

Comments
 (0)