2023-01-21 03:26:56 +01:00
|
|
|
LDPATH ?= /tmp/libipc/zig-impl/build
|
|
|
|
SRC ?= ./bin/some-crystal-app
|
|
|
|
|
|
|
|
VG_OPTS = --leak-check=full -v
|
2023-01-21 19:08:24 +01:00
|
|
|
VG_OPTS += --show-leak-kinds=all
|
2023-01-21 03:26:56 +01:00
|
|
|
VG_OPTS += --suppressions=valgrind.suppressions
|
|
|
|
VG_OPTS += --gen-suppressions=all
|
|
|
|
|
2023-01-21 05:10:55 +01:00
|
|
|
build:
|
|
|
|
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build
|
|
|
|
|
2023-01-21 03:26:56 +01:00
|
|
|
valgrind:
|
|
|
|
LD_LIBRARY_PATH=$(LDPATH) valgrind $(VG_OPTS) $(SRC)
|
2023-01-21 05:10:55 +01:00
|
|
|
|
|
|
|
run:
|
|
|
|
LD_LIBRARY_PATH=$(LDPATH) $(SRC)
|
2023-02-01 04:45:08 +01:00
|
|
|
|
2023-02-01 20:32:21 +01:00
|
|
|
build-pongd:
|
|
|
|
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build pongd
|
|
|
|
|
2023-02-01 04:45:08 +01:00
|
|
|
run-pongd:
|
|
|
|
LD_LIBRARY_PATH=$(LDPATH) ./bin/pongd
|
|
|
|
|
2023-02-01 20:32:21 +01:00
|
|
|
build-authd:
|
|
|
|
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build authd
|
|
|
|
|
|
|
|
run-authd:
|
2023-02-03 04:07:56 +01:00
|
|
|
@-rm /tmp/libipc-run/auth 2>/dev/null || true
|
|
|
|
# LD_LIBRARY_PATH=$(LDPATH) ./bin/authd -R -E
|
2023-02-03 10:24:05 +01:00
|
|
|
LD_LIBRARY_PATH=$(LDPATH) ./bin/authd --allow-registrations --require-email $(PARAMS)
|
2023-02-01 20:32:21 +01:00
|
|
|
|
2023-02-03 02:09:03 +01:00
|
|
|
build-authc:
|
|
|
|
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build authc
|
|
|
|
|
|
|
|
run-authc:
|
|
|
|
LD_LIBRARY_PATH=$(LDPATH) ./bin/authc
|
|
|
|
|
2023-02-01 04:45:08 +01:00
|
|
|
run-test:
|
|
|
|
crystal run src/libauth.cr
|
2023-02-03 05:37:42 +01:00
|
|
|
|
|
|
|
doc:
|
|
|
|
crystal docs
|
|
|
|
|
|
|
|
ACCESS_LOGS ?= ./access.log
|
|
|
|
serve-doc:
|
|
|
|
darkhttpd docs/ --addr 127.0.0.1 --port 35001 --log $(ACCESS_LOGS)
|