Makefile 446 B

12345678910111213141516171819202122232425
  1. # Flags:
  2. # -g adds debugging information to the executable file
  3. # -Wall turns on most, but not all, compiler warnings
  4. FLAGS = -g -Wall -std=c++11
  5. # Libraries :
  6. # Box2D -Wl,-rpath=/usr/local/lib/
  7. # SDL
  8. # SDL_gfx
  9. # SDL_image
  10. LIBS = -l SDL -l SDL_gfx
  11. # Name of output:
  12. NAME = Exec
  13. # Names of cpp files:
  14. FILES = main.cpp SnapFile.cpp edit.cpp
  15. default: build
  16. build: $(FILES)
  17. g++ $(FLAGS) $(FILES) $(LIBS) -o $(NAME)
  18. clean:
  19. $(RM) $(NAME)