aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 714bda3..bcaaac0 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,10 @@ clean:
realclean: clean
rm -f $(PROJ).8 usage.c
+static: clean
+ $(MAKE) CC=musl-gcc CFLAGS="$(COPT) $(CWARN) -nostdinc -isystem /usr/include/musl -isystem /usr/include -Wl,-s"
+ mv $(PROJ) $(PROJ).static
+
install: all
mkdir -p $(DESTDIR)/$(SBINDIR) $(DESTDIR)/$(MAN8DIR) $(DESTDIR)/$(UDEVDIR) $(DESTDIR)/$(DOCDIR)
$(INSTALL_BIN) $(PROJ) $(DESTDIR)/$(SBINDIR)