# Makefile.in for kaffeh - kaffe native code stub generator.
#
# Copyright (c) 1996 Systems Architecture Research Centre,
#		   City University, London, UK.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.

@VPATHOPT@=	@srcdir@
srcdir=		@srcdir@
prefix=		@prefix@
exec_prefix=	@exec_prefix@
bindir=		@bindir@
INSTALL=	@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
CC=		@CC@
CFLAGS=		@CFLAGS@ -I. -I$(srcdir) -I../config -I$(srcdir)/../kaffevm -I$(srcdir)/../config -DKVER=\"@KVER@\"
LDFLAGS=	@LDFLAGS@
LIBS=		@LIBS@
OBJEXT=		@OBJEXT@

OBJECT=\
		constants$(OBJEXT) \
		sigs$(OBJEXT) \
		support$(OBJEXT) \
		main$(OBJEXT) \
		zextract$(OBJEXT) \
		readClass$(OBJEXT)

all:		kaffeh

kaffeh:		$(OBJECT)
		$(CC) $(LDFLAGS) -o kaffeh $(OBJECT) $(LIBS)

readClass$(OBJEXT):	$(srcdir)/../kaffevm/readClass.c
		$(CC) $(CFLAGS) -c $<

zextract$(OBJEXT):	$(srcdir)/../kaffevm/zextract.c
		$(CC) $(CFLAGS) -c $<

clean:
		rm -f kaffeh kaffeh.core $(OBJECT)

distclean:	clean
		rm -f config.log config.status Makefile

install:
		test -d $(bindir) || mkdir -p $(bindir)
		$(INSTALL_PROGRAM) kaffeh $(bindir)/kaffeh
