2014-10-19 21:51:28 +00:00
|
|
|
CXX=clang++
|
|
|
|
CXXFLAGS= -O3 -Wall
|
|
|
|
|
|
|
|
INCLUDES= -Iinclude/irrlicht
|
|
|
|
LIBS= -lIrrlicht -lX11 -lGL
|
|
|
|
|
|
|
|
MV=mv
|
|
|
|
MKDIR=mkdir -p
|
|
|
|
RM=rm -rf
|
|
|
|
|
2014-10-20 02:39:06 +00:00
|
|
|
SRC_FILES := $(wildcard src/*.cpp)
|
|
|
|
OBJ_FILES := $(addprefix src/, $(notdir $(SRC_FILES:.cpp=.o)))
|
|
|
|
|
|
|
|
all: $(OBJ_FILES)
|
2014-10-19 21:51:28 +00:00
|
|
|
$(MKDIR) bin
|
2014-10-20 02:39:06 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(LIBS) -o bin/castletour src/*.o
|
|
|
|
|
|
|
|
src/%.o: src/%.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<
|
2014-10-19 21:51:28 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) src/*.o
|
|
|
|
$(RM) bin
|