aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bristot de Oliveira <daniel@bristot.me>2020-09-11 08:33:57 +0200
committerGitHub <noreply@github.com>2020-09-11 08:33:57 +0200
commit7d72afc99e4c26451c2bdb9ad09fa4c5614d1eb8 (patch)
tree4ab206dbffc2e0e5567be7850de03645cfdaadde
parent8467ad4da91bce8edad458cfc0f2f72b03d81e7e (diff)
parent1a00487ea7176edba48134d4f98fcb7c94a1ae53 (diff)
downloadstalld-7d72afc99e4c26451c2bdb9ad09fa4c5614d1eb8.tar.gz
Merge pull request #17 from clrkwllms/master
update .gitignore and add 'static' target to Makefile
-rw-r--r--.gitignore2
-rw-r--r--Makefile4
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index c197c3e..4b55462 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ redhat/SPECS
redhat/SOURCES
*.tar.xz
*~
+*.o
+stalld
diff --git a/Makefile b/Makefile
index 51b8d9e..0be4a1c 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ LICDIR := $(DATADIR)/licenses
all: src/stalld.o
$(CC) -o stalld $(LDFLAGS) src/stalld.o $(LIBS)
+static: src/stalld.o
+ $(CC) -o stalld-static $(LDFLAGS) --static src/stalld.o $(LIBS)
+
.PHONY: install
install:
$(INSTALL) -m 755 -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(DOCDIR)
@@ -33,6 +36,7 @@ install:
.PHONY: clean tarball redhat push
clean:
@test ! -f stalld || rm stalld
+ @test ! -f stalld-static || rm stalld-static
@test ! -f src/stalld.o || rm src/stalld.o
@test ! -f $(TARBALL) || rm -f $(TARBALL)
@make -C redhat clean