File: Makefile

package info (click to toggle)
asterisk 1%3A11.13.1~dfsg-2%2Bdeb8u5
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 48,196 kB
  • sloc: ansic: 550,573; sh: 12,057; cpp: 5,944; makefile: 3,079; perl: 3,076; yacc: 2,156; xml: 675; sql: 406; python: 381; tcl: 113; php: 62
file content (24 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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