written Makefiles
This commit is contained in:
parent
6115c68645
commit
6386a69a02
6
3m.cpp
6
3m.cpp
@ -447,6 +447,7 @@ cout << "-v - Version: Print version" << endl;
|
||||
} else if(argv[1][1] == 'v') {
|
||||
cout << "v. 0.1-indev" << endl;
|
||||
} else {
|
||||
cout << "3m - Minetest Mod Manager v. 0.1-indev (C) 2012 by Phitherek_" << endl;
|
||||
ps = parseconfig(&localrepo, &localml, &localri, config);
|
||||
if(ps == 1) {
|
||||
cerr << "Parse error! Exiting..." << endl;
|
||||
@ -458,6 +459,11 @@ cout << "DEBUG: localrepo: " << localrepo << endl;
|
||||
cout << "DEBUG: localml: " << localml << endl;
|
||||
cout << "DEBUG: localri: " << localri << endl;
|
||||
//---DEBUG END---
|
||||
if(argv[1][1] == 'S') {
|
||||
|
||||
} else {
|
||||
cout << "No such action: " << argv[1] << endl << "Usage: " << argv[0] << " [-S/I/R/Q/h/v] [options] modname1 modname2 ..." << endl;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
28
Makefile
Normal file
28
Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
all:
|
||||
g++ -o 3m 3m.cpp
|
||||
make -C filetesters
|
||||
debug:
|
||||
g++ -o 3m 3m.cpp -g
|
||||
make -C filetesters debug
|
||||
clean:
|
||||
rm 3m
|
||||
make -C filetesters clean
|
||||
cleantemp:
|
||||
rm *~
|
||||
make -C filetesters cleantemp
|
||||
3m:
|
||||
g++ -o 3m 3m.cpp
|
||||
3mdebug:
|
||||
g++ -o 3m 3m.cpp -g
|
||||
3mclean:
|
||||
rm 3m
|
||||
3mcleantemp:
|
||||
rm *~
|
||||
filetesters:
|
||||
make -C filetesters
|
||||
ftdebug:
|
||||
make -C filetesters debug
|
||||
ftclean:
|
||||
make -C filetesters clean
|
||||
ftcleantemp:
|
||||
make -C filetesters cleantemp
|
12
filetesters/Makefile
Normal file
12
filetesters/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
all:
|
||||
g++ -o configparser configparser.cpp
|
||||
g++ -o modlistparser modlistparser.cpp
|
||||
g++ -o modinfoparser modinfoparser.cpp
|
||||
debug:
|
||||
g++ -o configparser configparser.cpp -g
|
||||
g++ -o modlistparser modlistparser.cpp -g
|
||||
g++ -o modinfoparser modinfoparser.cpp -g
|
||||
clean:
|
||||
rm configparser modlistparser modinfoparser
|
||||
cleantemp:
|
||||
rm *~
|
Loading…
x
Reference in New Issue
Block a user