mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
8f07755834
It's clearer and doesn't risk having a non-zero filler value.
27 lines
700 B
Makefile
27 lines
700 B
Makefile
SOURCES := $(wildcard auto_tests/auto_test_support.c \
|
|
auto_tests/send_message_test.c \
|
|
testing/misc_tools.c \
|
|
toxav/*.c \
|
|
toxcore/*.c \
|
|
toxcore/*/*.c \
|
|
toxencryptsave/*.c \
|
|
third_party/cmp/*.c)
|
|
|
|
OBJECTS := $(SOURCES:.c=.o)
|
|
|
|
CC := ccomp
|
|
CFLAGS := -Wall -Werror \
|
|
-Wno-c11-extensions \
|
|
-Wno-unknown-pragmas \
|
|
-Wno-unused-variable \
|
|
-fstruct-passing -fno-unprototyped -g \
|
|
-D__COMPCERT__ \
|
|
-DDISABLE_VLA \
|
|
-DMIN_LOGGER_LEVEL=LOGGER_LEVEL_TRACE \
|
|
-Dinline= \
|
|
$(shell pkg-config --cflags libsodium opus vpx)
|
|
LDFLAGS := -lpthread $(shell pkg-config --libs libsodium opus vpx)
|
|
|
|
send_message_test: $(OBJECTS)
|
|
$(CC) -o $@ $+ $(LDFLAGS)
|