Skip to content

Commit 7f2d9cb

Browse files
committed
dmake: fixed compilation of reduce
1 parent 6e58ed3 commit 7f2d9cb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ check: all
204204
dmake: tools/dmake.cpp
205205
$(CXX) -o dmake tools/dmake.cpp cli/filelister.cpp lib/path.cpp -Ilib
206206

207-
reduce: tools/reduce.cpp
208-
$(CXX) -o reduce tools/reduce.cpp -Ilib $(LIBOBJ)
207+
reduce: tools/reduce.cpp $(LIBOBJ)
208+
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o reduce tools/reduce.cpp -Ilib $(LIBOBJ)
209209

210210
clean:
211211
rm -f build/*.o lib/*.o cli/*.o test/*.o externals/tinyxml/*.o testrunner cppcheck cppcheck.1

‎tools/dmake.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ int main(int argc, char **argv)
352352
fout << "\t./testrunner -g -q\n\n";
353353
fout << "dmake:\ttools/dmake.cpp\n";
354354
fout << "\t$(CXX) -o dmake tools/dmake.cpp cli/filelister.cpp lib/path.cpp -Ilib\n\n";
355-
fout << "reduce:\ttools/reduce.cpp\n";
356-
fout << "\t$(CXX) -o reduce tools/reduce.cpp -Ilib $(LIBOBJ)\n\n";
355+
fout << "reduce:\ttools/reduce.cpp\t$(LIBOBJ)\n";
356+
fout << "\t$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o reduce tools/reduce.cpp -Ilib $(LIBOBJ)\n\n";
357357
fout << "clean:\n";
358358
#ifdef _WIN32
359359
fout << "\tdel build\\*.o\n\tdel lib\\*.o\n\tdel cli\\*.o\n\tdel test\\*.o\n\tdel *.exe\n";

0 commit comments

Comments
 (0)