Projet d'ISN Lucas & Geoffrey http://geoffreyfrogeye.github.io/PILG
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Makefile 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Variables
  2. ## Pour make
  3. .PHONY: clean, mrproper
  4. ## Compilation
  5. CXX = g++
  6. CXXFLAGS = -lSDL -lSDLmain
  7. CXXFLAGSDEBUG = -lSDL -lSDLmain -DDEBUG
  8. ## Chemins
  9. EXEPATH = bin/
  10. OBJPATH = obj/
  11. SRCPATH = src/
  12. # Programmes possibles
  13. main: $(EXEPATH)main
  14. testing: $(EXEPATH)testing
  15. # Éxecutables
  16. $(EXEPATH)main: $(OBJPATH)main.o $(OBJPATH)image.o
  17. $(CXX) $^ -o $@ $(CXXFLAGS)
  18. $(EXEPATH)testing: $(OBJPATH)testing.o $(OBJPATH)image.o
  19. $(CXX) $^ -o $@ $(CXXFLAGSDEBUG)
  20. # Dépendances
  21. ## Fichiers executables
  22. $(OBJPATH)main.o: $(SRCPATH)main.cpp $(SRCPATH)affichageFenetre.cpp $(SRCPATH)image.cpp $(SRCPATH)utilitaires.cpp $(SRCPATH)traitementImage.cpp $(SRCPATH)analyserCommande.cpp
  23. $(CXX) -c $< -o $@ $(CXXFLAGS)
  24. $(OBJPATH)testing.o: $(SRCPATH)testing.cpp $(SRCPATH)affichageFenetre.cpp $(SRCPATH)image.cpp $(SRCPATH)utilitaires.cpp $(SRCPATH)traitementImage.cpp $(SRCPATH)analyserCommande.cpp
  25. $(CXX) -c $< -o $@ $(CXXFLAGSDEBUG)
  26. ## Bibliothèques
  27. $(OBJPATH)image.o: $(SRCPATH)image.cpp
  28. $(CXX) -c $< -o $@
  29. # Meta
  30. clean:
  31. rm -rf $(OBJPATH)*.o