castletour/Makefile

24 lines
406 B
Makefile
Raw Normal View History

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
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
$(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