aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-05-07 02:01:41 -0400
committerB. Watson <urchlay@slackware.uk>2025-05-07 02:01:41 -0400
commit2d3ad29006fc17b1b7ca7405d092e52e12ab8e01 (patch)
tree3bfe9d04259767bca26d4fa9b5da939ee5980c84 /Makefile
parent5d644c9e9f038afd61ad51b08a28f74ad729f55d (diff)
downloadmarsond-2d3ad29006fc17b1b7ca7405d092e52e12ab8e01.tar.gz
Makefile: document and fix static target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bcaaac0..d302211 100644
--- a/Makefile
+++ b/Makefile
@@ -61,8 +61,11 @@ clean:
realclean: clean
rm -f $(PROJ).8 usage.c
+# this is a "private" target, not expected to work on random systems.
+# It specifically works on Slackware 15.0, if the system/musl package
+# from SlackBuilds.org is installed.
static: clean
- $(MAKE) CC=musl-gcc CFLAGS="$(COPT) $(CWARN) -nostdinc -isystem /usr/include/musl -isystem /usr/include -Wl,-s"
+ $(MAKE) CC=musl-gcc COPT="-static -nostdinc -isystem /usr/include/musl -isystem /usr/include -Wl,-s"
mv $(PROJ) $(PROJ).static
install: all