diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-06-16 18:13:53 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-16 18:13:53 +0200 |
| commit | 3a88e6f18243b399979fe03ea6e1d51d931cabfe (patch) | |
| tree | ee19d668e64579070cd0389e710bc7e5f41c2ecb /Makefile | |
| parent | 297a44c08675f4b7744081963248e9e3552850e7 (diff) | |
| download | ffwd-3a88e6f18243b399979fe03ea6e1d51d931cabfe.tar.gz ffwd-3a88e6f18243b399979fe03ea6e1d51d931cabfe.zip | |
server: extract JSON validation and error bodies into server_json.c
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -83,7 +83,7 @@ CORE_SRCS = src/model.c src/forward.c src/late.c src/vec.c src/alloc.c \ # Server-only objects: the embed-server binary and the server test link these # alongside server.o. Not in libembed.a - the CLI and library do not use them. -SERVER_SRCS = src/server_util.c src/sbuf.c src/base64.c +SERVER_SRCS = src/server_util.c src/sbuf.c src/base64.c src/server_json.c SERVER_OBJS = $(SERVER_SRCS:.c=.o) SRCS = $(CORE_SRCS) $(TOKENIZER_SRCS) \ @@ -155,6 +155,12 @@ src/cuda.o: src/cuda.cu src/cuda.h src/internal.h src/embed.h src/server.o: src/server.c $(HEADERS) deps/ae/ae.h deps/ae/anet.h $(CC) $(CFLAGS) $(VERSION_CFLAGS) $(CJSON_CFLAGS) -I. -Ideps/ae -c -o $@ $< +# Server concern objects: server_internal.h pulls deps/ae/ae.h and cJSON, so +# they need the same -I. and cJSON flags as server.o (the leaf util/sbuf/base64 +# objects do not include it but are unharmed by the extra search paths). +$(SERVER_OBJS): src/%.o: src/%.c $(HEADERS) deps/ae/ae.h + $(CC) $(CFLAGS) $(CJSON_CFLAGS) -I. -Ideps/ae -c -o $@ $< + src/cli.o: src/cli.c $(HEADERS) $(CC) $(CFLAGS) $(VERSION_CFLAGS) -c -o $@ $< |
