22f35d5af4
As OpenBSD manual for pause(3) stated, this function is made obsolete by sigsuspend(2). We may think it will be removed in future for this *nix. On linux, this require defining _POSIX_C_SOURCE to 1.
25 lines
494 B
Makefile
25 lines
494 B
Makefile
# spt version
|
|
VERSION = 0.2
|
|
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
PREFIX = /usr/local
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
INCS = -I. -I/usr/include
|
|
LIBS = -L/usr/lib
|
|
|
|
# libnotify, comment if you don't want it
|
|
DEFS = -DNOTIFY
|
|
INCS+= `pkg-config --cflags libnotify`
|
|
LIBS+= `pkg-config --libs libnotify`
|
|
|
|
# flags
|
|
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE
|
|
CFLAGS += -g -std=c99 -pedantic -Wall -Os ${INCS} ${DEFS} ${CPPFLAGS}
|
|
LDFLAGS += -g ${LIBS}
|
|
|
|
# compiler and linker
|
|
CC ?= cc
|