Makefile 1.3 KB

1234567891011121314151617181920212223242526272829
  1. gcc:
  2. g++ a.cpp -c -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
  3. g++ b.cpp -c -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
  4. g++ personajes.cpp -c -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
  5. g++ gp.cpp -c -D_REENTRANT -I/usr/include/SDL2 -lSDL2 -lSDL2_image -lSDL2_ttf -std=c++11 -Wall
  6. 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
  7. clang:
  8. clang -x c++ -c -D_REENTRANT -I/usr/include/SDL2 a.cpp -o a.o -std=c++14
  9. clang -x c++ -c -D_REENTRANT -I/usr/include/SDL2 b.cpp -o b.o -std=c++14
  10. clang -x c++ -c -D_REENTRANT -I/usr/include/SDL2 personajes.cpp -o personajes.o -std=c++14
  11. clang -x c++ -c -D_REENTRANT -I/usr/include/SDL2 gp.cpp -o gp.o -std=c++14
  12. 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
  13. install-deb:
  14. sudo apt-get install libncurses5-dev
  15. sudo apt-get install g++
  16. g++ -c a.cpp -lncurses -std=c++11 -Wall
  17. g++ -c b.cpp -lncurses -std=c++11 -Wall
  18. g++ -c personajes.cpp -lncurses -std=c++11 -Wall
  19. g++ -c gp.cpp -lncurses -std=c++11 -Wall
  20. g++ a.o b.o personajes.o gp.o DQM.cpp -lncurses -std=c++11 -Wall
  21. clean:
  22. rm *.o
  23. rm L1