blob: d407e0bc8b8f8c06089c202d74ea9f154df0175f (
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
|
diff --git a/Makefile b/Makefile
index 7892054..938a8c8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ PROG_FLGS = -D BOOLPREDEFINED
SRCS = cluster.cpp DisjointSets.cpp utility.cpp
-CFLAGS = $(OPT) $(DEBUG) $(PROG_FLGS)
+CXXFLAGS += $(OPT) $(DEBUG) $(PROG_FLGS)
LFLAGS =
@@ -12,7 +12,7 @@ OBJLIST = cluster.o DisjointSets.o utility.o
CXX = g++
.cpp.o:
- $(CXX) -c $*.cpp $(CFLAGS)
+ $(CXX) $(CXXFLAGS) -c $*.cpp
OPT = -O3
DEBUG = $(CXXDEBUGFLAGS)
@@ -20,10 +20,10 @@ DEBUG = $(CXXDEBUGFLAGS)
all: cluster
cluster: $(OBJLIST)
- $(CXX) -o $@ $(OBJLIST) $(LFLAGS)
+ $(CXX) $(LDFLAGS) -o $@ $(OBJLIST)
depend:
- makedepend -- $(CFLAGS) -- $(SRCS)
+ makedepend -- $(CXXFLAGS) -- $(SRCS)
clean:
@rm -rf *.o *.ckp ii_files
|