Move main in to src
This commit is contained in:
4
Makefile
4
Makefile
@@ -51,8 +51,8 @@ OBJECTS = $(patsubst $(SRCDIR)/%.cpp,$(OBJDIR)/%.o,$(SOURCES))
|
|||||||
$(OBJDIR)/%.o: $(SRCDIR)/%.cpp
|
$(OBJDIR)/%.o: $(SRCDIR)/%.cpp
|
||||||
g++ -c $< -o $@ $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)
|
g++ -c $< -o $@ $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)
|
||||||
|
|
||||||
main: main.cpp setup $(RAYOBJECTS) $(OBJECTS)
|
main: setup $(RAYOBJECTS) $(OBJECTS)
|
||||||
g++ main.cpp $(RAYOBJECTS) $(OBJECTS) -o main $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)
|
g++ $(RAYOBJECTS) $(OBJECTS) -o main $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)
|
||||||
|
|
||||||
example: example.cpp setup $(RAYOBJECTS) $(OBJECTS)
|
example: example.cpp setup $(RAYOBJECTS) $(OBJECTS)
|
||||||
g++ example.cpp $(RAYOBJECTS) $(OBJECTS) -o example $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)
|
g++ example.cpp $(RAYOBJECTS) $(OBJECTS) -o example $(RAYOPT) $(RAYINCLUDE) $(INCLUDE) $(CFLAGS)
|
||||||
|
|||||||
Reference in New Issue
Block a user