g++ -I include/ -I include/gliese/ -I include/othello/ -c src/OthelloHeuristics.cpp -o obj/Debug/src/OthelloHeuristics.o
g++ -I include/ -I include/gliese/ -I include/othello/ -c src/OthelloNegamaxSearch.cpp -o obj/Debug/src/OthelloNegamaxSearch.o
g++ -I include/ -I include/gliese/ -I include/othello/ -c src/main.cpp -o obj/Debug/src/main.o
g++ -L lib -l othello -l SDL_image -l SDL_ttf -l SDL obj/Debug/src/main.o obj/Debug/src/OthelloHeuristics.o obj/Debug/src/OthelloNegamaxSearch.o -o bin/Debug/othello
В настоящее время я использую эти строки для создания игры, и она работает. Но так или иначе, чтобы объединить их в одну? (чтобы получить некоторую скорость). Благодарю!
вы можете так писать
g++ -I include/gliese/ -c src/OthelloHeuristics.cpp src/OthelloNegamaxSearch.cpp src/main.cpp
g++ -L lib -l othello -l SDL_image -l SDL_ttf -l SDL obj/Debug/src/*.o -o bin/Debug/othello