OSDN Git Service

Fix compiling on OpenBSD for OSS rather than OpenAL
[cinnamon-audio/cinnamon.git] / src / GNUmakefile
1 # Any copyright is dedicated to the Public Domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
3
4 # GNU makefile.
5
6 include gcc.mk
7
8 BACKEND?=openal
9
10 CURDIR=$(shell pwd)
11 ifeq "$(BACKEND)" "dsound"
12 LINK?=$(CXX)
13 else ifeq "$(BACKEND)" "oss"
14
15 EXTRALIBS=-lpthread
16 # Get OSS emulation on BSD's
17 EXTRALIBS+=$(if $(findstring $(shell uname),"BSD"),-lossaudio,)
18
19 LINK?="$(CC)"
20 else ifeq "$(BACKEND)" "openal"
21 EXTRALIBS=-lopenal
22 LINK?="$(CC)"
23 else
24 endif
25 LINK?="$(CC)"
26 include unix.mk