mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
e6c203832e
1) Restore the ability to build CGI as a shared library 2) Correct make dependency rule so that the jar files are included 3) Search for jar executable, and use it, if found Left TODO: actually build the shared libraries
27 lines
668 B
Makefile
27 lines
668 B
Makefile
|
|
DEPTH = ../..
|
|
topsrcdir = @topsrcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
LTLIBRARY_NAME = libphp_java.la
|
|
LTLIBRARY_SOURCES = java.c
|
|
LTLIBRARY_DEPENDENCIES = php_java.jar
|
|
|
|
EXTRA_CFLAGS = $(JAVA_CFLAGS)
|
|
EXTRA_INCLUDES = $(JAVA_INCLUDE)
|
|
|
|
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=php4>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
|