Files: cec6448afd2f0c42739c510e602283f56518510c / Makefile
932 bytesRaw
1 | BIN = sbotc |
2 | |
3 | PREFIX = /usr/local |
4 | BINDIR = $(PREFIX)/bin |
5 | MANDIR = $(PREFIX)/share/man |
6 | |
7 | CFLAGS = -Wall -Werror -Wextra |
8 | |
9 | ifdef STATIC |
10 | LDLIBS = -l:libsodium.a |
11 | else |
12 | LDLIBS = -lsodium |
13 | endif |
14 | |
15 | all: $(BIN) |
16 | |
17 | $(BIN): $(BIN).c jsmn.c |
18 | |
19 | install: all |
20 | @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 |
21 | @cp -vf $(BIN) $(DESTDIR)$(BINDIR) |
22 | @cp -vf $(BIN).1 $(DESTDIR)$(MANDIR)/man1 |
23 | |
24 | link: all |
25 | @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 |
26 | @ln -svf $(shell realpath $(BIN)) $(DESTDIR)$(BINDIR) |
27 | @ln -svf $(shell realpath $(BIN).1) $(DESTDIR)$(MANDIR)/man1 |
28 | |
29 | uninstall: |
30 | @rm -vf \ |
31 | $(DESTDIR)$(BINDIR)/$(BIN) \ |
32 | $(DESTDIR)$(MANDIR)/man1/$(BIN).1 |
33 | |
34 | test-shs1: test-shs1-client test-shs1-server |
35 | |
36 | test-shs1-client: |
37 | shs1testclient ./test-shs-client-inner.sh $(SHS1_TEST_SEED) |
38 | |
39 | test-shs1-server: |
40 | shs1testserver ./test-shs-server-inner.sh $(SHS1_TEST_SEED) |
41 | |
42 | clean: |
43 | @rm -vf $(BIN) |
44 | |
45 | .PHONY: |
46 | all install link uninstall test-shs1 clean |
47 |
Built with git-ssb-web