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:
parent
b9b82a0e26
commit
d5f6739fcd
6
Makefile
6
Makefile
@ -12,7 +12,7 @@ OBJ_DIR := obj
|
||||
SRCs := $(wildcard $(SRC_DIR)/*.c)
|
||||
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
|
||||
|
||||
$(TARGET): $(OBJs)
|
||||
@ -25,5 +25,5 @@ $(OBJ_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
clean:
|
||||
rm ${TARGET}
|
||||
rm obj/*.o
|
||||
rm -f ${TARGET}
|
||||
rm -f obj/*.o
|
Loading…
Reference in New Issue
Block a user