12345678910111213141516171819202122232425 |
- CXX=g++
- CXXFLAGS=-std=c++11
- LDFLAGS=-lSDL -lSDL_gfx -lbox2d
- INC=
- LIB=
- EXEC=BulletPilot
- SRC=$(shell find . -name '*.cpp')
- OBJ=$(SRC:.cpp=.o)
- $(EXEC): $(OBJ)
- @mkdir -p bin
- $(CXX) -o bin/$@ $^ $(LDFLAGS) $(LIB)
- %.o : %.cpp
- $(CXX) -o $@ -c $< $(CXXFLAGS) $(INC)
-
- clean:
- rm -rf $(OBJ)
- distclean: clean
- rm -rf ./bin
- exec: $(EXEC)
- ./bin/$(EXEC)
|