From 6e8f7e6d873375a469fbf2442c019e7e9055fcd7 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 20 Nov 2017 09:46:46 +0300 Subject: [PATCH] CHIP compilation flgs --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fe7eee3..1eb178e 100644 --- a/Makefile +++ b/Makefile @@ -23,12 +23,15 @@ MINGW_LINKER_FLAGS= \ -lws2_32 \ -mwindows +GTK_INCLUDES= `pkg-config --cflags gtk+-3.0` +GTK_LIBS= `pkg-config --libs gtk+-3.0` + LINUX_INCLUDES= \ - `pkg-config --cflags gtk+-3.0` \ + $(GTK_INCLUDES) \ `sdl2-config --cflags` LINUX_LIBS= \ - `pkg-config --libs gtk+-3.0` \ + $(GTK_LIBS) \ `sdl2-config --static-libs` LINUX64_LIBS= \ @@ -308,7 +311,7 @@ linux32-lto-pro: make linux32-lto OPT="$(OPT)" chip-lto: - $(CC) $(LINUX_INCLUDES) $(SOURCES) $(TIC80_SRC) $(OPT) -D__CHIP__ $(INCLUDES) $(LINUX_ARM_LIBS) $(LINUX_LINKER_LTO_FLAGS) -flto -o bin/tic + $(CC) $(LINUX_INCLUDES) $(GTK_INCLUDES) $(SOURCES) $(TIC80_SRC) $(OPT) -D__CHIP__ $(INCLUDES) $(LINUX_ARM_LIBS) $(GTK_LIBS) $(LINUX_LINKER_LTO_FLAGS) -flto -o bin/tic chip-lto-pro: $(eval OPT += $(OPT_PRO))