Skip to content

Commit fd382f7

Browse files
committed
Makefile builds: do not inherit SRC from environment
The `override` directive ensures that the `Makefile`'s definition takes precedence over any value inherited from the environment. Fixes: #4834
1 parent 4fe3ade commit fd382f7

File tree

39 files changed

+70
-39
lines changed

39 files changed

+70
-39
lines changed

jbmc/src/janalyzer/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = janalyzer_main.cpp \
1+
override SRC = \
2+
janalyzer_main.cpp \
23
janalyzer_parse_options.cpp \
34
# Empty last line
45

jbmc/src/java_bytecode/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = assignments_from_json.cpp \
1+
override SRC = \
2+
assignments_from_json.cpp \
23
bytecode_info.cpp \
34
character_refine_preprocess.cpp \
45
ci_lazy_methods.cpp \

jbmc/src/jbmc/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = jbmc_main.cpp \
1+
override SRC = \
2+
jbmc_main.cpp \
23
jbmc_parse_options.cpp \
34
# Empty last line
45

jbmc/src/jdiff/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = jdiff_languages.cpp \
1+
override SRC = \
2+
jdiff_languages.cpp \
23
jdiff_main.cpp \
34
jdiff_parse_options.cpp \
45
java_syntactic_diff.cpp \

jbmc/src/miniz/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = miniz.cpp \
1+
override SRC = \
2+
miniz.cpp \
23
# Empty last line
34

45
INCLUDES= -I ../$(CPROVER_DIR)/src

jbmc/unit/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.PHONY: all jprover.dir test java-testing-utils-clean
22

33
# Source files for test utilities
4-
SRC = $(CPROVER_DIR)/unit/unit_tests.cpp \
4+
override SRC = \
5+
$(CPROVER_DIR)/unit/unit_tests.cpp \
56
# Empty last line
67

78
# Test source files

jbmc/unit/java-testing-utils/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SRC = \
1+
override SRC = \
22
load_java_class.cpp \
33
require_goto_statements.cpp \
44
require_parse_tree.cpp \

src/analyses/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = ai.cpp \
1+
override SRC = \
2+
ai.cpp \
23
ai_domain.cpp \
34
ai_history.cpp \
45
call_graph.cpp \

src/ansi-c/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = allocate_objects.cpp \
1+
override SRC = \
2+
allocate_objects.cpp \
23
anonymous_member.cpp \
34
ansi_c_convert_type.cpp \
45
ansi_c_declaration.cpp \

src/assembler/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SRC = assembler_lex.yy.cpp \
1+
override SRC = \
2+
assembler_lex.yy.cpp \
23
assembler_parser.cpp \
34
remove_asm.cpp \
45
# Empty last line

0 commit comments

Comments
 (0)