Add Display to Makefile

Didn't compile without it (undefined reference in linker)
This commit is contained in:
karl 2020-11-19 15:39:30 +01:00
parent cde73ff4c1
commit 548f0733ee

View File

@ -7,14 +7,16 @@ CXXFLAGS = -Wall -O3
# 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: # 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 # export LD_LIBRARY_PATH=<sfml-install-path>/lib && ./sfml-app
quickhull: main.o Timing.o quickhull: main.o Timing.o Display.o
# link with sfml libs; -lsfml-network -lsfml-audio currently not needed # link with sfml libs; -lsfml-network -lsfml-audio currently not needed
$(CXX) $(CXXFLAGS) -o quickhull main.o Timing.o -lsfml-system -lsfml-window -lsfml-graphics $(CXX) $(CXXFLAGS) -o quickhull main.o Timing.o Display.o -lsfml-system -lsfml-window -lsfml-graphics
main.o: main.cpp Timing.h main.o: main.cpp Timing.h
$(CXX) $(CXXFLAGS) -c main.cpp $(CXX) $(CXXFLAGS) -c main.cpp
Display.o: Display.h
Timing.o: Timing.h Timing.o: Timing.h
clean : clean :
-rm *.o quickhull -rm *.o quickhull