fix-build-warnings

This commit is contained in:
wt
2025-04-15 11:29:44 +07:00
parent 05dc4c299f
commit 903a4268aa
7 changed files with 17 additions and 25 deletions
+5 -4
View File
@@ -3,6 +3,7 @@ STRIP=strip
BIN=build
SRC=src
PREFIX=/usr
CFLAGS=-Wall
default: all
@@ -11,16 +12,16 @@ all: build
build: smol smol-pthreads smol-http smol-http-pthreads
smol:
$(CC) -o $(BIN)/smol $(SRC)/smol.c -lcrypto -lssl
$(CC) -o $(BIN)/smol $(SRC)/smol.c -lcrypto -lssl $(CFLAGS)
smol-pthreads:
$(CC) -o $(BIN)/smol-pthreads $(SRC)/smol-pthreads.c -lcrypto -lssl
$(CC) -o $(BIN)/smol-pthreads $(SRC)/smol-pthreads.c -lcrypto -lssl $(CFLAGS)
smol-http:
$(CC) -o $(BIN)/smol-http $(SRC)/smol-http.c
$(CC) -o $(BIN)/smol-http $(SRC)/smol-http.c $(CFLAGS)
smol-http-pthreads:
$(CC) -o $(BIN)/smol-http-pthreads $(SRC)/smol-http-pthreads.c
$(CC) -o $(BIN)/smol-http-pthreads $(SRC)/smol-http-pthreads.c $(CFLAGS)
clean:
if [ -d $(BIN) ]; then rm -rv $(BIN);mkdir -pv $(BIN);fi