summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-01-14 12:44:31 -0500
committerJakob Kaivo <jkk@ung.org>2020-01-14 12:44:31 -0500
commit3c8de3caa43fd478ec1fe034be25452d3416f0b4 (patch)
treeade1be9390aa5dc5bef6030a9619def008b657ab
parenta1fabe91eb33ef17030c588dfbdfd9d781a7ea63 (diff)
add README
-rw-r--r--README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..cd40541
--- /dev/null
+++ b/README.md
@@ -0,0 +1,24 @@
+Maje
+====
+
+Maje is a simple utility to generate basic Makefiles for simple utilities. Maje
+scans a directory tree for C source code, and builds a Makefile with proper
+dependency information based on that code. The Makefile in this source tree
+is itself generated by Maje.
+
+There are a few restrictions:
+
+- Source files must be named ending with .c.
+
+- Only executables are supported, not libraries (there must be a main()).
+
+- Only one executable per source tree is supported (exactly one main()).
+
+- Maje expects the resulting binary to have the same base name as the source
+file containing main() (e.g. if main() is in maje.c, the binary will be called
+maje).
+
+Maje has no command line options, and supports only a single (optional)
+operand. If given, the operand is the path to a directory containing source
+for an out-of-source-tree build. If not specified, Maje defaults to using
+the current directory (.).