Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oss-fuzz/Makefile: added missing dependencies #6151

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions oss-fuzz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
10 changes: 5 additions & 5 deletions tools/dmake/dmake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static void write_ossfuzz_makefile(std::vector<std::string> 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";
Expand All @@ -372,16 +372,16 @@ static void write_ossfuzz_makefile(std::vector<std::string> 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";
}

Expand Down
Loading