diff --git a/Makefile b/Makefile index f419673..f4c1924 100644 --- a/Makefile +++ b/Makefile @@ -8,19 +8,17 @@ SFMLFLAGS = -lsfml-system -lsfml-window -lsfml-graphics # If SFML is not installed in a standard path, you need to tell the dynamic linker where to find the SFML libraries first by specifying LD_LIBRARY_PATH: # export LD_LIBRARY_PATH=/lib && ./sfml-app -quickhull: main.o Quickhull.h Point.h Line.h Triangle.h Timing.o Display.o +quickhull: main.o Quickhull.h Point.h Line.h Triangle.h Display.o # link with sfml libs; -lsfml-network -lsfml-audio currently not needed - $(CXX) $(CXXFLAGS) -o quickhull main.o Quickhull.h Point.h Line.h Triangle.h Timing.o Display.o $(SFMLFLAGS) + $(CXX) $(CXXFLAGS) -o quickhull main.o Quickhull.h Point.h Line.h Triangle.h Display.o $(SFMLFLAGS) performance: performance.cpp Display.o $(CXX) $(CXXFLAGS) -o performance Display.o performance.cpp $(SFMLFLAGS) -main.o: main.cpp Timing.h +main.o: main.cpp $(CXX) $(CXXFLAGS) -c main.cpp Display.o: Display.h -Timing.o: Timing.h - clean : -rm *.o quickhull performance diff --git a/performance.cpp b/performance.cpp index f4815ec..a468649 100644 --- a/performance.cpp +++ b/performance.cpp @@ -1,3 +1,6 @@ +#include +#include + #include "Quickhull.h" #include "NumberGenerator.h" #include "Display.h"