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