Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
battery_perc: Port to OpenBSD
[slstatus.git]
/
config.mk
diff --git
a/config.mk
b/config.mk
index
6fbf696
..
a148da4
100644
(file)
--- a/
config.mk
+++ b/
config.mk
@@
-4,13
+4,20
@@
VERSION = 0
# customize below to fit your system
# paths
# customize below to fit your system
# paths
-PREFIX
= /usr/local
+PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
+# OpenBSD (uncomment)
+#OSSLIBS = -lossaudio
+
# flags
# flags
+CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
-LDFLAGS = -s
-LIBS =
+LDFLAGS = -L$(X11LIB) -s
+LDLIBS = -lX11 ${OSSLIBS}
+
+# compiler and linker
+CC = cc