summaryrefslogtreecommitdiff
path: root/ext/java/Makefile.in
blob: 44cce3b4da013dcdd30d419a31168fa292f46898 (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

DEPTH     = ../..
topsrcdir = @topsrcdir@
srcdir    = @srcdir@
VPATH     = @srcdir@

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

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

make_shared = yes

include $(topsrcdir)/build/ltlib.mk

php_java.jar : reflect.java
	@test -e net || mkdir net
	@test -e net/php || mkdir net/php
	@cp 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