aboutsummaryrefslogtreecommitdiff
path: root/.repos/dmenu/config.mk
diff options
context:
space:
mode:
authorMarvin Borner2022-05-31 14:34:49 +0200
committerMarvin Borner2022-05-31 14:39:35 +0200
commita56b6a121b31b82dcf7279e6eea60bbca1852fc5 (patch)
tree7627bb839310c4a4a3632b378ebe87bc031f61ff /.repos/dmenu/config.mk
parentb8be82d9113dd0fec9021aa573039cc64dbd849a (diff)
Sync
Diffstat (limited to '.repos/dmenu/config.mk')
-rw-r--r--.repos/dmenu/config.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/.repos/dmenu/config.mk b/.repos/dmenu/config.mk
new file mode 100644
index 0000000..05d5a3e
--- /dev/null
+++ b/.repos/dmenu/config.mk
@@ -0,0 +1,31 @@
+# dmenu version
+VERSION = 5.0
+
+# paths
+PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
+
+X11INC = /usr/X11R6/include
+X11LIB = /usr/X11R6/lib
+
+# Xinerama, comment if you don't want it
+XINERAMALIBS = -lXinerama
+XINERAMAFLAGS = -DXINERAMA
+
+# freetype
+FREETYPELIBS = -lfontconfig -lXft
+FREETYPEINC = /usr/include/freetype2
+# OpenBSD (uncomment)
+#FREETYPEINC = $(X11INC)/freetype2
+
+# includes and libs
+INCS = -I$(X11INC) -I$(FREETYPEINC)
+LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS)
+
+# flags
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
+CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
+LDFLAGS = $(LIBS)
+
+# compiler and linker
+CC = cc