mirror of
https://github.com/danog/php-libtgvoip.git
synced 2024-11-30 04:19:26 +01:00
Update makefile to build libtgvoip
This commit is contained in:
parent
7b86455bf2
commit
2ef890573a
7
Makefile
7
Makefile
@ -125,7 +125,10 @@ OBJECTS = $(OBJECTS_CC:%.c=%.o)
|
|||||||
# From here the build instructions start
|
# 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}
|
${EXTENSION}: ${OBJECTS}
|
||||||
${CXX} -o $@ ${OBJECTS} ${LFLAGS}
|
${CXX} -o $@ ${OBJECTS} ${LFLAGS}
|
||||||
@ -140,5 +143,5 @@ install:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
${RM} ${EXTENSION} ${OBJECTS}
|
${RM} ${EXTENSION} ${OBJECTS}
|
||||||
|
cd libtgvoip/build && make clean
|
||||||
|
|
||||||
|
@ -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
|
## Documentation
|
||||||
|
Loading…
Reference in New Issue
Block a user