summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2015-08-02 09:13:11 -0700
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2015-08-02 09:13:11 -0700
commit57c3fb36299bbd6d6c6682d90abcb840532ce486 (patch)
treef57d24418d93ceea69e93b4327eb7819bb0f5a46 /Makefile
parent55a23712ade74836be11feb9602f90d360aea44a (diff)
parent15f2279592032af1507de09ef31eba81aee53191 (diff)
Merge pull request #47 from czarkoff/sndio
Use SndIO for volume module on OpenBSD
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1823f3d..edbdc44 100644
--- a/Makefile
+++ b/Makefile
@@ -43,10 +43,6 @@ CFLAGS+=-I/usr/local/include/
LDFLAGS+=-L/usr/local/lib/
endif
-ifeq ($(OS),OpenBSD)
-LIBS+=-lossaudio
-endif
-
ifeq ($(OS),NetBSD)
LIBS+=-lprop
endif
@@ -72,6 +68,11 @@ CFLAGS += -idirafter yajl-fallback
OBJS:=$(wildcard src/*.c *.c)
OBJS:=$(OBJS:.c=.o)
+ifeq ($(OS),OpenBSD)
+OBJS:=$(filter-out src/pulse.o, $(OBJS))
+LIBS:=$(filter-out -lpulse, $(LIBS)) -lpthread
+endif
+
src/%.o: src/%.c include/i3status.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
@echo " CC $<"