2022-04-21 23:14:03 +02:00
|
|
|
# nsxiv version
|
2023-01-15 10:27:25 +01:00
|
|
|
VERSION = 31
|
2022-04-21 23:14:03 +02:00
|
|
|
|
|
|
|
# PREFIX for install
|
|
|
|
PREFIX = /usr/local
|
|
|
|
MANPREFIX = $(PREFIX)/share/man
|
|
|
|
EGPREFIX = $(PREFIX)/share/doc/nsxiv/examples
|
|
|
|
|
|
|
|
# default value for optional dependencies. 1 = enabled, 0 = disabled
|
|
|
|
OPT_DEP_DEFAULT = 1
|
|
|
|
|
|
|
|
# autoreload backend: 1 = inotify, 0 = none
|
|
|
|
HAVE_INOTIFY = $(OPT_DEP_DEFAULT)
|
|
|
|
|
|
|
|
# optional dependencies, see README for more info
|
|
|
|
HAVE_LIBFONTS = $(OPT_DEP_DEFAULT)
|
|
|
|
HAVE_LIBEXIF = $(OPT_DEP_DEFAULT)
|
2023-01-08 11:02:56 +01:00
|
|
|
|
|
|
|
# unused if imlib2 version is 1.8.0 or higher.
|
|
|
|
# these options will be removed eventually.
|
|
|
|
HAVE_LIBGIF = $(OPT_DEP_DEFAULT)
|
2022-04-21 23:14:03 +02:00
|
|
|
HAVE_LIBWEBP = $(OPT_DEP_DEFAULT)
|
|
|
|
|
2022-04-28 06:07:31 +02:00
|
|
|
# Compiler and linker
|
|
|
|
CC = c99
|
2023-05-09 02:34:28 +02:00
|
|
|
# CFLAGS, any additional compiler flags goes here
|
|
|
|
CFLAGS = -Wall -pedantic -O2 -DNDEBUG
|
|
|
|
# Uncomment for a debug build using gcc/clang
|
|
|
|
# CFLAGS = -Wall -pedantic -g3 -fsanitize=address,undefined
|
|
|
|
# LDFLAGS = $(CFLAGS)
|
2022-04-21 23:14:03 +02:00
|
|
|
|
|
|
|
# icons that will be installed via `make icon`
|
|
|
|
ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png
|
2022-04-21 23:16:46 +02:00
|
|
|
|
|
|
|
# Uncomment on OpenBSD
|
|
|
|
# HAVE_INOTIFY = 0
|
|
|
|
# lib_fonts_bsd_0 =
|
|
|
|
# lib_fonts_bsd_1 = -lfreetype
|
|
|
|
# inc_fonts_bsd_0 =
|
|
|
|
# inc_fonts_bsd_1 = -I/usr/X11R6/include/freetype2
|
|
|
|
# LDLIBS = -lz -L/usr/local/lib -L/usr/X11R6/lib $(lib_fonts_bsd_$(HAVE_LIBFONTS))
|
2022-05-26 02:08:59 +02:00
|
|
|
# CPPFLAGS = -I/usr/local/include -I/usr/X11R6/include $(inc_fonts_bsd_$(HAVE_LIBFONTS))
|