~ubuntu-branches/ubuntu/oneiric/libapache-mod-jk/oneiric

« back to all changes in this revision

Viewing changes to jk/native/domino/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2006-08-05 16:30:53 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060805163053-myf66gm6j1a21ps6
Tags: 1:1.2.18-1ubuntu1
Merge from Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for Tomcat Domino connector
2
 
 
3
 
CC=gcc
4
 
LD=gcc -shared
5
 
CCFLAGS=-fPIC -O3
6
 
LDFLAGS=-shared
7
 
 
8
 
#################################################################################
9
 
#                                                                               #
10
 
# These will almost certainly need to be changed to match the specifics of your #
11
 
# Domino and Tomcat installations.                                              #
12
 
#                                                                               #
13
 
#################################################################################
14
 
 
15
 
# The root of your Domino installation. Mine's in /usr/local/lotus, but your's
16
 
# may well be /opt/lotus
17
 
NOTESROOT=/usr/local/lotus
18
 
 
19
 
# The place where the Notes API is installed
20
 
NOTESAPI=$(NOTESROOT)/notesapi
21
 
 
22
 
# The Domino program directory.
23
 
NOTESHOME=$(NOTESROOT)/notes/5061/linux
24
 
 
25
 
# The Domino data directory (the directory containing names.nsf)
26
 
NOTESDATA=$(NOTESROOT)/notes/data
27
 
 
28
 
# The include path for the Notes C API headers
29
 
NOTESINC=$(NOTESAPI)/include
30
 
 
31
 
# Where tomcat is installed. This is where conf, lib, webapps et al normally are
32
 
TOMCATHOME=/usr/local/apache/tomcat
33
 
 
34
 
# Your JDK's include directory
35
 
JAVAINC=$(JAVA_HOME)/include
36
 
 
37
 
#################################################################################
38
 
#                                                                               #
39
 
# You probably won't need to change anything below here.                        #
40
 
#                                                                               #
41
 
#################################################################################
42
 
 
43
 
JK=../common
44
 
LIBS=-lc -ldl -lnotes -L$(NOTESHOME)
45
 
 
46
 
INC=-I$(NOTESINC) -I$(JAVAINC) -I$(JK)
47
 
DEFS=-DLINUX -DUNIX
48
 
 
49
 
JKOBJ = $(JK)/jk_ajp12_worker.o $(JK)/jk_ajp13.o $(JK)/jk_ajp13_worker.o \
50
 
        $(JK)/jk_connect.o $(JK)/jk_jni_worker.o $(JK)/jk_lb_worker.o \
51
 
        $(JK)/jk_map.o $(JK)/jk_msg_buff.o $(JK)/jk_nwmain.o \
52
 
        $(JK)/jk_pool.o $(JK)/jk_sockbuf.o $(JK)/jk_uri_worker_map.o \
53
 
        $(JK)/jk_util.o $(JK)/jk_worker.o $(JK)/jk_ajp14.o \
54
 
        $(JK)/jk_ajp14_worker.o $(JK)/jk_context.o $(JK)/jk_md5.o \
55
 
        $(JK)/jk_ajp_common.o
56
 
 
57
 
LOBJ  = jk_dsapi_plugin.o inifile.o
58
 
OBJ   = $(JKOBJ) $(LOBJ)
59
 
 
60
 
TARG  = libtomcat.so
61
 
INI   = libtomcat.ini
62
 
 
63
 
all: $(TARG) $(INI) 
64
 
 
65
 
$(TARG): $(OBJ)
66
 
        $(LD) $(LDFLAGS) $(LIBS) $(OBJ) -o $(TARG)
67
 
 
68
 
$(INI): mkini.sh Makefile
69
 
        ./mkini.sh $(TOMCATHOME) > $(INI)
70
 
 
71
 
.c.o:
72
 
        $(CC) $(CCFLAGS) $(DEFS) $(INC) -o $@ -c $< 
73
 
 
74
 
clean:
75
 
        rm -f $(OBJ)
76
 
 
77
 
install: $(TARG) $(INI)
78
 
        cp $(TARG) $(NOTESHOME)
79
 
        cp $(INI) $(NOTESDATA)
80
 
 
81
 
# Various dependencies
82
 
jk_dsapi_plugin.o: jk_dsapi_plugin.c config.h inifile.h
83
 
inifile.o: inifile.c config.h inifile.h