castletour/Makefile

24 lines
428 B
Makefile
Raw Normal View History

2014-10-19 21:51:28 +00:00
CXX=clang++
CXXFLAGS= -O3 -Wall
INCLUDES= -Iinclude/irrlicht
2014-10-20 20:38:42 +00:00
LIBS= -lIrrlicht -lGL -lGLU -lXrandr -lXext -lX11
2014-10-19 21:51:28 +00:00
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