]> mj.ucw.cz Git - nwho.git/blob - Makefile
Debianized...
[nwho.git] / Makefile
1 # Makefile for the ywho toolkit
2
3 CFLAGS=-O2 -m486 -fomit-frame-pointer -Wall -Wno-parentheses -malign-loops=0 -malign-jumps=0 -malign-functions=2
4 LDFLAGS=-s
5 ROOT=/
6
7 all: ywho nwhod nwho
8
9 ywho: ywho.o
10
11 ywho.o: ywho.c
12
13 nwhod: nwhod.o
14
15 nwhod.o: nwhod.c net.h
16
17 nwho: nwho.o
18
19 nwho.o: nwho.c net.h
20
21 clean:
22         rm -f *.o ywho nwhod nwho *~
23
24 install:
25         strip ywho
26         mkdir -p $(ROOT)/usr/bin $(ROOT)/usr/sbin
27         install -s -m 755 ywho nwho $(ROOT)/usr/bin
28         ln -sf nwho $(ROOT)/usr/bin/nuptime
29         install -s -m 755 nwhod $(ROOT)/usr/sbin
30         install -d -m 755 $(ROOT)/var/spool/nwho