~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to modules/app_java/Makefile

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id$
 
2
#
 
3
 
4
# WARNING: do not run this directly, it should be run by the master Makefile
 
5
 
 
6
include ../../Makefile.defs
 
7
auto_gen=
 
8
NAME=app_java.so
 
9
 
 
10
#DEFS += -DEXTRA_DEBUG
 
11
 
 
12
DIST = $(shell if [ -f "/etc/redhat-release" ]; then cat /etc/redhat-release | sed "s/.*\([0-9]\)\.[0-9].*/\1/g"; fi)
 
13
ifeq ($(DIST),6)
 
14
JVM_PATH = $(shell dirname `find /usr/lib/jvm/java/ -name "libjvm.so"`)
 
15
DEFS += $(shell pkg-config libgcj-4.4 --cflags)
 
16
LIBS += $(shell pkg-config libgcj-4.4 --cflags) -L$(JVM_PATH) -ljvm
 
17
else
 
18
# try to detect JAVA_HOME
 
19
JAVA_HOME ?= $(shell readlink -f /usr/bin/javac | sed "s:bin/javac::")
 
20
DEFS += $(shell pkg-config libgcj12 --cflags) -I$(JAVA_HOME)/include
 
21
LIBS += $(shell pkg-config libgcj12 --libs) -L$(JAVA_HOME)/lib  -ljvm
 
22
 
 
23
ifeq ($(OS), freebsd)
 
24
LIBS+=-pthread
 
25
endif
 
26
ifeq ($(OS), linux)
 
27
DEFS += -I$(JAVA_HOME)/include/linux
 
28
endif
 
29
endif
 
30
 
 
31
# disable optimisation for segfaults debugging
 
32
INCLUDE += -O0 -g
 
33
INCLUDES += -O0 -g
 
34
 
 
35
DEFS+=-DKAMAILIO_MOD_INTERFACE
 
36
 
 
37
include ../../Makefile.modules
 
38