EXV6=reflex2q3_v6 EXV8=reflex2q3_v8 CC=g++ CFLAGS=-std=c++11 -I"includes" -I"/usr/include/eigen3" all: v6 v8 v6: planes.o mapparser.o $(CC) $^ main.cpp $(CFLAGS) -o $(EXV6) 2>error6.log v8: planes.o v8mapparser.o $(CC) $^ main.cpp $(CFLAGS) -o $(EXV8) 2>error8.log mapparser.o: $(CC) -c includes/mapparser.cpp $(CFLAGS) v8mapparser.o: $(CC) -c includes/v8mapparser.cpp $(CFLAGS) planes.o: $(CC) -c includes/planes.cpp $(CFLAGS)