-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 904 Bytes
/
Makefile
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
CXX = g++
SRC = src
BIN = bin
OBJ = obj
#CFLAGS = -std=c++11
GL_FLAGS = -lglut -lGLU -lGL -lX11 -lXext -lXi -lm
CFLAGS = -g -I./include
CFLAGS += `pkg-config --cflags --libs gflags libglog gl`
CFLAGS += $(GL_FLAGS)
CFLAGS += -std=c++11
$(BIN)/assignment2:$(OBJ)/input.o $(OBJ)/main.o $(OBJ)/common.o $(OBJ)/cluster.o $(OBJ)/display.o $(OBJ)/hierarchy.o $(OBJ)/db.o
$(CXX) $^ $(CFLAGS) -o $@
$(OBJ)/input.o:$(SRC)/input.cpp
$(CXX) $^ -c $(CFLAGS) -o $@
$(OBJ)/main.o:$(SRC)/main.cpp
$(CXX) $^ -c $(CFLAGS) -o $@
$(OBJ)/common.o:$(SRC)/common.cpp
$(CXX) $^ -c $(CFLAGS) -o $@
$(OBJ)/cluster.o:$(SRC)/cluster.cpp
$(CXX) $^ -c $(CFLAGS) -o $@
$(OBJ)/display.o:$(SRC)/display.cpp
$(CXX) $^ -c $(CFLAGS) -o $@
$(OBJ)/hierarchy.o:$(SRC)/hierarchy.cpp
$(CXX) $^ -c $(CFLAGS) -o $@
$(OBJ)/db.o:$(SRC)/Density_Evaluate.cpp
$(CXX) $^ -c $(CFLAGS) -o $@
clean:
rm bin/assignment2
rm obj/*