Commit | Line | Data |
---|---|---|
7172eb74 DF |
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 | # | |
300a5f74 | 6 | # @(#)Makefile 5.2 (Berkeley) %G% |
7172eb74 | 7 | # |
9b118173 | 8 | RDIST = /usr/ucb/rdist |
be739acc | 9 | DESTDIR= |
82572cb6 RC |
10 | SRCS = docmd.c expand.c gram.y lookup.c main.c server.c |
11 | OBJS = docmd.o expand.o gram.o lookup.o main.o server.o | |
be739acc | 12 | LINT = lint -ps |
030b7771 | 13 | CFLAGS= -O -DRDIST=\"${RDIST}\" |
be739acc RC |
14 | |
15 | rdist: ${OBJS} | |
16 | ${CC} -o rdist ${OBJS} | |
17 | ||
18 | ${OBJS}: defs.h | |
19 | ||
20 | clean: | |
21 | rm -f *.o gram.c errs | |
22 | ||
300a5f74 KB |
23 | depend: |
24 | ||
cca69c89 | 25 | install: rdist |
087a6a14 | 26 | install -s -m 4751 rdist ${DESTDIR}${RDIST} |
be739acc | 27 | |
82572cb6 RC |
28 | lint: 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 | |
be739acc RC |
30 | |
31 | print: ${SRCS} | |
32 | lpr -p ${SRCS} defs.h |