]> mj.ucw.cz Git - nwho.git/blob - Makefile
a013f805b5416ec97c76a74d33bc360bfd6f9e01
[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.9
7
8 all: nwhod nwho
9
10 nwhod: nwhod.o
11
12 nwhod.o: nwhod.c net.h
13
14 nwho: nwho.o
15
16 nwho.o: nwho.c net.h
17
18 clean:
19         rm -f *.o nwhod nwho *~
20         rm -rf dist
21
22 install:
23         mkdir -p $(ROOT)/usr/bin $(ROOT)/usr/sbin
24         install -s -m 755 nwho $(ROOT)/usr/bin
25         ln -sf nwho $(ROOT)/usr/bin/nuptime
26         install -s -m 755 nwhod $(ROOT)/usr/sbin
27         install -d -m 755 $(ROOT)/var/spool/nwho
28
29 dist: clean
30         mkdir dist
31         cp -a . dist/$(REL)
32         rm -rf `find dist/$(REL) -name CVS -o -name tmp` dist/$(REL)/dist
33         cd dist ; tar czvvf /tmp/$(REL).tar.gz $(REL)