Makefile

September 4, 2024 · View on GitHub

Managing MiniLang project using the GNU make build tool.

Project skeleton structure

skel/
├── include
│   ├── gc.c
│   ├── gc.h
│   ├── gc-LICENSE
│   ├── log.c
│   ├── log.h
│   ├── sds.c
│   ├── sds.h
│   ├── sdsalloc.h
│   └── sds-LICENSE
├── Makefile
└── src
    └── main.ml

Recipes

RecipeAliasBackend
defaultdef, cc
cdebugcdbgc
debugdbgml
assembleasmasm

Parameters

Warning

For new ML projects, makefile parameters ML, MLLIB need to be adjusted if they are specified by a relative path.

ParameterDescription
CCPath to c compiler
MLPath to ML compiler
MLLIBPath to ML standard library
CFLAGSOptions passed to c compiler
MLFLAGSOptions passed to ML compiler