Skip to content

Commit

Permalink
oss-fuzz/Makefile: added missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Mar 18, 2024
1 parent b98b3f6 commit a79486a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
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

0 comments on commit a79486a

Please sign in to comment.