aboutsummaryrefslogtreecommitdiff
path: root/biology/slclust/files/patch-src_Makefile
blob: cee6db5e3a0a2a714afd7e72996b8336097c410b (plain) (blame)
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
--- src/Makefile.orig	2010-02-02 14:00:41 UTC
+++ src/Makefile
@@ -20,8 +20,8 @@ LIBS           = 
 # How they are invoked on the compile line (eg: -lspecial)
 LLIBS          =
 
-# Local additions for the CFLAG options
-LOCAL_CFLAGS   = -Wall 
+# Local additions for the CXXFLAGS options
+#LOCAL_CXXFLAGS   = -Wall 
 #-static
 
 
@@ -34,8 +34,8 @@ BIN           = ${PROJECT_ROOT}/bin
 INCLUDE       = ${PROJECT_ROOT}/include
 
 DEBUG         = DEBUG
-CFLAGS        = -I${INCLUDE} ${LOCAL_CFLAGS}
-CC            = g++ ${CFLAGS}
+CXXFLAGS      += -I${INCLUDE} ${LOCAL_CXXFLAGS}
+CXX           ?= g++
 
 MAKEFILE      = Makefile
 
@@ -43,10 +43,10 @@ MAKEFILE      = Makefile
 # Suffix rules
 
 .cc.o:
-	${CC} -c $<
+	${CXX} -c ${CXXFLAGS} $<
 
 .cpp.o:
-	${CC} -c $<
+	${CXX} -c ${CXXFLAGS} $<
 
 # Target dependencies
 
@@ -65,6 +65,6 @@ clean :
 ${OBJ} : ${MAKEFILE}
 
 ${EXECUTABLE} : ${OBJS}
-	${CC} ${OBJS} ${LIBS} -o ${EXECUTABLE}	
+	${CXX} ${OBJS} ${LIBS} -o ${EXECUTABLE}	
 	chmod 755 ${EXECUTABLE}