1 ##############################################################################
2 # Copyright (c) 2000-2016 Ericsson Telecom AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Eclipse Public License v1.0
5 # which accompanies this distribution, and is available at
6 # http://www.eclipse.org/legal/epl-v10.html
12 ##############################################################################
14 # "org_eclipse_titan_executor_jni_JNIMiddleWare.h" is generated by javah (java header generator tool)
15 # DO NOT EDIT THAT FILE UNLESS YOU KNOW WHAT YOU ARE DOING
17 # CLI command for header generation:
18 # > javah -classpath . -jni org.eclipse.titan.executor.jni.JNIMiddleWare
19 # - must be issued in the /bin direcory within the project
22 include $(TOP
)/Makefile.cfg
24 CPPFLAGS
+= -I
$(JDKDIR
)/include
25 ifeq ($(PLATFORM
), WIN32
)
26 CPPFLAGS
+= -D__int64
='long long'
29 ifeq ($(PLATFORM
), LINUX
)
30 CPPFLAGS
+= -I
$(JDKDIR
)/include/linux
32 ifeq ($(PLATFORM
), SOLARIS
)
33 CPPFLAGS
+= -I
$(JDKDIR
)/include/solaris
35 ifeq ($(PLATFORM
), SOLARIS8
)
36 CPPFLAGS
+= -I
$(JDKDIR
)/include/solaris
39 STATIC_SOURCES
:= jnimw.
cc jninativelib.
cc
40 HEADERS
:= jnimw.h org_eclipse_titan_executor_jni_JNIMiddleWare.h
42 SOURCES
:= $(STATIC_SOURCES
)
44 OBJECTS
:= $(patsubst %.
cc,%.o
,$(patsubst %.c
,%.o
,$(SOURCES
)))
46 OTHER_OBJECTS
:= $(TOP
)/mctr2
/mctr
/MctrError.o
$(TOP
)/mctr2
/mctr
/MainController.o \
47 $(TOP
)/mctr2
/mctr
/UserInterface.o
$(TOP
)/common
/memory.o \
48 $(TOP
)/common
/new.o
$(TOP
)/core
/Textbuf.o
$(TOP
)/core
/RInt.o
$(TOP
)/common
/NetworkHandler.o \
49 $(TOP
)/mctr2
/cli
/config_read.
lex.o
$(TOP
)/mctr2
/cli
/config_read.tab.o
$(TOP
)/mctr2
/mctr
/config_data.o \
50 $(TOP
)/common
/config_preproc_p.tab.o
$(TOP
)/common
/config_preproc.o
$(TOP
)/common
/config_preproc_la.o \
51 $(TOP
)/common
/path.o
$(TOP
)/common
/memory.o
$(TOP
)/common
/Path2.o
53 ifeq ($(LICENSING
), yes
)
54 OTHER_OBJECTS
+= $(TOP
)/common
/license.o
57 TARGETS
:= libmctrjninative.so
60 SOLARIS8_LIBS
:= -lsocket
-lnsl
66 # Rules for building the executable...
70 libmctrjninative.so
: $(OBJECTS
) $(OTHER_OBJECTS
)
71 $(LD
) $(LDFLAGS
) -o
$@
$^ \
72 $($(PLATFORM
)_LIBS
) -lpthread
$(LICENSE_LIBS
) -L
$(OPENSSL_DIR
)/lib
-lcrypto
79 cp
$(TARGETS
) $(LIBDIR
)
81 include $(TOP
)/Makefile.genrules