[1790] in java-interest

home help back first fref pref prev next nref lref last post

Re: Question about Makefile for native functions

daemon@ATHENA.MIT.EDU (Tim Lindholm)
Sun Sep 17 00:24:26 1995

Date: Wed, 13 Sep 1995 15:09:18 -0700
From: lindholm@scndprsn.eng.sun.com (Tim Lindholm)
To: java-interest@java.Eng.Sun.COM, sid.conklin@nora.stanford.edu

Hi Sid,

The *.stubs files should have been built in $(CLASSSTUBDIR) by the
$(JAVAH) command that immediately precedes the @cat.  $(CLASSSTUBDIR)
should be called 'stubs' and be in the same directory as the obj*
directories.

Incidentally, this is the way things worked in alpha2, but not in
alpha3.  Your makefile fragment below tells me you're not using the
most recent sources.

-- Tim

----- Begin Included Message -----

Date: 13 Sep 1995 13:40:39 -0700
From: "Sid Conklin" <sid.conklin@nora.stanford.edu>
Subject: Question about Makefile for native functions
To: "java-interest@java.sun.com" <java-interest@java>

I'm following your native methods (File) example in alpha3 and can't figure
out the following portion of the make file.  The "@ cat..." always fails
because it can't find the /.*stubs files.  Further, I can't locate any
*.stubs files inside my java file space.  So, what is this supposed to do? Am
I missing some files or have I errored again?

[delete... Makefile text ]

libstubs.c	: classheaders $(STUBPREAMBLE)
		  $(JAVAH) -classpath $(CLASSPATH) -d $(CLASSSTUBDIR)/	\
		      -stubs $(EXPORTEDCLASSES)
		  @ cat $(STUBPREAMBLE) $(CLASSSTUBDIR)/*.stubs > $@

Thanks,

Sid Conklin
Stanford University

----- End Included Message -----


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post