diff options
author | Henri Vasserman <henv@hot.ee> | 2023-07-04 15:38:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 15:38:04 +0300 |
commit | acc111caf93fc6681450924df9f99679c384c59e (patch) | |
tree | 49cf6cd914c14b24a633b0555e43b41b41312fd5 /Makefile | |
parent | 23c7c6fc9182b041f006b86ea1e7f99911ecf344 (diff) |
Allow old Make to build server. (#2098)
Also make server build by default.
Tested with Make 3.82
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1,11 +1,5 @@ # Define the default target now so that it is always the first target -BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch simple libembdinput.so embd-input-test - -ifdef LLAMA_BUILD_SERVER - BUILD_TARGETS += server - LLAMA_SERVER_VERBOSE ?= 1 -server: private CXXFLAGS += -DSERVER_VERBOSE=$(LLAMA_SERVER_VERBOSE) -endif +BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch simple server libembdinput.so embd-input-test default: $(BUILD_TARGETS) @@ -61,6 +55,10 @@ else CXXFLAGS += -DNDEBUG endif +ifdef LLAMA_SERVER_VERBOSE + CXXFLAGS += -DSERVER_VERBOSE=$(LLAMA_SERVER_VERBOSE) +endif + # warnings CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar |