# @(#)Makefile	1.6 97/11/16
#
# Makefile for building bignum library
#

BUILDDIR   = ..\..
LIBRARY    = math
PKG	   = java.math
BN_VERSION = 1.1
!include $(BUILDDIR)\makefiles\defs.nmk

#
# What to compile.
#
!include $(MINCLUDES)\java_math.cmk
!include $(MINCLUDES)\java_math.jmk

#
# Stuff to feed javah with.
#
EXPORTED_CLASSES = java.math.BigInteger

#
# Has been converted to the JNI: generate JNI-style header files
#
JAVAHFLAGS = $(JAVAHFLAGS) -jni

#
# Oh, lets see those bignum header files.
#
EXTRA_INCLUDES = $(EXTRA_INCLUDES) \
	-I$(SHARE_SRC)\native\java\math\bn-$(BN_VERSION)

#
# Rules.
#
!include $(BUILDDIR)\makefiles\library.nmk

#
# bn-1.1 sources are in a special place.
#
{$(SHARE_SRC)\native\java\math\bn-$(BN_VERSION)}.c{$(OBJDIR)}.obj:
        $(CC) $(CFLAGS) -c -Fo$@ $<
