1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 16:13:02 +01:00

Conditionally compile api.c and python_api.c contents.

Based on `-DPYTHON`, instead of based on which files are listed in the
source list. This simplifies people's lives when compiling from the
command line with `cc *.c`.
This commit is contained in:
iphydf 2018-01-24 14:48:01 +00:00
parent 685837357b
commit 43ca840658
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -3,7 +3,7 @@ CFG_DIR = $(BASE_DIR)/cfg
-include $(CFG_DIR)/global_vars.mk
LIBS = toxcore ncursesw libconfig
LIBS = toxcore ncursesw libconfig libqrencode
CFLAGS = -std=gnu99 -pthread -Wall -g -fstack-protector-all
CFLAGS += '-DTOXICVER="$(VERSION)"' -DHAVE_WIDECHAR -D_XOPEN_SOURCE_EXTENDED -D_FILE_OFFSET_BITS=64