Merge pull request #72 from eadrkir/master
[deliverable/titan.core.git] / JNI / Makefile
CommitLineData
d44e3c4f 1##############################################################################
2# Copyright (c) 2000-2016 Ericsson Telecom AB
970ed795
EL
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
d44e3c4f 7#
8# Contributors:
9# Balasko, Jeno
10# Lovassy, Arpad
11#
12##############################################################################
970ed795
EL
13#
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
16#
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
20
21TOP := ..
22include $(TOP)/Makefile.cfg
23
24CPPFLAGS += -I$(JDKDIR)/include
25ifeq ($(PLATFORM), WIN32)
26CPPFLAGS += -D__int64='long long'
27endif
28
29ifeq ($(PLATFORM), LINUX)
30 CPPFLAGS += -I$(JDKDIR)/include/linux
31endif
32ifeq ($(PLATFORM), SOLARIS)
33 CPPFLAGS += -I$(JDKDIR)/include/solaris
34endif
35ifeq ($(PLATFORM), SOLARIS8)
36 CPPFLAGS += -I$(JDKDIR)/include/solaris
37endif
38
39STATIC_SOURCES := jnimw.cc jninativelib.cc
40HEADERS := jnimw.h org_eclipse_titan_executor_jni_JNIMiddleWare.h
41
42SOURCES := $(STATIC_SOURCES)
43
44OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES)))
45
46OTHER_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
52
53ifeq ($(LICENSING), yes)
54 OTHER_OBJECTS += $(TOP)/common/license.o
55endif
56
57TARGETS := libmctrjninative.so
58
59SOLARIS_LIBS =
60SOLARIS8_LIBS := -lsocket -lnsl
61LINUX_LIBS :=
62FREEBSD_LIBS =
63WIN32_LIBS =
64
65#
66# Rules for building the executable...
67#
68all run: $(TARGETS);
69
70libmctrjninative.so: $(OBJECTS) $(OTHER_OBJECTS)
71 $(LD) $(LDFLAGS) -o $@ $^ \
72 $($(PLATFORM)_LIBS) -lpthread $(LICENSE_LIBS) -L$(OPENSSL_DIR)/lib -lcrypto
73
74install: $(TARGETS)
75ifeq ($(DEBUG), no)
76 $(STRIP) $(TARGETS)
77endif
78 mkdir -p $(LIBDIR)
79 cp $(TARGETS) $(LIBDIR)
80
81include $(TOP)/Makefile.genrules
This page took 0.025509 seconds and 5 git commands to generate.