summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9301fab
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CFLAGS=-Wall -pipe -W -O2 -Wextra -Wno-unused-parameter
+
+libnss_myhostname.so.2: nss-myhostname.o
+ $(CC) -shared -o $@ -Wl,-soname,$@ $^
+ strip $@
+
+install:
+ install -D -g root -m 644 -o root -s -v libnss_myhostname.so.2 /usr/lib/libnss_myhostname.so.2
+
+clean:
+ rm -f *.o *~ libnss_myhostname.so.2
+
+.PHONY: clean