aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 19:26:58 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 19:26:58 +0100
commitb42c9662303d1a33ebe038d1895c08945cdbd40f (patch)
treec05b169b1d28e8d42b111290f9181d2cbad1138b /src/config.mk
parentMerge redshift.h into common.h (diff)
downloadredshift-ng-b42c9662303d1a33ebe038d1895c08945cdbd40f.tar.gz
redshift-ng-b42c9662303d1a33ebe038d1895c08945cdbd40f.tar.bz2
redshift-ng-b42c9662303d1a33ebe038d1895c08945cdbd40f.tar.xz
Cleanup and style update (avoid typedef)
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/config.mk')
-rw-r--r--src/config.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.mk b/src/config.mk
index 6e1e732..a473366 100644
--- a/src/config.mk
+++ b/src/config.mk
@@ -1,6 +1,8 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
+PACKAGE = redshift-ng
+
CC = c99
PKGCONFIG = pkg-config
@@ -16,6 +18,6 @@ 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
+ -DENABLE_COOPGAMMA -D'PACKAGE="$(PACKAGE)"'
CFLAGS = $$($(PKGCONFIG_CFLAGS) $(LIBS_PKGCONFIG))
LDFLAGS = $$($(PKGCONFIG_LDFLAGS) $(LIBS_PKGCONFIG)) -lm -lcoopgamma -lred