mirror of
https://codeberg.org/nsxiv/nsxiv
synced 2024-11-11 07:10:50 +00:00
112ba3a2fc
1. `c99` doesn't exist on openbsd 2. `c99` behaves weirdly on macos (doesn't support -Wall) since make will already set CC (required by POSIX if the implementation supports C, see `man 1p make`) to something appropriate (or it might be set in the environment) go ahead and remove explicitly setting it on our end. Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/455 Reviewed-by: TAAPArthur <taaparthur@noreply.codeberg.org>
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# nsxiv version
|
|
VERSION = 31
|
|
|
|
# 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)
|
|
|
|
# unused if imlib2 version is 1.8.0 or higher.
|
|
# these options will be removed eventually.
|
|
HAVE_LIBGIF = $(OPT_DEP_DEFAULT)
|
|
HAVE_LIBWEBP = $(OPT_DEP_DEFAULT)
|
|
|
|
# CFLAGS, any additional compiler flags goes here
|
|
CFLAGS = -Wall -pedantic -O2 -DNDEBUG
|
|
# Uncomment for a debug build using gcc/clang
|
|
# CFLAGS = -Wall -pedantic -DDEBUG -g3 -fsanitize=address,undefined
|
|
# LDFLAGS = $(CFLAGS)
|
|
|
|
# icons that will be installed via `make icon`
|
|
ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png
|
|
|
|
# Uncomment on OpenBSD
|
|
# HAVE_INOTIFY = 0
|
|
# lib_fonts_bsd_0 =
|
|
# lib_fonts_bsd_1 = -lfreetype -L/usr/X11R6/lib/freetype2
|
|
# inc_fonts_bsd_0 =
|
|
# inc_fonts_bsd_1 = -I/usr/X11R6/include/freetype2
|
|
# CPPFLAGS = -I/usr/X11R6/include -I/usr/local/include $(inc_fonts_bsd_$(HAVE_LIBFONTS))
|
|
# LDLIBS = -L/usr/X11R6/lib -L/usr/local/lib $(lib_fonts_bsd_$(HAVE_LIBFONTS))
|