Krolyxon
Commit d566ca8

Branches

Refs →

nsxivconfig.mk

42 lines · 1.3 KB · Makefile

1# nsxiv version
2VERSION = 31
3
4# PREFIX for install
5PREFIX = /usr/local
6MANPREFIX = $(PREFIX)/share/man
7EGPREFIX = $(PREFIX)/share/doc/nsxiv/examples
8
9# default value for optional dependencies. 1 = enabled, 0 = disabled
10OPT_DEP_DEFAULT = 1
11
12# autoreload backend: 1 = inotify, 0 = none
13HAVE_INOTIFY = $(OPT_DEP_DEFAULT)
14
15# optional dependencies, see README for more info
16HAVE_LIBFONTS = $(OPT_DEP_DEFAULT)
17HAVE_LIBEXIF = $(OPT_DEP_DEFAULT)
18
19# unused if imlib2 version is 1.8.0 or higher.
20# these options will be removed eventually.
21HAVE_LIBGIF = $(OPT_DEP_DEFAULT)
22HAVE_LIBWEBP = $(OPT_DEP_DEFAULT)
23
24# Compiler and linker
25CC = c99
26# CFLAGS, any additional compiler flags goes here
27CFLAGS = -Wall -pedantic -O2 -DNDEBUG
28# Uncomment for a debug build using gcc/clang
29# CFLAGS = -Wall -pedantic -DDEBUG -g3 -fsanitize=address,undefined
30# LDFLAGS = $(CFLAGS)
31
32# icons that will be installed via `make icon`
33ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png
34
35# Uncomment on OpenBSD
36# HAVE_INOTIFY = 0
37# lib_fonts_bsd_0 =
38# lib_fonts_bsd_1 = -lfreetype
39# inc_fonts_bsd_0 =
40# inc_fonts_bsd_1 = -I/usr/X11R6/include/freetype2
41# LDLIBS = -lz -L/usr/local/lib -L/usr/X11R6/lib $(lib_fonts_bsd_$(HAVE_LIBFONTS))
42# CPPFLAGS = -I/usr/local/include -I/usr/X11R6/include $(inc_fonts_bsd_$(HAVE_LIBFONTS))