aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLena <lena@omega>2026-10-01 00:00:00 +0000
committerLena <lena@omega>2026-10-01 00:00:00 +0000
commit9fd2ebbaf3c74a9de5c25981699dd3ac404bcf9f (patch)
treebae34c28154948d4c334b739e27fca53692f8071 /Makefile
downloadusocks-9fd2ebbaf3c74a9de5c25981699dd3ac404bcf9f.tar.gz
Enter usocksHEADmaster
SOCKS5 CONNECT proxy for Linux 6.1 or newer: C99, raw io_uring, libc only. Each worker process runs one event loop with fixed 64 KB buffers per direction; -w N workers share the port through SO_REUSEPORT. IPv4, IPv6 and domain names, RFC 1929 authentication, TCP or unix socket listener.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6502618
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+PREFIX = /usr/local
+CFLAGS = -std=c99 -O2 -Wall -Wextra
+
+usocks: usocks.c
+
+install: usocks
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ install -m 755 usocks $(DESTDIR)$(PREFIX)/bin/usocks
+
+clean:
+ rm -f usocks
+
+.PHONY: install clean