Blame view

Makefile 326 Bytes
cd132533   Geoffrey PREUD'HOMME   Workflow initial
1
2
3
4
5
6
7
8
9
  # Variables
  ## Compilation
  CXX = g++
  #CXXFLAGS = -lsfml-graphics -lsfml-window -lsfml-system
  
  # Programmes possibles
  main: bin/main
  
  # Éxecutables
ab4200c6   Geoffrey PREUD'HOMME   Test classe
10
  bin/main: obj/main.o obj/test.o obj/testClasse.o
cd132533   Geoffrey PREUD'HOMME   Workflow initial
11
12
13
14
15
16
17
18
19
20
  	$(CXX) $^ -o $@ $(CXXFLAGS)
  
  # Objets
  obj/%.o: src/%.cpp
  	$(CXX) -c $< -o $@
  
  # Meta
  .PHONY: clean
  clean:
  	rm -rf obj/*.o bin/*