# Generated automatically from Makefile.in by configure.
# Agent support for standard Java libraries
#
# Copyright (c) 1996 T. J. Wilkinson & Associates, 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@tjwassoc.demon.co.uk>, 1996.

VPATH=	../../../../../../kaffe-0.9.2/packages/tjwassoc.co.uk/APIagent/lib/sun.tools.debug.stubs
srcdir=		../../../../../../kaffe-0.9.2/packages/tjwassoc.co.uk/APIagent/lib
prefix=		/home/swebster/project/opera/linux
exec_prefix=	${prefix}
libdir=		/home/swebster/project/opera/linux
CC=		gcc
LD=		ld
AR=		ar cr
RANLIB=		ranlib
INCLUDES=	-I$(srcdir) -I../../../../include -I$(srcdir)/../../../../include -I../../../../config -I$(srcdir)/../../../../config
CFLAGS=		-g -O2
ALL_CFLAGS=	$(CFLAGS) $(INCLUDES)
INSTALL=	/usr/bin/install -c
INSTALL_DATA=	${INSTALL} -m 644
MKDIR=		mkdir -p
LN=		ln -s
DLLTOOL=	true
PIC=		
LDFLAGS=	
LIBS=		-lm -lc 
LDTAIL=		
KVER=		0.92
OBJEXT=		.o
LIBEXT=		.a

LIBNAME=	libagent
LIB=		$(LIBNAME)$(LIBEXT).$(KVER)
LLIB=		$(LIBNAME)$(LIBEXT)

OBJECT.AGENT=	AgentStub$(OBJEXT)

OBJECT=		$(OBJECT.AGENT)

all:		$(LLIB)

$(LLIB):	$(LIB)
		rm -f $(LLIB)
		$(LN) $(LIB) $(LLIB)

$(LIB):         $(OBJECT) lib.exp
		$(AR) $(LIB) $(OBJECT)
		$(RANLIB) $(LIB)

.c$(OBJEXT):
		$(CC) $(ALL_CFLAGS) -c $(PIC) $<

clean:
		rm -f $(LLIB) $(LIB) $(OBJECT) lib.exp

distclean:	clean
		rm -f Makefile

install:
		test -d $(libdir) || $(MKDIR) $(libdir)
		$(INSTALL_DATA) $(LIB) $(libdir)/$(LIB)
		rm -f $(libdir)/$(LLIB)
		$(LN) $(LIB) $(libdir)/$(LLIB)

lib.exp:
		$(DLLTOOL) --def $(srcdir)/$(LIBNAME).def --output-exp lib.exp --output-lib $(LIBNAME).a --dllname $(LLIB)
		touch lib.exp

# -------------------------------------------------------------------------
# Stuff to regenerate stubs.

SUNDEBUG=	sun.tools.debug.Agent

stubs:
	(cd $(srcdir)/sun.tools.debug.stubs &&\
		kaffeh -base $(SUNDEBUG);\
		kaffeh -postfix Stub -base -stubs $(SUNDEBUG))
