aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh24
1 files changed, 15 insertions, 9 deletions
diff --git a/build.sh b/build.sh
index e42511d..d10d67e 100755
--- a/build.sh
+++ b/build.sh
@@ -7,15 +7,21 @@
: ${BIN=lpm}
: ${JOBS=4}
-# The build options are available:
-# clean Cleans the build directory.
-# -g Compile with debug support.
-# -l<library> Compiles against the shared system version of the specified library.
-# -DLPM_NO_GIT Compiles without libgit2 support.
-# -DLPM_NO_NETWORK Compiles without network support.
-# -DLPM_NO_THREADS Compiles without threading support.
-# -DLPM_VERSION Sets the specific version.
-# -DLPM_STATIC Bundles lpm.lua into the binary executable.
+# The non-exhaustive build options are available:
+# clean Cleans the build directory.
+# -g Compile with debug support.
+# -l<library> Compiles against the shared system version of the specified library.
+# -DLPM_NO_GIT Compiles without libgit2 support.
+# -DLPM_NO_NETWORK Compiles without network support.
+# -DLPM_NO_THREADS Compiles without threading support.
+# -DLPM_NO_REMOTE_EXECUTABLE Compiles without the ability to download remote executables.
+# -DLPM_STATIC Compiles lpm.lua into the binary executable.
+# -DLPM_ARCH_TUPLE Specifies the arch tuple for this build.
+# -DLPM_DEFAULT_REPOSITORY Specifies the default repository to download on init.
+# -DLPM_DEFAULT_RELEASE Specifies the default release for lpm for `self-upgrade`.
+# -DLPM_VERSION Specifies the lpm version.
+# -DLPM_ARCH_PROCESSOR Manually specifies the processor archiecture.
+# -DLPM_ARCH_PLATFORM Manually specifies the operating system.
SRCS="src/*.c"
COMPILE_FLAGS="$CFLAGS -I`pwd`/lib/prefix/include" # We specifically rename this and LDFLAGS, because exotic build environments export these to subprocesses.