File: make_flags.patch

package info (click to toggle)
igmplot 3.17-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 60,584 kB
  • sloc: cpp: 20,041; javascript: 2,801; makefile: 111; python: 51; awk: 46; csh: 18
file content (114 lines) | stat: -rw-r--r-- 2,980 bytes parent folder | download
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Index: igmplot/source/Makefile
===================================================================
--- igmplot.orig/source/Makefile	2025-12-06 03:01:09.190905633 +0100
+++ igmplot/source/Makefile	2025-12-06 03:02:09.885092988 +0100
@@ -106,59 +106,59 @@
 #due to some instabilities for double managment
 
 ifeq "$(CppCompilerFamily)" "GNU"
- 	CFLAGS= -Werror -Wall -ansi -pedantic
-#	CFLAGS= -Werror -Wall -ansi -pedantic -fsanitize=address 
-#	CFLAGS= -Wall -ansi -pedantic
+ 	CXXFLAGS+= -Werror -Wall -ansi -pedantic
+#	CXXFLAGS= -Werror -Wall -ansi -pedantic -fsanitize=address 
+#	CXXFLAGS= -Wall -ansi -pedantic
 
-#	CFLAGS+= -std=c++11 -Wno-stringop-truncation
-#	CFLAGS+= -std=c++11
+#	CXXFLAGS+= -std=c++11 -Wno-stringop-truncation
+#	CXXFLAGS+= -std=c++11
 
 	ifeq "$(CppCompilerExec)" "clang++"
-		CFLAGS+= -std=c++11
+		CXXFLAGS+= -std=c++11
 	else
-		CFLAGS+= -std=c++11 -Wno-stringop-truncation
+		CXXFLAGS+= -std=c++11 -Wno-stringop-truncation
 	endif
 
 	ifeq "$(CppCompilerVersion)" "4_and_below"
-		CFLAGS+= -O2
+		CXXFLAGS+= -O2
 	else
-		CFLAGS+= -O3
+		CXXFLAGS+= -O3
 	endif
 endif
 
 ifeq "$(CppCompilerFamily)" "INTEL"
-	CFLAGS= -Werror -Wall -ansi -pedantic -O3
-	CFLAGS+= -std=c++11
+	CXXFLAGS= -Werror -Wall -ansi -pedantic -O3
+	CXXFLAGS+= -std=c++11
 endif
 
 ifeq "$(CppCompilerFamily)" "NVIDIA"
-	#CFLAGS= -fast -alias=ansi
-	CFLAGS= -fast -pedantic -std=c++11 -fstrict-aliasing
+	#CXXFLAGS= -fast -alias=ansi
+	CXXFLAGS= -fast -pedantic -std=c++11 -fstrict-aliasing
 endif
 
 ifeq "$(OpenMP)" "YES"
 
 	ifeq "$(CppCompilerFamily)" "GNU"
-		CFLAGS+= -fopenmp
-		LDFLAGS= -fopenmp
+		CXXFLAGS+= -fopenmp
+		LDFLAGS+= -fopenmp
 	endif
 
 	ifeq "$(CppCompilerFamily)" "INTEL"
 		ifeq "$(CppCompilerVersion)" "2014_and_below"
-			CFLAGS+= -openmp
+			CXXFLAGS+= -openmp
 			LDFLAGS= -openmp
 		else
-			CFLAGS+= -qopenmp -qoverride-limits
+			CXXFLAGS+= -qopenmp -qoverride-limits
 			LDFLAGS= -qopenmp
 		endif
 	endif
 
 	ifeq "$(CppCompilerFamily)" "NVIDIA"
-		CFLAGS+= -mp
+		CXXFLAGS+= -mp
 		LDFLAGS= -mp
 	endif
 else
-	CFLAGS+= -DNo_OpenMP
+	CXXFLAGS+= -DNo_OpenMP
 endif	
 
 # For cpp files
@@ -171,10 +171,10 @@
 OBJdir=objectFiles
 
 #Does not forget the "include" directory
-CFLAGS+=-I $(INCdir)
+CXXFLAGS+=-I $(INCdir)
 
 #For debugging or profiling
-#CFLAGS+= -g
+#CXXFLAGS+= -g
 
 #Name of the executable can be adapted
 EXEC=IGMPLOT
@@ -208,7 +208,7 @@
 $(OBJdir)/%.o: $(SRCdir)/%.cpp $(INCdir)/%.h
 	-@echo "Generating $@"
 	-@mkdir -p $(OBJdir)
-	-@$(CppCompilerExec) $(CFLAGS) -c $<
+	-@$(CppCompilerExec) $(CXXFLAGS) -c $<
 
 #JC just for showing which are the choices (and be sure not to make anything odd)
 show_configuration:
@@ -217,7 +217,7 @@
 	@echo "CppCompilerExec    = $(CppCompilerExec)"
 	@echo "CppCompilerVersion = $(CppCompilerVersion)"
 	@echo "OpenMP             = $(OpenMP)"
-	@echo "CFLAGS             = $(CFLAGS)"
+	@echo "CXXFLAGS             = $(CXXFLAGS)"
 	@echo "LDLAGS             = $(LDFLAGS)"
 	@echo ""