1234567891011121314151617181920212223242526272829 |
- gcc:
- g++ a.cpp -c -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
- g++ b.cpp -c -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
- g++ personajes.cpp -c -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
- g++ gp.cpp -c -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
- g++ -o L1 a.o b.o personajes.o gp.o L1.cpp -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
- clang:
- clang -x c++ -c -D_REENTRANT -I/usr/include/SDL2 a.cpp -o a.o -std=c++14
- clang -x c++ -c -D_REENTRANT -I/usr/include/SDL2 b.cpp -o b.o -std=c++14
- clang -x c++ -c -D_REENTRANT -I/usr/include/SDL2 personajes.cpp -o personajes.o -std=c++14
- clang -x c++ -c -D_REENTRANT -I/usr/include/SDL2 gp.cpp -o gp.o -std=c++14
- clang -o L1 L1.cpp a.o b.o personajes.o gp.o -lstdc++ -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++14
- install-deb:
- sudo apt-get install libncurses5-dev
- sudo apt-get install g++
- g++ -c a.cpp -lncurses -std=c++11 -Wall
- g++ -c b.cpp -lncurses -std=c++11 -Wall
- g++ -c personajes.cpp -lncurses -std=c++11 -Wall
- g++ -c gp.cpp -lncurses -std=c++11 -Wall
- g++ a.o b.o personajes.o gp.o DQM.cpp -lncurses -std=c++11 -Wall
- clean:
- rm *.o
- rm L1
|