From 15f2279592032af1507de09ef31eba81aee53191 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Fri, 31 Jul 2015 01:51:40 +0200 Subject: Use SndIO for volume module on OpenBSD * add audio(4) code by Robert Nagy * disable PulseAudio While at OpenBSD support, add "-pthread" to LIBS. --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 $<" -- cgit v1.2.3