<commit_before>##
## Makefile for GUIslice library - LINUX
## - <NAME>
## - https://www.impulseadventure.com/elec/guislice-gui.html
## - https://github.com/ImpulseAdventure/GUIslice
##
## NOTE: This Makefile handles both SDL1.2 and SDL2 compilation.
##       A simpler Makefile can be used if this flexibility is
##       not required.

DEBUG = -O3
CC = gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe -g
LDFLAGS = -L/usr/local/lib

GSLC_CORE = ../src/GUIslice.c ../src/GUIslice_ex.c ../src/GUIslice_config_linux.h

# ---------------------------------------------------------------------------
# Define compiler flags for GUIslice
# - Select the graphics driver by uncommenting one of the following lines
#   and edit GUIslice_config.h to set the appropriate #define DRV_DISP_*
#   Example for SDL1:
#     Makefile:            GSLC_DRV := SDL1
#     GUIslice_config.h:   #define DRV_DISP_SDL1
#
# NOTE: One can also override this from the command-line as follows:
#       make gslc-ex04 GSLC_DRV=SDL2
#
GSLC_DRV := SDL1
#GSLC_DRV := SDL2

# Define any extra linker settings
# - For tslib (GUIslice_config.h has #define DRV_TOUCH_TSLIB), add "-lts"
#GSLC_LDLIB_EXTRA := -lm
GSLC_LDLIB_EXTRA := -lm -lts<commit_msg>Add GSLC_USE_TSLIB parameter to LINUX Makefile - Should mean that users no longer need to modify the Makefile variable   GSLC_LDLIB_EXTRA for tslib mode.<commit_after>##
## Makefile for GUIslice library - LINUX
## - <NAME>
## - https://www.impulseadventure.com/elec/guislice-gui.html
## - https://github.com/ImpulseAdventure/GUIslice
##
## NOTE: This Makefile handles both SDL1.2 and SDL2 compilation.
##       A simpler Makefile can be used if this flexibility is
##       not required.

DEBUG = -O3
CC = gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe -g
LDFLAGS = -L/usr/local/lib

GSLC_CORE = ../src/GUIslice.c ../src/GUIslice_ex.c ../src/GUIslice_config_linux.h

# ---------------------------------------------------------------------------
# Define compiler flags for GUIslice
# - Select the graphics driver by uncommenting one of the following lines
#   and edit GUIslice_config.h to set the appropriate #define DRV_DISP_*
#   Example for SDL1:
#     Makefile:            GSLC_DRV := SDL1
#     GUIslice_config.h:   #define DRV_DISP_SDL1
#
# NOTE: One can also override this from the command-line as follows:
#       make gslc-ex04 GSLC_DRV=SDL2
#
GSLC_DRV := SDL1
#GSLC_DRV := SDL2

# Define any extra linker settings
# - For tslib (GUIslice_config.h has #define DRV_TOUCH_TSLIB), add "-lts"
# - If GUIslice config is using DRV_TOUCH_TSLIB mode, then add the
#   tslib into the linker libraries by passing GSLC_USE_TSLIB=1 on
#   the make command-line:
#        make gslc-ex04 GSLC_DRV=SDL1 GSLC_USE_TSLIB=1
#   If GUIslice config is not using DRV_TOUCH_TSLIB mode, then either
#   pass 0 for GSLC_USE_TSLIB to make or skip the parameter altogether:
#        make gslc-ex04 GSLC_DRV=SDL1
#        make gslc-ex04 GSLC_DRV=SDL1 GSLC_USE_TSLIB=0
#GSLC_LDLIB_EXTRA := -lm
#GSLC_LDLIB_EXTRA := -lm -lts

ifndef GSLC_USE_TSLIB
  GSLC_LDLIB_EXTRA := -lm
  $(info GUIslice touch mode: tslib not enabled)
else
  ifeq (1,${GSLC_USE_TSLIB})
    $(info GUIslice touch mode: tslib enabled)
    GSLC_LDLIB_EXTRA := -lm -lts
  else
    $(info GUIslice touch mode: tslib not enabled)
    GSLC_LDLIB_EXTRA := -lm
  endif
endif
{'fraction_non_alphanumeric': 0.14042303172737955, 'fraction_numerical': 0.011163337250293772, 'mean_word_length': 2.9182968929804374, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3340468', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1228, 'n_words': 347}