diff --git a/Makefile b/Makefile index 2a86625..d85e372 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 06f0787..223acf5 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ On Ubuntu/debian/any debian-based distro: ``` -sudo apt-get install libopus-dev libssl-dev build-essential php$(echo "