# Generated automatically from Makefile.in by configure.
# Operator Shell (OSH) Makefile
# Mike Neuman
# mcn@EnGarde.com
#

SHELL = /bin/sh


.SUFFIXES:
.SUFFIXES: .c .o

SRCS = exp.c handlers.c main.c

OBJS = exp.o handlers.o main.o

CC =      gcc -DHAVE_CONFIG_H
CFLAGS =  -g -O -I.
LDFLAGS = 
LIBS =    -lmalloc -lcurses -ltermcap 

all:	osh consult
	(cd rvi;$(MAKE))

install: osh consult
	echo "Do the installation by hand. Read INSTALL"

main.o: struct.h config.h
exp.o: struct.h config.h
handlers.o: struct.h config.h
osadmin.o: struct.h config.h
consult.o: config.h

osh: $(OBJS)
	$(CC) $(CFLAGS) -o osh $(OBJS) $(LIBS)

osadmin: 
	$(CC) -g $(CFLAGS) -o osadmin osadmin.c $(LIBS)

consult: 
	$(CC) $(CFLAGS) -o consult consult.c

clean: 
	rm -f $(OBJS) $(AOBJS) osh.tar.Z

# Distribution and Development stuff

allclean:
	rm -f $(OBJS) $(AOBJS) osh.tar.Z osh.tar.gz osh consult config.cache \
		config.log config.status defs.h Makefile
	(cd rvi;make clean)
	rm -f rvi/Makefile

osh.tar.Z: allclean
	(cd ..;tar cf osh.tar osh;compress osh.tar;mv osh.tar.Z osh)

osh.tar.gz: allclean
	(cd ..;tar cf osh.tar osh;gzip --best osh.tar;mv osh.tar.gz osh)
