dmake: Minor updates. Moved target "all" a little. Handle the change 937 where "make test" also executes testrunner
This commit is contained in:
parent
2907708af8
commit
631e202027
4
Makefile
4
Makefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue