mgen/README.md
2023-09-17 21:50:16 -05:00

16 lines
483 B
Markdown

# mgen
Makefile generator for C projects.
`mgen` automatically generates build rules for all source files (extension `.c`)
it finds in a recursive search of the directory in which it is run. It reads the
varibles from your existing Makefile and uses them when generating the new
targets.
The following varibles are supported:
- CC -> C compiler
- CFLAGS -> compilation flags
- LDLIBS -> linker libraries
- LDFLAGS -> linker flags
- TARGET -> name of final executable/library