2020-05-17 22:01:46 +02:00
|
|
|
# program name
|
2020-05-16 00:02:23 +02:00
|
|
|
PROG = xmenu
|
|
|
|
|
|
|
|
# paths
|
2020-12-19 08:54:38 +01:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
MANPREFIX ?= ${PREFIX}/share/man
|
2020-05-16 00:02:23 +02:00
|
|
|
|
2020-12-19 08:54:38 +01:00
|
|
|
LOCALINC ?= /usr/local/include
|
|
|
|
LOCALLIB ?= /usr/local/lib
|
2020-06-01 16:24:24 +02:00
|
|
|
|
2020-12-19 08:54:38 +01:00
|
|
|
X11INC ?= /usr/X11R6/include
|
|
|
|
X11LIB ?= /usr/X11R6/lib
|
2020-05-16 00:02:23 +02:00
|
|
|
|
2020-12-19 08:54:38 +01:00
|
|
|
FREETYPEINC ?= /usr/include/freetype2
|
2020-05-19 03:27:56 +02:00
|
|
|
# OpenBSD (uncomment)
|
2020-06-01 01:29:46 +02:00
|
|
|
#FREETYPEINC = ${X11INC}/freetype2
|
2020-05-19 03:27:56 +02:00
|
|
|
|
2020-05-16 00:02:23 +02:00
|
|
|
# includes and libs
|
2020-12-19 08:54:38 +01:00
|
|
|
INCS := -I${LOCALINC} -I${X11INC} -I${FREETYPEINC}
|
|
|
|
LIBS := -L${LOCALLIB} -L${X11LIB} -lfontconfig -lXft -lX11 -lXinerama -lImlib2
|
2020-05-16 00:02:23 +02:00
|
|
|
|
|
|
|
# flags
|
2020-12-19 08:54:38 +01:00
|
|
|
CPPFLAGS :=
|
|
|
|
CFLAGS := -Wall -Wextra ${INCS} ${CPPFLAGS}
|
|
|
|
LDFLAGS := ${LIBS}
|
2020-05-16 00:02:23 +02:00
|
|
|
|
|
|
|
# compiler and linker
|
|
|
|
CC = cc
|