pymaketoolΒΆ

Release v2.0.3. (Installation)

https://img.shields.io/pypi/l/pymaketool.svg https://img.shields.io/pypi/wheel/pymaketool.svg https://img.shields.io/badge/python-%3E=_3.6-green.svg GitHub tag (latest by date) Test workflow

pymaketool is an elegant and simple tool to generate a C project with GNU Make files.


Behold, the power of pymaketool

# app_mk.py
from pymakelib import module

def getSrcs(m: module.ModuleHandle):
   return m.getAllSrcsC()

def getIncs(m: module.ModuleHandle):
   return m.getAllIncsC()

Or in class mode:

# app_mk.py
from pymakelib import module

@module.ModuleClass
class mod(module.BasicCModule):
   pass

Load remote module:

# extlib_mk.py
from pymakelib import module

@module.ModuleClass
class ExtLib(module.ExternalModule):

   def getModulePath(self)->str:
      # Location of module
      return '/LIBS/module_lib/module_lib_mk.py'

pymaketool allow to you create C projects with anything structure extremely easily. Use Eclipse IDE for open and edit your project, pymaketool generates the necessary files for this.

pymaketool

Structure of un pymaketool project

project