12345678910111213141516171819202122232425262728293031323334353637383940 |
- CFLAGS=-I"./include/" -I"./deps/libtorrent/include/" -I"./deps/"
- LDFLAGS= -Dwebtorrent=ON -DTORRENT_USE_OPENSSL -lpthread -lcurl -lcurlpp
- LIBTORRENT= ./deps/libtorrent/build/libtorrent-rasterbar.so.2.0.5
- LD_LIBRARY_PATH=./deps/libtorrent/build/
- all: | main
- # something to avoid prepending LD_LIBRARY_PATH=./deps/... every time.
- # better if compilted to just search in relative path to begin with
- patchelf --remove-needed libtorrent-rasterbar.so.2.0 cppia
- patchelf --add-needed ./deps/libtorrent/build/libtorrent-rasterbar.so.2.0 cppia
- main:
- g++ main.cpp $(CFLAGS) $(LDFLAGS) $(LIBTORRENT) -std=c++17 -o cppia -g
- ncurses:
- g++ demo_window.cpp -lcurses -o window
- .PHONY: clean
- clean:
- rm cppia
|