#
# Makefile for rusers
#
# Copyright (C) 19yy  <name of author>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id: Makefile,v 1.1 1996/06/06 17:49:15 kukuk Exp $
#
CC = gcc
CFLAGS = -O6
LDLIBS = 
LDFLAGS =

all: rusers

install: rusers
	install -o root -g root -m 0755 rusers ${ROOT}/usr/bin/
	install -o root -g root -m 0644 rusers.1 ${ROOT}/usr/man/man1

clean:
	rm -f *.o rusers rusers.h rusers_xdr.c *~

rusers: rusers.o rusers_xdr.o

rusers.o: rusers.h

rusers.h: rusers.x
	rpcgen -h -o rusers.h rusers.x

rusers_xdr.c: rusers.x
	rpcgen -c -o rusers_xdr.c rusers.x

rusers_xdr.o: rusers_xdr.c rusers.h
