99577c8e88
Also fix shell return value detection.
25 lines
655 B
Makefile
25 lines
655 B
Makefile
# st version
|
|
VERSION = 0.7
|
|
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
PREFIX = /usr/local
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
PKGCFG = fontconfig wayland-client wayland-cursor xkbcommon wld
|
|
XDG_SHELL_PROTO = `pkg-config --variable=pkgdatadir wayland-protocols`/unstable/xdg-shell/xdg-shell-unstable-v6.xml
|
|
|
|
# includes and libs
|
|
INCS = -I. -I/usr/include `pkg-config --cflags ${PKGCFG}`
|
|
LIBS = -L/usr/lib -lc -lm -lrt -lutil `pkg-config --libs ${PKGCFG}`
|
|
|
|
# flags
|
|
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=600
|
|
CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
|
|
LDFLAGS += -g ${LIBS}
|
|
|
|
# compiler and linker
|
|
# CC = cc
|
|
|