mp3/Makefile
Russell Bryant 4f67a94bfe Import mp3 lib used by format_mp3
git-svn-id: http://svn.digium.com/svn/thirdparty/mp3/trunk@180 dd19aba0-a6ef-428c-9d3a-61817a986440
2010-08-03 18:17:14 +00:00

24 lines
601 B
Makefile

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