2020-11-18 15:33:12 +01:00
CXX = g++
2020-11-28 22:20:06 +01:00
CXXFLAGS = -Wall -O3 -g
2020-11-29 00:25:18 +01:00
SFMLFLAGS = -lsfml-system -lsfml-window -lsfml-graphics
2020-11-18 15:33:12 +01:00
# 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
2020-11-29 18:10:31 +01:00
quickhull : main .o Quickhull .h Point .h Line .h Triangle .h Display .o
2020-11-18 15:33:12 +01:00
# link with sfml libs; -lsfml-network -lsfml-audio currently not needed
2020-11-29 18:10:31 +01:00
$( CXX) $( CXXFLAGS) -o quickhull main.o Quickhull.h Point.h Line.h Triangle.h Display.o $( SFMLFLAGS)
2020-11-18 15:33:12 +01:00
2020-11-29 00:25:18 +01:00
performance : performance .cpp Display .o
$( CXX) $( CXXFLAGS) -o performance Display.o performance.cpp $( SFMLFLAGS)
2020-11-28 22:20:06 +01:00
2020-11-29 18:10:31 +01:00
main.o : main .cpp
2020-11-18 15:33:12 +01:00
$( CXX) $( CXXFLAGS) -c main.cpp
2020-11-19 15:39:30 +01:00
Display.o : Display .h
2020-11-18 15:33:12 +01:00
clean :
2020-11-28 22:20:06 +01:00
-rm *.o quickhull performance