quickhull/Makefile
karl 79111d184b Finish Quickhull functionality + basic test
The performance mode, which I'm working on, can now be tested with `make performance && ./performance`.

A very simple test was added, and it works!
2020-11-28 22:21:48 +01:00

26 lines
943 B
Makefile

CXX = g++
CXXFLAGS = -Wall -O3 -g
# In case you installed SFML to a non-standard path, you'll need to tell the compiler where to find the SFML headers (.hpp files):
# g++ -c main.cpp -I<sfml-install-path>/include
# 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=<sfml-install-path>/lib && ./sfml-app
quickhull: main.o Quickhull.h Point.h Line.h Triangle.h Timing.o 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 -lsfml-system -lsfml-window -lsfml-graphics
performance: performance.cpp
$(CXX) $(CXXFLAGS) -o performance performance.cpp
main.o: main.cpp Timing.h
$(CXX) $(CXXFLAGS) -c main.cpp
Display.o: Display.h
Timing.o: Timing.h
clean :
-rm *.o quickhull performance