Skip to content

Commit 1e6621c

Browse files
authored
oss-fuzz/Makefile: added missing dependencies (#6151)
1 parent 0686bf9 commit 1e6621c

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

oss-fuzz/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ oss-fuzz-client: $(EXTOBJ) $(LIBOBJ) main.o type2.o
106106
no-fuzz: $(EXTOBJ) $(LIBOBJ) main_nofuzz.o type2.o
107107
${CXX} $(CPPFLAGS) ${CXXFLAGS} -o $@ $^
108108

109-
translate: translate.cpp type2.o
109+
translate: translate.o type2.o
110110
${CXX} -std=c++11 -g ${CXXFLAGS} -o $@ type2.cpp translate.cpp
111111

112112
clean:
@@ -308,14 +308,14 @@ $(libcppdir)/vfvalue.o: ../lib/vfvalue.cpp ../lib/config.h ../lib/errortypes.h .
308308
$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $(libcppdir)/vfvalue.cpp
309309

310310

311-
type2.o: type2.h
311+
type2.o: type2.cpp type2.h
312312
$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ type2.cpp
313313

314-
translate.o: type2.h
314+
translate.o: translate.cpp type2.h
315315
$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ translate.cpp
316316

317-
main.o: type2.h
317+
main.o: main.cpp type2.h
318318
$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ main.cpp
319319

320-
main_nofuzz.o: type2.h
320+
main_nofuzz.o: main.cpp type2.h
321321
$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -DNO_FUZZ -c -o $@ main.cpp

tools/dmake/dmake.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ static void write_ossfuzz_makefile(std::vector<std::string> libfiles_prio, std::
361361
fout << "no-fuzz: $(EXTOBJ) $(LIBOBJ) main_nofuzz.o type2.o\n";
362362
fout << "\t${CXX} $(CPPFLAGS) ${CXXFLAGS} -o $@ $^\n";
363363
fout << '\n';
364-
fout << "translate: translate.cpp type2.o\n";
364+
fout << "translate: translate.o type2.o\n";
365365
fout << "\t${CXX} -std=c++11 -g ${CXXFLAGS} -o $@ type2.cpp translate.cpp\n";
366366
fout << '\n';
367367
fout << "clean:\n";
@@ -372,16 +372,16 @@ static void write_ossfuzz_makefile(std::vector<std::string> libfiles_prio, std::
372372
compilefiles(fout, libfiles_prio, "${LIB_FUZZING_ENGINE}");
373373

374374
fout << '\n';
375-
fout << "type2.o: type2.h\n";
375+
fout << "type2.o: type2.cpp type2.h\n";
376376
fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ type2.cpp\n";
377377
fout << '\n';
378-
fout << "translate.o: type2.h\n";
378+
fout << "translate.o: translate.cpp type2.h\n";
379379
fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ translate.cpp\n";
380380
fout << '\n';
381-
fout << "main.o: type2.h\n";
381+
fout << "main.o: main.cpp type2.h\n";
382382
fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ main.cpp\n";
383383
fout << '\n';
384-
fout << "main_nofuzz.o: type2.h\n";
384+
fout << "main_nofuzz.o: main.cpp type2.h\n";
385385
fout << "\t$(CXX) ${LIB_FUZZING_ENGINE} $(CPPFLAGS) $(CXXFLAGS) -DNO_FUZZ -c -o $@ main.cpp\n";
386386
}
387387

0 commit comments

Comments
 (0)