dmake: Minor updates. Moved target "all" a little. Handle the change 937 where "make test" also executes testrunner

This commit is contained in:
Daniel Marjamäki 2009-01-11 06:17:54 +00:00
parent 2907708af8
commit 631e202027
2 changed files with 5 additions and 4 deletions

View File

@ -61,11 +61,11 @@ TESTOBJ = test/testbufferoverrun.o \
cppcheck: $(OBJECTS)
g++ $(CXXFLAGS) -o cppcheck $(OBJECTS)
all: cppcheck testrunner tools
testrunner: $(TESTOBJ)
g++ $(CXXFLAGS) -o testrunner $(TESTOBJ)
all: cppcheck testrunner tools
test: all
./testrunner

View File

@ -97,10 +97,11 @@ int main()
fout << "\n###### Targets\n\n";
fout << "cppcheck:\t$(OBJECTS)\n";
fout << "\tg++ $(CXXFLAGS) -o cppcheck $(OBJECTS)\n\n";
fout << "all:\tcppcheck\ttestrunner\ttools\n\n";
fout << "testrunner:\t$(TESTOBJ)\n";
fout << "\tg++ $(CXXFLAGS) -o testrunner $(TESTOBJ)\n\n";
fout << "all:\tcppcheck\ttestrunner\ttools\n\n";
fout << "test:\ttestrunner\n\n";
fout << "test:\tall\n";
fout << "\t./testrunner\n\n";
fout << "tools:\ttools/errmsg\ttools/dmake\n\n";
fout << "tools/errmsg:\ttools/errmsg.cpp\n";
fout << "\tg++ $(CXXFLAGS) -o tools/errmsg tools/errmsg.cpp\n\n";