fix-build-warnings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user