blob: 9a528a17e99b15fc93c44eea09f2ea4e5bab606a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# $Id$
CFLAGS=-Wall -pipe -W -O2 -Wextra -Wno-unused-parameter
VERSION=0.1
libnss_myhostname.so.2: nss-myhostname.o
$(CC) $(CFLAGS) -shared -o $@ -Wl,-soname,$@ $^
strip $@
install:
install -D -g root -m 644 -o root -v libnss_myhostname.so.2 /lib/libnss_myhostname.so.2
clean:
rm -f *.o *~ libnss_myhostname.so.2
nss-myhostname.tar.gz:
rm -rf "nss-myhostname-$(VERSION)"
mkdir "nss-myhostname-$(VERSION)"
cp Makefile README *.c "nss-myhostname-$(VERSION)"/
tar czf "nss-myhostname-$(VERSION).tar.gz" "nss-myhostname-$(VERSION)"/
rm -rf "nss-myhostname-$(VERSION)"
tar: nss-myhostname.tar.gz
.PHONY: clean install tar
|