@@ -0,0 +1,2425 @@
+#!/usr/bin/env python%0A# -*- coding: UTF-8 -*-%0A#%0A# Copyright (c) 2016 ASMlover. All rights reserved.%0A#%0A# Redistribution and use in source and binary forms, with or without%0A# modification, are permitted provided that the following conditions%0A# are met:%0A#%0A#  * Redistributions of source code must retain the above copyright%0A#    notice, this list ofconditions and the following disclaimer.%0A#%0A#  * Redistributions in binary form must reproduce the above copyright%0A#    notice, this list of conditions and the following disclaimer in%0A#    the documentation and/or other materialsprovided with the%0A#    distribution.%0A#%0A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A# %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS%0A# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE%0A# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,%0A# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,%0A# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;%0A# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER%0A# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT%0A# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN%0A# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE%0A# POSSIBILITY OF SUCH DAMAGE.%0A%0Afrom __future__ import print_function%0A%0Aimport argparse%0Aimport platform%0Aimport subprocess%0Aimport sys%0A%0Adef get_arguments():%0A    parser = argparse.ArgumentParser(description='Building tools for Tyr')%0A    parser.add_argument('option', help='make%7Cclean the project')%0A    args = parser.parse_args()%0A    return args.option%0A%0Adef get_platform():%0A    return platform.system().lower()%0A%0Adef make(makefile):%0A    cmd = 'make -f %7Bfname%7D'.format(fname=makefile)%0A    subprocess.check_call(cmd, shell=True)%0A%0Adef clean(makefile):%0A    cmd = 'make -f %7Bfname%7D clean'.format(fname=makefile)%0A    subprocess.check_call(cmd, shell=True)%0A%0Adef main():%0A    pt = get_platform()%0A    if pt == 'linux':%0A        makefile = 'make.linux.mk'%0A    elif pt == 'darwin':%0A        makefile = 'make.darwin.mk'%0A    else:%0A        print ('********** INVALID PLATFORM (support Linux/macOS only) **********')%0A        sys.exit()%0A%0A    option = get_arguments()%0A    fun = getattr(sys.modules%5B'__main__'%5D, option, None)%0A    fun and fun(makefile)%0A%0Aif __name__ == '__main__':%0A    main()%0A

add making tool script for tyr