aboutsummaryrefslogtreecommitdiffstats
path: root/redshift/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-27 18:36:26 +0100
committerMattias Andrée <m@maandree.se>2025-03-27 18:36:26 +0100
commit037b945a9f253b97faffc02d8475574e75203516 (patch)
treeb008e7d77e9daaeaaa8e7854728d715df5aafb77 /redshift/config.mk
parenttodo list housekeeping (diff)
downloadredshift-ng-037b945a9f253b97faffc02d8475574e75203516.tar.gz
redshift-ng-037b945a9f253b97faffc02d8475574e75203516.tar.bz2
redshift-ng-037b945a9f253b97faffc02d8475574e75203516.tar.xz
one dir per subproject
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'redshift/config.mk')
-rw-r--r--redshift/config.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/redshift/config.mk b/redshift/config.mk
new file mode 100644
index 0000000..00a032c
--- /dev/null
+++ b/redshift/config.mk
@@ -0,0 +1,20 @@
+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
+
+GEOCLUE_LIBS = glib-2.0 gio-2.0
+
+LIBS_PKGCONFIG = $(GEOCLUE_LIBS) libgamma
+
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE\
+ -DENABLE_GEOCLUE2 -DENABLE_COOPGAMMA
+CFLAGS = $$($(PKGCONFIG_CFLAGS) $(LIBS_PKGCONFIG))
+LDFLAGS = $$($(PKGCONFIG_LDFLAGS) $(LIBS_PKGCONFIG)) -lm -lcoopgamma -lred -lgeome