dmenu/config.mk

32 lines
754 B
Makefile
Raw Permalink Normal View History

2018-04-07 22:51:10 +01:00
# dmenu version
VERSION = 5.0
2018-04-07 22:51:10 +01:00
# paths
PREFIX = /usr/local
2019-02-08 21:25:44 +00:00
MANPREFIX = $(PREFIX)/share/man
2018-04-07 22:51:10 +01:00
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)
2019-02-08 21:25:44 +00:00
#FREETYPEINC = $(X11INC)/freetype2
2018-04-07 22:51:10 +01:00
# includes and libs
2019-02-08 21:25:44 +00:00
INCS = -I$(X11INC) -I$(FREETYPEINC)
LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS) -lXrender
2018-04-07 22:51:10 +01:00
# flags
2019-02-08 21:25:44 +00:00
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)
2018-04-07 22:51:10 +01:00
# compiler and linker
CC = cc