##===- tools/jnjvm/Makefile --------------------------------*- Makefile -*-===##
# 
#                     The vmkit project
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
# 
##===----------------------------------------------------------------------===##
LEVEL = ../..

include $(LEVEL)/Makefile.config

TOOLNAME = vmkit
USEDLIBS = Allocator CommonThread Mvm $(GCLIB) 

ifeq ($(WITH_JNJVM), 1)
USEDLIBS += JnJVM Classpath
endif

ifeq ($(ISOLATE_BUILD), 1) 
    USEDLIBS += Isolate
endif

ifeq ($(WITH_N3_PNETLIB), 1)
  USEDLIBS += N3 PNetLib
endif

LINK_COMPONENTS = jit nativecodegen scalaropts instrumentation ipa ipo

include $(LEVEL)/Makefile.common

ifeq ($(WITH_N3_PNETLIB), 1)
LIBS += $(PNETLIB)/engine/libILEngine.a $(PNETLIB)/image/libILImage.a $(PNETLIB)/support/libILSupport.a \
        $(PNETLIB)/libffi/.libs/libffi.a $(PNETLIB)//dumpasm/libILDumpAsm.a
endif


