diff options
author | Quentin Rameau <quinq@fifth.space> | 2018-04-30 16:13:12 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-04-30 16:27:07 +0200 |
commit | 2ea3d46f1341716daa1370f0f19d1fc571c3e63a (patch) | |
tree | b0a1d2c09b84a8c211091cf6e610dba71dfbbae8 | |
parent | 95665e437b8f556db4d5499e189e224e3c6e6a12 (diff) |
Makefile: move OS-specific libs to configure script
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | config.mk | 3 | ||||
-rwxr-xr-x | configure | 9 |
3 files changed, 9 insertions, 5 deletions
@@ -29,7 +29,7 @@ COM =\ SLSCFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE $(CFLAGS) SLSLDFLAGS = -L$(X11LIB) $(LDFLAGS) -SLSLIBS = -lX11 $(OSSLIBS) $(LIBS) +SLSLIBS = -lX11 $(OSLIBS) $(LIBS) all: slstatus @@ -10,9 +10,6 @@ MANPREFIX = ${PREFIX}/share/man X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib -# OpenBSD (uncomment) -#OSSLIBS = -lossaudio - # flags CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os LDFLAGS = -s @@ -1,3 +1,10 @@ #!/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 |