# Makefile for the ywho toolkit CFLAGS=-O2 -Wall -Wno-parentheses LDFLAGS=-s ROOT=/ REL=ywho-1.9 all: ywho nwhod nwho ywho: ywho.o ywho.o: ywho.c nwhod: nwhod.o nwhod.o: nwhod.c net.h nwho: nwho.o nwho.o: nwho.c net.h clean: rm -f *.o ywho nwhod nwho *~ rm -rf dist install: strip ywho mkdir -p $(ROOT)/usr/bin $(ROOT)/usr/sbin install -s -m 755 ywho nwho $(ROOT)/usr/bin ln -sf nwho $(ROOT)/usr/bin/nuptime install -s -m 755 nwhod $(ROOT)/usr/sbin install -d -m 755 $(ROOT)/var/spool/nwho dist: clean mkdir dist cp -a . dist/$(REL) rm -rf `find dist/$(REL) -name CVS -o -name tmp` dist/$(REL)/dist cd dist ; tar czvvf /tmp/$(REL).tar.gz $(REL)