Blame view

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