# # Copyright (c) 1992-93 by Mark Boyns (boyns@sdsu.edu) # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, provided # that the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation. This software is provided "as is" without express or # implied warranty. # OBJ= y.tab.o lex.yy.o rshell.o LIBS= -ll -ltermcap CFLAGS= -O CC= gcc all: rshell rshell: $(OBJ) $(CC) $(CFLAGS) $(OBJ) -o $@ $(LIBS) y.tab.c: rc.y yacc -d rc.y lex.yy.c: rc.l lex rc.l clean: rm -f core a.out $(OBJ) y.tab.h y.tab.c lex.yy.c rshell install: cp rshell /usr/local/bin