aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 42127c291c2bd89cb3061358c4d8b4b3a7c7e920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
CFLAGS=-O2 -Iinclude `pkg-config --cflags armadillo egl gl glfw3 xkbcommon`
LIBS=`pkg-config --libs armadillo egl gl glfw3 xkbcommon`
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 scale.o scatterplot.o shader.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

scale.o: scale.cpp scale.h
	@echo CC $@
	@g++ $(CFLAGS) $(LIBS) -c scale.cpp

scatterplot.o: scatterplot.cpp scatterplot.h colorscale.h continuouscolorscale.h scale.h geometry.h
	@echo CC $@
	@g++ $(CFLAGS) $(LIBS) -c scatterplot.cpp

shader.o: shader.cpp shader.h
	@echo CC $@
	@g++ $(CFLAGS) $(LIBS) -c shader.cpp

voronoisplat.o: voronoisplat.cpp voronoisplat.h colormap.h scatterplot.h shader.h
	@echo CC $@
	@g++ $(CFLAGS) $(LIBS) -c voronoisplat.cpp

clean:
	rm -f *.o

.PHONY: all clean