# Makefile for wscr Copyright(c) 1998 by Eddie Buckley <eddie@sjfn.nb.ca>

# Change this to install in a different directory
PREFIX=/usr/local

# Change this if you have a complier other than gcc
CC=gcc

FLAGS=-Wall
INSTALL_DIR=$(PREFIX)/bin
MAN_DIR=$(PREFIX)/man/man6

wscr: wscr.o
	$(CC) $(FLAGS) wscr.o -o wscr

wscr.o: wscr.c wscr.h
	$(CC) $(FLAGS) -c wscr.c

install: wscr
	@echo Installing in $(INSTALL_DIR)
	cp wscr $(INSTALL_DIR)
	@echo Installing man page in $(MAN_DIR)
	cp wscr.6 $(MAN_DIR)

clean:
	-rm -f *.o wscr core a.out

