1
0

In Makefile added _POSIX_C_SOURCE=200112L in order to use getaddrinfo(). Also added -f flag to an rm util to ignore non-existent files.

This commit is contained in:
Alexander Andreev 2024-03-24 19:29:45 +04:00
parent b9b82a0e26
commit d5f6739fcd
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -12,7 +12,7 @@ OBJ_DIR := obj
SRCs := $(wildcard $(SRC_DIR)/*.c) SRCs := $(wildcard $(SRC_DIR)/*.c)
OBJs := $(SRCs:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) OBJs := $(SRCs:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
CFLAGS = --std=c99 -O3 -Wall -Werror -Wextra -pedantic CFLAGS = --std=c99 -D_POSIX_C_SOURCE=200112L -O3 -Wall -Werror -Wextra -pedantic
LDFLAGS += -lportaudio -lopus -lsodium LDFLAGS += -lportaudio -lopus -lsodium
$(TARGET): $(OBJs) $(TARGET): $(OBJs)
@ -25,5 +25,5 @@ $(OBJ_DIR):
mkdir -p $@ mkdir -p $@
clean: clean:
rm ${TARGET} rm -f ${TARGET}
rm obj/*.o rm -f obj/*.o