From 32203314923a9890db67cce3023146d2fff3b793 Mon Sep 17 00:00:00 2001 From: tic Date: Sun, 12 Nov 2017 14:33:06 +0300 Subject: [PATCH] makefile fix --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c8259d3..0fa491c 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,12 @@ MINGW_LINKER_FLAGS= \ -mwindows LINUX_INCLUDES= \ - `pkg-config --cflags gtk+-3.0` + `pkg-config --cflags gtk+-3.0` \ + `sdl2-config --cflags` LINUX_LIBS= \ - `pkg-config --libs gtk+-3.0` + `pkg-config --libs gtk+-3.0` \ + `sdl2-config --static-libs` LINUX64_LIBS= \ $(LINUX_LIBS) \ @@ -54,7 +56,6 @@ LINUX_LINKER_LTO_FLAGS= \ LINUX_LINKER_FLAGS= \ -D_GNU_SOURCE \ - -lSDL2 \ -llua5.3 \ -ldl \ -lm \ @@ -308,7 +309,7 @@ linux32-lto-pro: make linux32-lto OPT="$(OPT)" arm-lto: - $(CC) $(OPT_ARM) $(SOURCES) $(TIC80_SRC) $(OPT) $(INCLUDES) $(LINUX_ARM_LIBS) $(LINUX_LINKER_LTO_FLAGS) -flto -o bin/tic + $(CC) $(LINUX_INCLUDES) $(OPT_ARM) $(SOURCES) $(TIC80_SRC) $(OPT) $(INCLUDES) $(LINUX_ARM_LIBS) $(LINUX_LINKER_LTO_FLAGS) -flto -o bin/tic arm-lto-pro: $(eval OPT += $(OPT_PRO))