From 43ca840658fdf9b1cde5afd65f57cc1c89b8a662 Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 24 Jan 2018 14:48:01 +0000 Subject: [PATCH] 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`. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4221485..83d44be 100644 --- a/Makefile +++ b/Makefile @@ -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