summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 5 insertions, 7 deletions
diff --git a/README.md b/README.md
index 4db8cff..b9e9f4f 100644
--- a/README.md
+++ b/README.md
@@ -10,13 +10,9 @@ 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).
+- Only one target per source tree: a binary (identified by the source file
+ containing main(), which will have the same basename without .c), or a
+ library (identified by the MAJE_LIB flag (see below).
Usage
=====
@@ -56,6 +52,8 @@ up to the first white space character as indicated:
MAJE_CFLAG Added to the CFLAGS macro
MAJE_LDFLAG Added to the LDFLAGS macro
MAJE_LDLIB Added to the LDLIBS macro
+ MAJE_LIB Used as the library basename (e.g. MAJE_LIB=foo
+ will create libfoo.a and libfoo.so)
Maje will find these strings anywhere in your source file, so long as they
are followed by an equal sign, one or more characters, and a whitespace