From 1e6621cc49662812cbc5addd372567f668c132cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Tue, 19 Mar 2024 10:21:03 +0100 Subject: [PATCH] oss-fuzz/Makefile: added missing dependencies (#6151) --- oss-fuzz/Makefile | 10 +++++----- tools/dmake/dmake.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/oss-fuzz/Makefile b/oss-fuzz/Makefile index 223b405ae97..22c0a527023 100644 --- a/oss-fuzz/Makefile +++ b/oss-fuzz/Makefile @@ -106,7 +106,7 @@ oss-fuzz-client: $(EXTOBJ) $(LIBOBJ) main.o type2.o no-fuzz: $(EXTOBJ) $(LIBOBJ) main_nofuzz.o type2.o ${CXX} $(CPPFLAGS) ${CXXFLAGS} -o $@ $^ -translate: translate.cpp type2.o +translate: translate.o type2.o ${CXX} -std=c++11 -g ${CXXFLAGS} -o $@ type2.cpp translate.cpp clean: @@ -308,14 +308,14 @@ $(libcppdir)/vfvalue.o: ../lib/vfvalue.cpp ../lib/config.h ../lib/errortypes.h . $(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $(libcppdir)/vfvalue.cpp -type2.o: type2.h +type2.o: type2.cpp type2.h $(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ type2.cpp -translate.o: type2.h +translate.o: translate.cpp type2.h $(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ translate.cpp -main.o: type2.h +main.o: main.cpp type2.h $(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ main.cpp -main_nofuzz.o: type2.h +main_nofuzz.o: main.cpp type2.h $(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -DNO_FUZZ -c -o $@ main.cpp diff --git a/tools/dmake/dmake.cpp b/tools/dmake/dmake.cpp index b81a57780bf..6d8c9a5cab5 100644 --- a/tools/dmake/dmake.cpp +++ b/tools/dmake/dmake.cpp @@ -361,7 +361,7 @@ static void write_ossfuzz_makefile(std::vector libfiles_prio, std:: fout << "no-fuzz: $(EXTOBJ) $(LIBOBJ) main_nofuzz.o type2.o\n"; fout << "\t${CXX} $(CPPFLAGS) ${CXXFLAGS} -o $@ $^\n"; fout << '\n'; - fout << "translate: translate.cpp type2.o\n"; + fout << "translate: translate.o type2.o\n"; fout << "\t${CXX} -std=c++11 -g ${CXXFLAGS} -o $@ type2.cpp translate.cpp\n"; fout << '\n'; fout << "clean:\n"; @@ -372,16 +372,16 @@ static void write_ossfuzz_makefile(std::vector libfiles_prio, std:: compilefiles(fout, libfiles_prio, "${LIB_FUZZING_ENGINE}"); fout << '\n'; - fout << "type2.o: type2.h\n"; + fout << "type2.o: type2.cpp type2.h\n"; fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ type2.cpp\n"; fout << '\n'; - fout << "translate.o: type2.h\n"; + fout << "translate.o: translate.cpp type2.h\n"; fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ translate.cpp\n"; fout << '\n'; - fout << "main.o: type2.h\n"; + fout << "main.o: main.cpp type2.h\n"; fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ main.cpp\n"; fout << '\n'; - fout << "main_nofuzz.o: type2.h\n"; + fout << "main_nofuzz.o: main.cpp type2.h\n"; fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -DNO_FUZZ -c -o $@ main.cpp\n"; }