]> mj.ucw.cz Git - nwho.git/blob - Makefile
4ad4601315a12d452e373c6bb29f6dde384ba96a
[nwho.git] / Makefile
1 # Makefile for the nwho toolkit
2
3 VERSION=1.12
4 CFLAGS=-O2 -Wall -Wno-parentheses -DVERSION=$(VERSION)
5 LDFLAGS=-s
6 ROOT=/
7 REL=nwho-$(VERSION)
8
9 all: nwhod nwho
10
11 nwhod: nwhod.o
12 nwhod.o: nwhod.c nwho.h
13
14 nwho: nwho.o
15 nwho.o: nwho.c nwho.h
16
17 clean:
18         rm -f *.o nwhod nwho *~
19
20 install:
21         mkdir -p $(ROOT)/usr/bin $(ROOT)/usr/sbin
22         install -s -m 755 nwho $(ROOT)/usr/bin
23         ln -sf nwho $(ROOT)/usr/bin/nuptime
24         install -s -m 755 nwhod $(ROOT)/usr/sbin
25         install -d -m 755 $(ROOT)/var/spool/nwho
26
27 dist: clean
28         mkdir -p ~/tmp
29         cp -a . ~/tmp/$(REL)
30         rm -rf `find ~/tmp/$(REL) -name CVS -o -name tmp`
31         cd ~/tmp ; tar czvvf $(REL).tar.gz $(REL)
32         rm -rf ~/tmp/$(REL)