summaryrefslogtreecommitdiff
path: root/ext/rpc/Makefile.in
blob: 51d2f9bcc9e9a8c44e9c4350f7eedd62c53e1d4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

LTLIBRARY_SHARED_NAME  = libphp_java.la
LTLIBRARY_SOURCES      = java.c
LTLIBRARY_DEPENDENCIES = php_java.jar

LTLIBRARY_LDFLAGS	= $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)
LTLIBRARY_SHARED_LIBADD = $(LTLIBRARY_DEPENDENCIES) $(EXTRA_LIBS)

EXTRA_CFLAGS   = $(JAVA_CFLAGS)
EXTRA_INCLUDES = $(JAVA_INCLUDE)

make_shared = yes

include $(top_srcdir)/build/dynlib.mk

php_java.jar : reflect.java
	@test -d net || mkdir net
	@test -d net/php || mkdir net/php
	@cp $(srcdir)/reflect.java net/php
	@echo library=php_java>net/php/reflect.properties
	javac net/php/reflect.java
	@test ! -f reflect.class || mv reflect.class net/php # bug in KJC javac
	$(JAVA_JAR) php_java.jar net/php/*.class net/php/*.properties
	@rm net/php/reflect.*
	@rmdir net/php
	@rmdir net