aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPlex <thinkplex@riseup.net>2022-02-04 19:16:30 +0100
committerPlex <thinkplex@riseup.net>2022-02-04 19:16:30 +0100
commit28b41ee492805971632e1d65ab9f855ce837767b (patch)
tree8fee2d3206bb74fd1117536576a391a8d1725e33 /Makefile
parentc71e08d9daa3444318c6f768894b97b1b6d65bc9 (diff)
Factored the usage() function
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3119e48..51f04a8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
CC=clang
-CFLAGS=-Wall -g
+CFLAGS=-Wall -g -I./include
+PREFIX=~/.local
mcping: mcping.c mctypes.o mcnetwork.o
$(CC) $(CFLAGS) $^ -o $@
@@ -7,8 +8,15 @@ mcping: mcping.c mctypes.o mcnetwork.o
%.o: %.c %.h
$(CC) $(CFLAGS) -c $<
+test: mcping
+ ./mcping 137.74.234.16:2001 | jq '.players'
+ ./mcping mc.seisan.fr | jq '.players'
+
lint:
indent -kr -ts4 *.c
clean:
rm -f *.o *~
+
+install: mcping
+ cp $^ $(PREFIX)/bin