MàJ du Makefile
This commit is contained in:
parent
4e262219bb
commit
ac12e1ab66
26
Makefile
26
Makefile
|
@ -2,17 +2,29 @@ CC=g++
|
||||||
CFLAGS=-Wall -std=c++11
|
CFLAGS=-Wall -std=c++11
|
||||||
TARGET=ptf
|
TARGET=ptf
|
||||||
|
|
||||||
$(TARGET): main.o ball.o engine.o
|
$(TARGET): build/main.o build/ball.o build/engine.o
|
||||||
$(CC) $(CFLAGS) -o build/$(TARGET) build/engine.o build/main.o build/ball.o -lsfml-graphics -lsfml-window -lsfml-system -lpthread
|
$(CC) $(CFLAGS) -o build/$(TARGET) \
|
||||||
|
build/main.o build/object.o build/physics_object.o build/block.o \
|
||||||
|
build/ball.o build/engine.o \
|
||||||
|
-lsfml-graphics -lsfml-window -lsfml-system -lpthread
|
||||||
|
|
||||||
ball.o: ball.cpp
|
build/main.o: main.cpp
|
||||||
|
$(CC) $(CFLAGS) -o build/main.o -c main.cpp
|
||||||
|
|
||||||
|
build/object.o: object.cpp object.hpp
|
||||||
|
$(CC) $(CFLAGS) -o build/object.o -c object.cpp
|
||||||
|
|
||||||
|
build/physics_object.o: physics_object.cpp physics_object.hpp
|
||||||
|
$(CC) $(CFLAGS) -o build/physics_object.o -c physics_object.cpp
|
||||||
|
|
||||||
|
build/block.o: block.cpp block.hpp
|
||||||
|
$(CC) $(CFLAGS) -o build/block.o -c block.cpp
|
||||||
|
|
||||||
|
build/ball.o: ball.cpp ball.hpp
|
||||||
$(CC) $(CFLAGS) -o build/ball.o -c ball.cpp
|
$(CC) $(CFLAGS) -o build/ball.o -c ball.cpp
|
||||||
|
|
||||||
engine.o: engine.cpp
|
build/engine.o: engine.cpp engine.hpp
|
||||||
$(CC) $(CFLAGS) -o build/engine.o -c engine.cpp
|
$(CC) $(CFLAGS) -o build/engine.o -c engine.cpp
|
||||||
|
|
||||||
main.o: main.cpp
|
|
||||||
$(CC) $(CFLAGS) -o build/main.o -c main.cpp
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm build/*
|
rm build/*
|
||||||
|
|
Loading…
Reference in New Issue