aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile82
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