aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.mk
blob: 9c0e1318d4656499036dd0230b862bab1acc1384 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PREFIX    = /usr
MANPREFIX = $(PREFIX)/share/man
LOCALEDIR = $(PREFIX)/share/locale

PACKAGE = redshift-ng

CC = c99

PKGCONFIG         = pkg-config
PKGCONFIG_CFLAGS  = $(PKGCONFIG) --cflags
PKGCONFIG_LDFLAGS = $(PKGCONFIG) --libs

DRM_LIBS     = libdrm
GEOCLUE_LIBS = glib-2.0 gio-2.0
RANDR_LIBS   = xcb xcb-randr
VIDMODE_LIBS = x11 xxf86vm

LIBS_PKGCONFIG = $(DRM_LIBS) $(GEOCLUE_LIBS) $(RANDR_LIBS) $(VIDMODE_LIBS)

CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE\
           -DENABLE_DRM -DENABLE_GEOCLUE2 -DENABLE_RANDR -DENABLE_VIDMODE\
           -DENABLE_COOPGAMMA
CFLAGS   = $$($(PKGCONFIG_CFLAGS)  $(LIBS_PKGCONFIG))
LDFLAGS  = $$($(PKGCONFIG_LDFLAGS) $(LIBS_PKGCONFIG)) -lm -lcoopgamma -lred