mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 01:08:00 +00:00
It can now handle 240k SQLite write QPS at 3ms 99 percentile latency. We're still working out the kinks since it's brand new. But we've got this running in production already!
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
#───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘
|
|
|
|
PKGS += NET_TURFWAR
|
|
|
|
NET_TURFWAR_SRCS := $(wildcard net/turfwar/*.c)
|
|
|
|
NET_TURFWAR_OBJS = \
|
|
$(NET_TURFWAR_SRCS:%.c=o/$(MODE)/%.o)
|
|
|
|
NET_TURFWAR_COMS = \
|
|
$(NET_TURFWAR_SRCS:%.c=o/$(MODE)/%.com)
|
|
|
|
NET_TURFWAR_BINS = \
|
|
$(NET_TURFWAR_COMS) \
|
|
$(NET_TURFWAR_COMS:%=%.dbg)
|
|
|
|
NET_TURFWAR_DIRECTDEPS = \
|
|
LIBC_CALLS \
|
|
LIBC_FMT \
|
|
LIBC_INTRIN \
|
|
LIBC_LOG \
|
|
LIBC_MEM \
|
|
LIBC_NEXGEN32E \
|
|
LIBC_RUNTIME \
|
|
LIBC_SOCK \
|
|
LIBC_STDIO \
|
|
LIBC_STR \
|
|
LIBC_STUBS \
|
|
LIBC_SYSV \
|
|
LIBC_THREAD \
|
|
LIBC_TIME \
|
|
LIBC_X \
|
|
NET_HTTP \
|
|
THIRD_PARTY_GETOPT \
|
|
THIRD_PARTY_NSYNC \
|
|
THIRD_PARTY_NSYNC_MEM \
|
|
THIRD_PARTY_SQLITE3 \
|
|
THIRD_PARTY_ZLIB
|
|
|
|
NET_TURFWAR_DEPS := \
|
|
$(call uniq,$(foreach x,$(NET_TURFWAR_DIRECTDEPS),$($(x))))
|
|
|
|
o/$(MODE)/net/turfwar/turfwar.pkg: \
|
|
$(NET_TURFWAR_OBJS) \
|
|
$(foreach x,$(NET_TURFWAR_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
o/$(MODE)/net/turfwar/%.com.dbg: \
|
|
$(NET_TURFWAR_DEPS) \
|
|
o/$(MODE)/net/turfwar/%.o \
|
|
o/$(MODE)/net/turfwar/turfwar.pkg \
|
|
$(CRT) \
|
|
$(APE_NO_MODIFY_SELF)
|
|
@$(APELINK)
|
|
|
|
$(NET_TURFWAR_OBJS): \
|
|
$(BUILD_FILES) \
|
|
net/turfwar/turfwar.mk
|
|
|
|
.PHONY: o/$(MODE)/net/turfwar
|
|
o/$(MODE)/net/turfwar: $(NET_TURFWAR_BINS) $(NET_TURFWAR_CHECKS)
|