SLSCFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE $(CFLAGS)
SLSLDFLAGS = -L$(X11LIB) $(LDFLAGS)
-SLSLIBS = -lX11 $(OSSLIBS) $(LIBS)
+SLSLIBS = -lX11 $(OSLIBS) $(LIBS)
all: slstatus
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
-# OpenBSD (uncomment)
-#OSSLIBS = -lossaudio
-
# flags
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
LDFLAGS = -s
#!/bin/sh
-printf 'OS = %s\n' "$(uname)" > os.mk
+os="$(uname)"
+
+printf 'OS = %s\n' "$os" > os.mk
+
+if [ "$os" = "OpenBSD" ]
+then
+ printf 'OSLIBS = -lossaudio\n' >> os.mk
+fi