From 9877b77291412db249b1ea481aaba3afeda5996b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 2 Jan 2013 13:30:06 +0100 Subject: [PATCH] dmake: use 'make reduce' to compile the reduce program --- Makefile | 3 +++ tools/dmake.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 35ac92f59..845a1c16a 100644 --- a/Makefile +++ b/Makefile @@ -204,6 +204,9 @@ check: all dmake: tools/dmake.cpp $(CXX) -o dmake tools/dmake.cpp cli/filelister.cpp lib/path.cpp -Ilib +reduce: tools/reduce.cpp + $(CXX) -o reduce tools/reduce.cpp -Ilib $(LIBOBJ) + clean: rm -f build/*.o lib/*.o cli/*.o test/*.o externals/tinyxml/*.o testrunner cppcheck cppcheck.1 diff --git a/tools/dmake.cpp b/tools/dmake.cpp index 5a17b5ae3..5443ab9a6 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -352,6 +352,8 @@ int main(int argc, char **argv) fout << "\t./testrunner -g -q\n\n"; fout << "dmake:\ttools/dmake.cpp\n"; fout << "\t$(CXX) -o dmake tools/dmake.cpp cli/filelister.cpp lib/path.cpp -Ilib\n\n"; + fout << "reduce:\ttools/reduce.cpp\n"; + fout << "\t$(CXX) -o reduce tools/reduce.cpp -Ilib $(LIBOBJ)\n\n"; fout << "clean:\n"; #ifdef _WIN32 fout << "\tdel build\\*.o\n\tdel lib\\*.o\n\tdel cli\\*.o\n\tdel test\\*.o\n\tdel *.exe\n";