mpri-graphics-project/Makefile

27 lines
459 B
Makefile
Raw Normal View History

2018-01-28 23:03:11 +01:00
CXX=g++
CXXFLAGS=-Wall -Wextra -O2 -std=c++14
CXXLIBS=
# In `TARGET`, list the names of the `main_[stuff].cpp` you'd like to compile
# into a `[stuff].bin`.
TARGETS=
OBJS=Implicit.o \
2018-01-28 23:03:57 +01:00
Mesh.o \
util/ObjParser.o
2018-01-28 23:03:11 +01:00
all: $(TARGETS:=.bin)
%.bin: main_%.cpp $(OBJS)
$(CXX) $(CXXFLAGS) $(CXXLIBS) $(OBJS) $< -o $@
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
############################################################
.PHONY: clean
clean:
rm -rf $(OBJS)