forked from sippy/libg722
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 906 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: Makefile,v 1.1 2012/08/07 11:33:45 sobomax Exp $
LIB= g722
SHLIB_MAJOR= 0
PREFIX?= /usr/local
LIBDIR= ${PREFIX}/lib
MK_PROFILE= no
INCLUDEDIR= ${PREFIX}/include
MAN=
SRCS= g722_decode.c g722_encode.c
INCS= g722.h g722_private.h g722_encoder.h g722_decoder.h
WARNS?= 2
CFLAGS+= -I${.CURDIR} ${PICFLAG} -Wno-attributes
VERSION_DEF= ${.CURDIR}/ld_sugar/Versions.def
SYMBOL_MAPS= ${.CURDIR}/ld_sugar/Symbol.map
CFLAGS+= -DSYMBOL_VERSIONING
CLEANFILES+=test *.out
TDDIR= ${.CURDIR}/test_data
test: test.c lib${LIB}.a lib${LIB}.so.${SHLIB_MAJOR} ${TDDIR}/fullscale.g722 ${TDDIR}/pcminb.dat ${TDDIR}/test.checksum ${TDDIR}/test.g722 Makefile
rm -f ${TEST_OUT_FILES}
${CC} ${CFLAGS} -o ${.TARGET} test.c -lm -L. -l${LIB}
LD_LIBRARY_PATH=${.CURDIR} ${.CURDIR}/scripts/do-test.sh ${.CURDIR}/${.TARGET}
.include <bsd.lib.mk>
# XXX: fix ld error on Linux
LD_shared:= ${LD_shared:S/-soname /-soname=/}