1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-29 20:09:08 +01:00

Update makefile to build libtgvoip

This commit is contained in:
Daniil Gentili 2019-03-29 20:19:28 +01:00
parent 7b86455bf2
commit 2ef890573a
2 changed files with 6 additions and 3 deletions

View File

@ -125,7 +125,10 @@ OBJECTS = $(OBJECTS_CC:%.c=%.o)
# From here the build instructions start
#
all: ${OBJECTS} ${EXTENSION}
all: tgvoip ${OBJECTS} ${EXTENSION}
tgvoip:
cd libtgvoip && autoconf && ${MKDIR} build && cd build && ../configure --enable-desktop-dsp --enable-opus-music --enable-audio-callback --prefix=/usr && make -j$(shell nproc) && sudo make install && cd ../..
${EXTENSION}: ${OBJECTS}
${CXX} -o $@ ${OBJECTS} ${LFLAGS}
@ -140,5 +143,5 @@ install:
clean:
${RM} ${EXTENSION} ${OBJECTS}
cd libtgvoip/build && make clean

View File

@ -15,7 +15,7 @@ On Ubuntu/debian/any debian-based distro:
```
sudo apt-get install libopus-dev libssl-dev build-essential php$(echo "<?php echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;" | php)-dev && git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP && cd PHP-CPP && make -j$(nproc) && sudo make install && cd .. && git clone --recursive https://github.com/danog/php-libtgvoip && cd php-libtgvoip && make -j$(nproc) && sudo make install
sudo apt-get install libopus-dev libssl-dev build-essential php$(echo "<?php echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;" | php)-dev && git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP && cd PHP-CPP && make -j$(nproc) && sudo make install && cd .. && git clone --recursive https://github.com/danog/php-libtgvoip && cd php-libtgvoip && make && sudo make install
```
## Documentation