aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.mk')
-rw-r--r--src/config.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/config.mk b/src/config.mk
new file mode 100644
index 0000000..0e0b2fd
--- /dev/null
+++ b/src/config.mk
@@ -0,0 +1,21 @@
+PREFIX = /usr
+MANPREFIX = $(PREFIX)/share/man
+
+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