-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 671 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 671 Bytes
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
# source files.
SRC = $(addsuffix .cpp, \
$(addprefix delaunay/, Edge EdgeList EdgeReorderer Functions Halfedge \
HalfedgePriorityQueue ICoord kruskal LR Site SiteList Vertex Voronoi) \
$(addprefix geom/, Circle LineSegment Point Rectangle Polygon Triangle) )
OBJ = $(SRC:.cpp=.o)
OUT = libcppdelaunay.a
# include directories
INCLUDES = -I. -I/usr/include
# C++ compiler flags (-g -O2 -Wall)
CCFLAGS = -g -O0
# compiler
CCC = g++
# library paths
#LIBS = -L../ -L/usr/local/lib -lm
# compile flags
LDFLAGS = -g
.SUFFIXES: .cpp
all: $(OUT)
.cpp.o:
$(CCC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
$(OUT): $(OBJ)
ar rcs $(OUT) $(OBJ)
clean:
rm -f $(OBJ) $(OUT)