aboutsummaryrefslogtreecommitdiffstats
path: root/addons/mp3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mp3/Makefile')
-rw-r--r--addons/mp3/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/mp3/Makefile b/addons/mp3/Makefile
new file mode 100644
index 000000000..7cd0b58d1
--- /dev/null
+++ b/addons/mp3/Makefile
@@ -0,0 +1,24 @@
+MP3OBJS=common.o dct64_i386.o decode_ntom.o layer3.o tabinit.o interface.o
+
+ifeq ($(OSARCH),FreeBSD)
+OSVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
+CFLAGS+=$(if $(OSVERSION)<500016,-D_THREAD_SAFE)
+LIBS+=$(if $(OSVERSION)<502102,-lc_r,-pthread)
+INCLUDE+=-I/usr/local/include
+CFLAGS+=$(shell if [ -d /usr/local/include/spandsp ]; then echo "-I/usr/local/include/spandsp"; fi)
+endif # FreeBSD
+
+ifeq ($(OSARCH),NetBSD)
+CFLAGS+=-pthread
+INCLUDE+=-I/usr/local/include
+endif
+
+ifeq ($(OSARCH),OpenBSD)
+CFLAGS+=-pthread
+endif
+
+all: $(MP3OBJS)
+
+clean:
+ rm -f *.o *.so *~
+ rm -f .*.o.d