delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/09/20:19:26

From: hcobb AT telegenisys DOT com (Henry J. Cobb)
Subject: Makefile for JNI on eNp-Ty
9 Aug 1998 20:19:26 -0700 :
Message-ID: <35CE365C.3365.cygnus.gnu-win32@telegenisys.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

In my continuing mission to use the CygWin32 tools to build Java
products,
I now have a makefile for Java Naive Interface DLLs, but unfortunately
it only works with the M$ C compiler so far...

include ~/utils/include/defines.mk

LINK_OPT = /DLL

JNI_HEAD = com_welltoforgobank_accounts_MyAccount.h

JNI_SOURCE = myaccount.c

JNI_OBJS = $(JNI_SOURCE:%.c=%.obj)

JAVAPATH=../java/com/welltoforgobank/accounts

all: $(JNI_HEAD) accounts.dll

accounts.dll:  $(JNI_OBJS)
	$(LINK) $(LINK_OPT) $(JNI_OBJS) javai.lib /OUT:accounts.dll

%.obj: %.c $(JNI_HEAD)
	$(CC) $< /c /W3

com_welltoforgobank_accounts_%.h: $(JAVAPATH)\%.java
	-rm $@
	javah -jni com.welltoforgobank.accounts.$*

# eNp-Ty Gnu Make Brain Damage follows...
com_welltoforgobank_accounts_MyAccount.h: $(JAVAPATH)\MyAccount.java

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019