2017-05-16 19:02:52 +00:00
|
|
|
|
|
|
|
default:
|
|
|
|
@echo "install - will compile and create executables";
|
|
|
|
@echo "clean - will remove executables and clean";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install-sgca:
|
|
|
|
@echo "(1) Compiling SGCA";
|
|
|
|
@make --directory=./sgca > /dev/null;
|
|
|
|
|
|
|
|
install-plane:
|
|
|
|
@echo "(2) Compiling PLANE";
|
|
|
|
@make --directory=./plane > /dev/null;
|
|
|
|
|
|
|
|
link-sgca:
|
|
|
|
@echo "(3) Linking SGCA executable";
|
|
|
|
@ln -fs ./sgca/boot x-sgca;
|
|
|
|
|
|
|
|
link-plane:
|
|
|
|
@echo "(4) Linking PLANE executable";
|
|
|
|
@ln -fs ./plane/boot x-plane;
|
|
|
|
|
|
|
|
link-viewTerm:
|
2017-05-19 09:55:54 +00:00
|
|
|
@echo "(4) Compiling VIEW TERMINAL";
|
|
|
|
@javac ./viewTerm/**/*;
|
|
|
|
@echo -e "#!/bin/bash\n\ncd ./viewTerm/; java ViewTerminal.ViewTerminal;\n" > ./x-viewTerm;
|
2017-05-16 19:02:52 +00:00
|
|
|
@chmod ug+x ./x-viewTerm;
|
|
|
|
|
|
|
|
link-ctrlTerm:
|
2017-05-19 09:55:54 +00:00
|
|
|
@echo "(5) Compiling CTRL TERMINAL";
|
|
|
|
@javac ./ctrlTerm/**/*;
|
|
|
|
@echo -e "#!/bin/bash\n\ncd ./ctrlTerm; java ControlTerminal.ControlTerminal;\n" > ./x-ctrlTerm;
|
2017-05-16 19:02:52 +00:00
|
|
|
@chmod ug+x ./x-ctrlTerm;
|
|
|
|
|
|
|
|
|
|
|
|
install: install-sgca install-plane link-sgca link-plane link-viewTerm link-ctrlTerm
|
|
|
|
@echo;
|
|
|
|
@echo "*** Executables created:";
|
|
|
|
@ls -a . | grep -P "^x-*" | sed 's/^x-/ (*) x-/';
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2017-05-19 09:55:54 +00:00
|
|
|
@rm ./x-sgca;
|
|
|
|
@rm ./x-plane;
|
|
|
|
@rm ./x-viewTerm;
|
|
|
|
@rm ./x-ctrlTerm;
|
2017-05-16 19:02:52 +00:00
|
|
|
@make clean --directory=./sgca > /dev/null;
|
2017-05-19 09:55:54 +00:00
|
|
|
@make clean --directory=./plane > /dev/null;
|
|
|
|
@rm -rf ./viewTerm/**/*;
|
|
|
|
@rm -rf ./ctrlTerm/**/*;
|