diff --git a/Makefile b/Makefile index fa29cb2..52dab14 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ SOURCES = $(wildcard $(SRCDIR)/*.cpp) OBJECTS = $(patsubst $(SRCDIR)/%.cpp,$(OBJDIR)/%.o,$(SOURCES)) $(OBJDIR)/%.o: $(SRCDIR)/%.cpp - $(CC) -c $< -o $@ $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS) + g++ -c $< -o $@ $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS) main: main.cpp setup $(RAYOBJECTS) $(OBJECTS) g++ main.cpp $(RAYOBJECTS) $(OBJECTS) -o main $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)