move coverage flags to make/*.mk files - relates to #345

Mon, 01 Jan 2024 15:33:20 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 01 Jan 2024 15:33:20 +0100
changeset 788
b34ff44e6433
parent 787
d0f02310aa47
child 789
9b2f5661bebd

move coverage flags to make/*.mk files - relates to #345

configure file | annotate | diff | comparison | revisions
make/cc.mk file | annotate | diff | comparison | revisions
make/clang.mk file | annotate | diff | comparison | revisions
make/gcc.mk file | annotate | diff | comparison | revisions
make/project.xml file | annotate | diff | comparison | revisions
make/suncc.mk file | annotate | diff | comparison | revisions
--- a/configure	Sun Dec 31 15:02:11 2023 +0100
+++ b/configure	Mon Jan 01 15:33:20 2024 +0100
@@ -262,8 +262,8 @@
     # dependency coverage
     while true
     do
-        TEMP_CFLAGS="$TEMP_CFLAGS --coverage"
-        TEMP_LDFLAGS="$TEMP_LDFLAGS --coverage"
+        TEMP_CFLAGS="$TEMP_CFLAGS \${COVERAGE_CFLAGS}"
+        TEMP_LDFLAGS="$TEMP_LDFLAGS \${COVERAGE_LDFLAGS}"
         echo yes
         return 1
     done
--- a/make/cc.mk	Sun Dec 31 15:02:11 2023 +0100
+++ b/make/cc.mk	Mon Jan 01 15:33:20 2024 +0100
@@ -8,4 +8,7 @@
 LDFLAGS =
 
 SHLIB_CFLAGS = -fPIC
-SHLIB_LDFLAGS = -shared
\ No newline at end of file
+SHLIB_LDFLAGS = -shared
+
+COVERAGE_CFLAGS =
+COVERAGE_LDFLAGS =
--- a/make/clang.mk	Sun Dec 31 15:02:11 2023 +0100
+++ b/make/clang.mk	Mon Jan 01 15:33:20 2024 +0100
@@ -9,3 +9,6 @@
 
 SHLIB_CFLAGS = -fPIC
 SHLIB_LDFLAGS = -shared
+
+COVERAGE_CFLAGS = --coverage
+COVERAGE_LDFLAGS =  --coverage
--- a/make/gcc.mk	Sun Dec 31 15:02:11 2023 +0100
+++ b/make/gcc.mk	Mon Jan 01 15:33:20 2024 +0100
@@ -9,3 +9,6 @@
 
 SHLIB_CFLAGS = -fPIC
 SHLIB_LDFLAGS = -shared
+
+COVERAGE_CFLAGS = --coverage
+COVERAGE_LDFLAGS =  --coverage
--- a/make/project.xml	Sun Dec 31 15:02:11 2023 +0100
+++ b/make/project.xml	Mon Jan 01 15:33:20 2024 +0100
@@ -70,8 +70,8 @@
 	</dependency>
 
 	<dependency name="coverage">
-		<cflags>--coverage</cflags>
-		<ldflags>--coverage</ldflags>
+		<cflags>\${COVERAGE_CFLAGS}</cflags>
+		<ldflags>\${COVERAGE_LDFLAGS}</ldflags>
 	</dependency>
 	
 	<target>
--- a/make/suncc.mk	Sun Dec 31 15:02:11 2023 +0100
+++ b/make/suncc.mk	Mon Jan 01 15:33:20 2024 +0100
@@ -10,3 +10,5 @@
 SHLIB_CFLAGS = -Kpic
 SHLIB_LDFLAGS = -G
 
+COVERAGE_CFLAGS =
+COVERAGE_LDFLAGS =

mercurial