tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Haischt <sirab...@gmx.net>
Subject building mod_jk on freebsd 4.0
Date Fri, 21 Jul 2000 17:05:19 GMT
hello,

with the Makefile provided with the latest tomcat source snapshot,
i successfully build mod_jk.

below is the modified which leads to a successful build.

currently i'm using the linux jdk (v1.2.2) from the blackdown team.
if you are using the native freebsd jdk (v1.1.8) you definitely have
to change the JAVA_INCL line!

for the one who originally wrote the Makefile:

freebsd uses it's own make utility (which isn't gmake)!
so i had to change %.o and %.c to *.o and *.c.

------------------------------------------------- Makefile 
-----------------------------------------------------
APACHE_HOME=/usr/local
OS=freebsd
APXS=/usr/local/sbin/apxs

A13_FLAGS=-I${APACHE_HOME}/include

## I assume this one is set up already
# JAVA_HOME=

JAVA_INCL=-I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux
JAVA_LIB=-L${JAVA_HOME}/jre/lib/${ARCH} 
-L${JAVA_HOME}/lib/${ARCH}/native_threads

CFLAGS=-DHAVE_CONFIG_H -g -fpic  -DSHARED_MODULE -O2 -D_REENTRANT -pthread 
-DLINUX -Wall
## You need to edit this file - configure later :-)

APACHE_HOME=/usr/local/apache
OS=freebsd
APXS=/usr/local/sbin/apxs

A13_FLAGS=-I${APACHE_HOME}/include

## I assume this one is set up already
# JAVA_HOME=

JAVA_INCL=-I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux
JAVA_LIB=-L${JAVA_HOME}/jre/lib/${ARCH} 
-L${JAVA_HOME}/lib/${ARCH}/native_threads

CFLAGS=-DHAVE_CONFIG_H -g -fpic  -DSHARED_MODULE -O2 -D_REENTRANT -pthread 
-DLINUX -Wall

JK=../jk/
SRCS=jk_ajp12_worker.c jk_connect.c jk_msg_buff.c jk_util.c jk_ajp13.c \
      jk_jni_worker.c jk_pool.c jk_worker.c jk_ajp13_worker.c jk_lb_worker.c \
      jk_sockbuf.c  jk_map.c jk_uri_worker_map.c


OBJS=${patsubst %.c,%.o,${SRCS}}

*.o: ../jk/*.c
         ${CC} -c ${CFLAGS} ${JAVA_INCL} ${A13_FLAGS} $< -o $@

.c.o:
         ${APXS} -c ${JAVA_INCL} -DFREEBSD ${A13_FLAGS} -I../jk $<

all: mod_jk.so

mod_jk.so: ${OBJS} mod_jk.o
         $(APXS) -c -o mod_jk.so ${OBJS} mod_jk.o

# $(CC) -shared -o mod_jk.so ${OBJS} mod_jk.o

clean:
         rm *.o *.so
--------------------------------------------------------------------------------------------------------------------

regards

daniel haischt
--


Mime
View raw message