3 CFLAGS=-Wall -pipe -W -O2 -Wextra -Wno-unused-parameter
6 libnss_myhostname.so.2: nss-myhostname.o
7 $(CC) $(CFLAGS) -shared -o $@ -Wl,-soname,$@ $^
11 install -D -g root -m 644 -o root -v libnss_myhostname.so.2 /lib/libnss_myhostname.so.2
14 rm -f *.o *~ libnss_myhostname.so.2
16 nss-myhostname.tar.gz:
17 rm -rf "nss-myhostname-$(VERSION)"
18 mkdir "nss-myhostname-$(VERSION)"
19 cp Makefile README *.c "nss-myhostname-$(VERSION)"/
20 tar czf "nss-myhostname-$(VERSION).tar.gz" "nss-myhostname-$(VERSION)"/
21 rm -rf "nss-myhostname-$(VERSION)"
23 tar: nss-myhostname.tar.gz
25 .PHONY: clean install tar