![Laslo Hunhold](/assets/img/avatar_default.png)
d-flag: There's no need for that, use the &-operator or fork+exec in a non-shell-context. In the latter case you get the PID for free. v-flag: If you want to find out which version of a package is installed, consult your package manager. That's his job.
20 lines
360 B
Makefile
20 lines
360 B
Makefile
# slstatus version
|
|
VERSION = 0
|
|
|
|
# Customize below to fit your system
|
|
|
|
#paths
|
|
PREFIX = /usr/local
|
|
MANPREFIX = ${PREFIX}/man
|
|
|
|
X11INC = /usr/X11R6/include
|
|
X11LIB = /usr/X11R6/lib
|
|
|
|
# flags
|
|
CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
|
|
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-unused -Os
|
|
LDFLAGS = -L$(X11LIB) -s
|
|
LDLIBS = -lX11
|
|
|
|
# compiler and linker
|
|
CC = cc
|