12345678910111213141516171819202122232425 |
- VPATH=src
- CXXFLAGS=-Iinclude
- LIBS=-lsfml-graphics -lsfml-window -lsfml-system -lsfml-network \
- -l Box2D
- OBJ=car.o field.o ball.o wheel.o carExhaust.o carAI.o aiManager.o
- SERVER_OBJ=server.o
- SERVER_EXEC=server
- GAME_OBJ=game.o boostCounter.o camera.o
- GAME_EXEC=carsoccer
- all : server game
- %.o : %.cpp
- $(CXX) -c $< -o $@ $(CXXFLAGS)
- server : $(SERVER_OBJ) $(OBJ)
- $(CXX) -o $(SERVER_EXEC) $(SERVER_OBJ) $(OBJ) $(LIBS)
- game : $(GAME_OBJ) $(OBJ)
- $(CXX) -o $(GAME_EXEC) $(GAME_OBJ) $(OBJ) $(LIBS)
- .PHONY : clean
- clean :
- rm $(SERVER_OBJ) $(GAME_OBJ) $(OBJ) \
- $(SERVER_EXEC) $(GAME_EXEC)
|