diff options
author | Samuel Fadel <samuel@nihil.ws> | 2023-05-23 11:22:33 +0200 |
---|---|---|
committer | Samuel Fadel <samuel@nihil.ws> | 2023-05-23 11:22:33 +0200 |
commit | 0f34fd437efb936ef29ac91186321aa7251fbfb1 (patch) | |
tree | 271e994828f4bb19c35b2630f2705cb64b8d4552 /Makefile | |
parent | bedf6936885694688ddb8bd3452f6bd68ef8d29c (diff) |
Massive changes in initial port away from Qt.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b409bfa --- /dev/null +++ b/Makefile @@ -0,0 +1,82 @@ +CFLAGS=-O2 -Iinclude `pkg-config --cflags armadillo glfw3` +LIBS=-lGL `pkg-config --libs armadillo glfw3` +OBJS=barchart.o brushinghandler.o colormap.o colorscale.o continuouscolorscale.o divergentcolorscale.o dist.o forcescheme.o geometry.o lamp.o manipulationhandler.o mapscalehandler.o measures.o projectionhistory.o quadtree.o scatterplot.o voronoisplat.o + +all: pm + +pm: main.cpp $(OBJS) + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -fopenmp -o $@ main.cpp $(OBJS) + +barchart.o: barchart.cpp barchart.h colorscale.h continuouscolorscale.h geometry.h scale.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c barchart.cpp + +brushinghandler.o: brushinghandler.cpp brushinghandler.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c brushinghandler.cpp + +colormap.o: colormap.cpp colormap.h colorscale.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c colormap.cpp + +colorscale.o: colorscale.cpp colorscale.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c colorscale.cpp + +continuouscolorscale.o: continuouscolorscale.cpp continuouscolorscale.h colorscale.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c continuouscolorscale.cpp + +divergentcolorscale.o: divergentcolorscale.cpp divergentcolorscale.h colorscale.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c divergentcolorscale.cpp + +dist.o: dist.cpp mp.h utils.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -fopenmp -c dist.cpp + +forcescheme.o: forcescheme.cpp mp.h utils.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c forcescheme.cpp + +geometry.o: geometry.cpp geometry.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c geometry.cpp + +lamp.o: lamp.cpp mp.h utils.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -fopenmp -c lamp.cpp + +manipulationhandler.o: manipulationhandler.cpp manipulationhandler.h mp.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c manipulationhandler.cpp + +mapscalehandler.o: mapscalehandler.cpp mapscalehandler.h scale.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c mapscalehandler.cpp + +measures.o: measures.cpp mp.h utils.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c measures.cpp -fopenmp + +projectionhistory.o: projectionhistory.cpp projectionhistory.h mp.h numericrange.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c projectionhistory.cpp + +quadtree.o: quadtree.cpp quadtree.h geometry.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c quadtree.cpp + +scatterplot.o: scatterplot.cpp scatterplot.h colorscale.h scale.h continuouscolorscale.h geometry.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c scatterplot.cpp + +voronoisplat.o: voronoisplat.cpp voronoisplat.h colormap.h scatterplot.h + @echo CC $@ + @g++ $(CFLAGS) $(LIBS) -c voronoisplat.cpp + +clean: + rm -f *.o + +.PHONY: all clean |