27 lines
618 B
Makefile
27 lines
618 B
Makefile
# slock version
|
|
VERSION = 1.6-odweta
|
|
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
PREFIX = /usr
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
PKG_CONFIG := pkg-config
|
|
|
|
# compiler and linker flags
|
|
X11INC = $(shell $(PKG_CONFIG) --cflags x11 xft xrandr xinerama fontconfig freetype2)
|
|
X11LIB = $(shell $(PKG_CONFIG) --libs x11 xft xrandr xinerama fontconfig freetype2)
|
|
|
|
# includes and libs
|
|
INCS = ${X11INC}
|
|
LIBS = -lc -lcrypt ${X11LIB}
|
|
|
|
# flags
|
|
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H
|
|
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
|
LDFLAGS = -s ${LIBS}
|
|
COMPATSRC = explicit_bzero.c
|
|
|
|
CC = cc
|