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