1# 2# Copyright (c) 1983 Regents of the University of California. 3# All rights reserved. The Berkeley software License Agreement 4# specifies the terms and conditions for redistribution. 5# 6# @(#)Makefile 5.2 (Berkeley) 05/31/87 7# 8RDIST = /usr/ucb/rdist 9DESTDIR= 10SRCS = docmd.c expand.c gram.y lookup.c main.c server.c 11OBJS = docmd.o expand.o gram.o lookup.o main.o server.o 12LINT = lint -ps 13CFLAGS= -O -DRDIST=\"${RDIST}\" 14 15rdist: ${OBJS} 16 ${CC} -o rdist ${OBJS} 17 18${OBJS}: defs.h 19 20clean: 21 rm -f *.o gram.c errs 22 23depend: 24 25install: rdist 26 install -s -m 4751 rdist ${DESTDIR}${RDIST} 27 28lint: docmd.c expand.c gram.c lookup.c main.c server.c 29 ${LINT} docmd.c expand.c gram.c lookup.c main.c server.c 30 31print: ${SRCS} 32 lpr -p ${SRCS} defs.h 33