added websocket smol server

This commit is contained in:
wt committed 2025-04-15 17:07:40 +07:00
1 parent afa63acf85
commit d59a7fc6b5
6 files changed
+250 -3

No files matched your search

+7 -2
View File
@@ -9,7 +9,7 @@ default: all
all: clean build
build: smol smol-pthreads smol-http smol-http-pthreads
build: smol smol-pthreads smol-http smol-http-pthreads ws
smol:
$(CC) -o $(BIN)/smol $(SRC)/smol.c -lcrypto -lssl $(CFLAGS)
@@ -23,6 +23,9 @@ smol-http:
smol-http-pthreads:
$(CC) -o $(BIN)/smol-http-pthreads $(SRC)/smol-http-pthreads.c $(CFLAGS)
ws:
$(CC) -o $(BIN)/ws $(SRC)/ws.c $(CFLAGS) -lcrypto -lssl
clean:
if [ -d $(BIN) ]; then rm -rv $(BIN);mkdir -pv $(BIN);else mkdir -pv $(BIN);fi
@@ -32,6 +35,7 @@ install:
$(STRIP) $(PREFIX)/bin/smol-pthreads
$(STRIP) $(PREFIX)/bin/smol-http
$(STRIP) $(PREFIX)/bin/smol-http-pthreads
$(STRIP) $(PREFIX)/bin/ws
uninstall: remove
@@ -39,4 +43,5 @@ remove:
if [ -f $(PREFIX)/bin/smol ];then rm -v $(PREFIX)/bin/smol;fi
if [ -f $(PREFIX)/bin/smol-pthreads ];then rm -v $(PREFIX)/bin/smol-pthreads;fi
if [ -f $(PREFIX)/bin/smol-http ];then rm -v $(PREFIX)/bin/smol-http;fi
if [ -f $(PREFIX)/bin/smol-http-pthreads ];then rm -v $(PREFIX)/bin/smol-http-pthreads;fi
if [ -f $(PREFIX)/bin/smol-http-pthreads ];then rm -v $(PREFIX)/bin/smol-http-pthreads;fi
if [ -f $(PREFIX)/bin/ws ];then rm -v $(PREFIX)/bin/ws;fi