forked from explosion-mental/sxiv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mk
41 lines (32 loc) · 1.08 KB
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# sxiv version (adding +1 on every big change I make)
VERSION = 26.25
# Customize below to fit your preferences
# paths
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
# autoreload backend (INOTIFY/NOP)
AUTORELOAD = INOTIFY
# giflib, libexif and libcurl (comment if you don't want them)
HAVE_GIFLIB = -lgif
GIFLIBFLAGS = -DHAVE_GIFLIB
HAVE_LIBEXIF = -lexif
LIBEXIFFLAGS = -DHAVE_LIBEXIF
HAVE_LIBCURL = -lcurl
LIBCURLFLAGS = -DHAVE_LIBCURL
# count, see readme
#ENABLE_COUNT = -DENABLE_COUNT
# freetype
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = /usr/X11R6/include/freetype2
# includes and libs
INCS = -I$(FREETYPEINC)
LIBS = $(LDLIBS) -lImlib2 -lX11 $(FREETYPELIBS) $(HAVE_LIBEXIF) $(HAVE_GIFLIB) $(HAVE_LIBCURL)
# flags
SXIVCPPFLAGS = -D_XOPEN_SOURCE=700 -DVERSION=\"$(VERSION)\" -DAUTO_$(AUTORELOAD) $(GIFLIBFLAGS) $(LIBCURLFLAGS) $(LIBEXIFFLAGS) $(ENABLE_COUNT)
SXIVCFLAGS = -std=c99 -pedantic -Wall $(INCS) $(SXIVCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
SXIVLDFLAGS = $(LIBS) $(LDFLAGS)
# compiler and linker
CC = gcc
#CC = cc