# makefile for rh

# these settings are used by `make install'.
# set BINDIR to directory for the executable,
# and MANDIR to directory for man page.
# Usually it will be simpler to just set PREFIX.

PREFIX=/usr/local

BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/man/man1


CC=gcc

# we need both SYSV defs here as SYSVR3 is a `subtype' of SYSV.
CFLAGS=-O -DSYSV -DSYSVR3


# You shouldn't need to modify anything below this line.

OBJS=rhcmds.o rh.o rhparse.o rhdir.o rhdata.o glob_match.o

rh: $(OBJS)
	$(CC) $(CFLAGS) -o rh $(OBJS)

install: rh
	install -m 511 rh $(BINDIR)
	install -m 444 rh.1 $(MANDIR)

clean:
	rm -f *.o *~ rh
