2015-11-28 13:08:54 +00:00
|
|
|
# spt version
|
2020-06-14 16:41:16 +00:00
|
|
|
VERSION = 0.5
|
2015-11-28 13:08:54 +00:00
|
|
|
|
|
|
|
# Customize below to fit your system
|
|
|
|
|
|
|
|
# paths
|
|
|
|
PREFIX = /usr/local
|
|
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
|
2016-07-11 09:32:47 +00:00
|
|
|
INCS = -I. -I/usr/include
|
|
|
|
LIBS = -L/usr/lib
|
|
|
|
|
|
|
|
# libnotify, comment if you don't want it
|
2016-05-13 15:13:23 +00:00
|
|
|
DEFS = -DNOTIFY
|
2016-07-11 09:32:47 +00:00
|
|
|
INCS+= `pkg-config --cflags libnotify`
|
|
|
|
LIBS+= `pkg-config --libs libnotify`
|
2015-11-28 13:08:54 +00:00
|
|
|
|
|
|
|
# flags
|
2018-11-16 04:09:51 +00:00
|
|
|
CPPFLAGS += -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=199309
|
2016-05-13 15:13:23 +00:00
|
|
|
CFLAGS += -g -std=c99 -pedantic -Wall -Os ${INCS} ${DEFS} ${CPPFLAGS}
|
2015-11-28 13:08:54 +00:00
|
|
|
LDFLAGS += -g ${LIBS}
|
|
|
|
|
|
|
|
# compiler and linker
|
2016-07-11 09:32:47 +00:00
|
|
|
CC ?= cc
|