Archived
3
0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
libipc-old/zig-impl/crystal/some-crystal-app/makefile

47 lines
1021 B
Makefile

LDPATH ?= /tmp/libipc/zig-impl/build
SRC ?= ./bin/some-crystal-app
VG_OPTS = --leak-check=full -v
VG_OPTS += --show-leak-kinds=all
VG_OPTS += --suppressions=valgrind.suppressions
VG_OPTS += --gen-suppressions=all
build:
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build
valgrind:
LD_LIBRARY_PATH=$(LDPATH) valgrind $(VG_OPTS) $(SRC)
run:
LD_LIBRARY_PATH=$(LDPATH) $(SRC)
build-pongd:
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build pongd
run-pongd:
LD_LIBRARY_PATH=$(LDPATH) ./bin/pongd
build-authd:
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build authd
run-authd:
@-rm /tmp/libipc-run/auth 2>/dev/null || true
# LD_LIBRARY_PATH=$(LDPATH) ./bin/authd -R -E
LD_LIBRARY_PATH=$(LDPATH) ./bin/authd --allow-registrations --require-email
build-authc:
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build authc
run-authc:
LD_LIBRARY_PATH=$(LDPATH) ./bin/authc
run-test:
crystal run src/libauth.cr
doc:
crystal docs
ACCESS_LOGS ?= ./access.log
serve-doc:
darkhttpd docs/ --addr 127.0.0.1 --port 35001 --log $(ACCESS_LOGS)