From 4f94b7195f69194e465dec1a95c6415d6966890b Mon Sep 17 00:00:00 2001 From: TheSomeMan Date: Thu, 17 Oct 2024 23:04:02 +0700 Subject: [PATCH] scripts/create_makefile.rb: Fix dependency of test_obj - it must depend on headers --- scripts/create_makefile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_makefile.rb b/scripts/create_makefile.rb index 53cac6d2..3073adea 100644 --- a/scripts/create_makefile.rb +++ b/scripts/create_makefile.rb @@ -340,7 +340,7 @@ def reject_mock_files(file) all_headers_to_mock.uniq! # Build test suite - mkfile.puts "#{test_obj}: #{test} #{module_obj} #{mock_objs.join(' ')}" + mkfile.puts "#{test_obj}: #{test} #{all_headers_to_mock.join(' ')}" mkfile.puts "\t${CC} -o $@ -c $< ${#{test_cflags_macro}} @#{TEST_MAKEFILE_INC} -I #{UNITY_SRC} -I #{CMOCK_SRC} -I #{MOCKS_DIR} ${INCLUDE_PATH}" mkfile.puts ''