# Generated automatically from Makefile.in by configure.
SHELL = /bin/sh

prefix=/usr/athena
exec_prefix=${prefix}
datadir=${prefix}/share
confdir=/etc/athena/zephyr
sbindir=${exec_prefix}/sbin

includedir=$(prefix)/include
mandir=$(prefix)/man
libdir=$(exec_prefix)/lib

srcdir=.
top_srcdir=../..
BUILDTOP=../..
CC=gcc
YACC=bison -y
LEX=flex
RANLIB=:
COMPILE_ET=compile_et

DEBUG=-O
CFLAGS=$(DEBUG) -I$(srcdir) -I$(top_srcdir)/h -I$(BUILDTOP)/h -I.  -I/usr/athena/include
YFLAGS=-d

OBJS=	ss_err.o data.o help.o error.o execute_cmd.o invocation.o list_rqs.o \
	listen.o pager.o parse.o prompt.o request_tbl.o requests.o std_rqs.o 
MKOBJS=	mk_cmds.o utils.o options.o ct.o cmd_tbl.o

all: mk_cmds libss.a

mk_cmds: ss_err.o $(MKOBJS)
	$(CC) $(LDFLAGS) -o $@ $(MKOBJS) $(LIBS)

libss.a: $(OBJS)
	ar cru $@ $(OBJS)
	$(RANLIB) $@

ss_err.c $(BUILDTOP)/h/ss/ss_err.h: ss_err.et
	$(COMPILE_ET) $(srcdir)/ss_err.et
	mv ss_err.h $(BUILDTOP)/h/ss/ss_err.h

std_rqs.c: std_rqs.ct
	./mk_cmds $(srcdir)/std_rqs.ct

check:

install:

clean:
	rm -f $(OBJS) $(MKOBJS) mk_cmds libss.a ss_err.[ch] std_rqs.c

$(OBJS) $(MKOBJS): ss_internal.h ss.h $(BUILDTOP)/h/ss/ss_err.h
$(OBJS) $(MKOBJS): $(top_srcdir)/h/sysdep.h $(BUILDTOP)/h/config.h

.PHONY: all check install clean

