source: gsdl/trunk/src/corba/Makefile.in@ 15549

Last change on this file since 15549 was 15549, checked in by mdewsnip, 16 years ago

Fixed previous change.

File size: 5.0 KB
Line 
1###########################################################################
2#
3# Makefile -- src/corba
4# A component of the Greenstone digital library software
5# from the New Zealand Digital Library Project at the
6# University of Waikato, New Zealand.
7#
8# Copyright (C) 1999-2008 The New Zealand Digital Library Project
9#
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24#
25###########################################################################
26
27GSDL_DIR = ../..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
29PACKAGES_DIR = $(GSDL_DIR)/packages
30COLSERVR_DIR = $(GSDL_DIR)/src/colservr
31PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
32
33
34USE_CORBA = @USE_CORBA@
35ifeq ($(USE_CORBA), 1)
36
37# FROM LIB
38
39MICO_DIR = @MICO_DIR@
40ifeq ($(MICO_DIR), default)
41MICO_INC = -I../packages/mico/mico/include
42MICO_PATH = ../bin/linux/
43else
44ifeq ($(MICO_DIR), yes)
45MICO_INC =
46else
47MICO_INC = -I$(MICO_DIR)
48endif
49MICO_PATH =
50endif
51MINCLUDES = -I/usr/include/g++-2/ -I/usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/include/ -I/usr/include -I. -I../indexers/mg/lib $(MICO_INC) -I..
52
53MCFLAGS = -Wall -Wunused
54
55MCOMPILE = $(MICO_PATH)mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
56
57
58.SUFFIXES: .mpp .o
59.mpp.o:
60 $(MCOMPILE) $<
61
62
63CORBAHEADERS = \
64 corbaconv_text_t.h corbatext_t.h
65CORBASOURCES = \
66 corbaiface.mpp corbatext_t.mpp corbaconv_text_t.mpp corbaiface_skel.mpp
67CORBAOBJECTS = \
68 corbaiface.o corbatext_t.o corbaconv_text_t.o corbaiface_skel.o
69
70
71corbaiface_skel.h: corbaiface.idl
72 LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PATH=$(MICO_PATH):$(PATH) idl --boa --no-poa --c++-skel --c++-suffix=mpp $?
73corbaiface_skel.mpp: corbaiface.idl
74 LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PATH=$(MICO_PATH):$(PATH) idl --boa --no-poa --c++-skel --c++-suffix=mpp $?
75corbaiface.mpp: corbaiface.idl
76 LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PATH=$(MICO_PATH):$(PATH) idl --boa --no-poa --c++-skel --c++-suffix=mpp $?
77
78
79# FROM COLSERVR
80# ===========================================================================================
81# CORBA SUPPORT
82
83MCFLAGS = @CFLAGS@ -Wall -Wunused
84
85MICO_DIR = @MICO_DIR@
86ifeq ($(MICO_DIR), default)
87MICO_INC = -I../../packages/mico/include
88MICO_PATH = ../../bin/linux/
89else
90ifeq ($(MICO_DIR), yes)
91MICO_INC =
92MICO_PATH =
93else
94MICO_INC = -I$(MICO_DIR)
95MICO_PATH =
96endif
97endif
98MINCLUDES = -I. -I../../lib -I../recpt -I$(INDEXERS_DIR)/mgpp/text $(MICO_INC)
99
100MCOMPILE = $(MICO_PATH)mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
101
102.SUFFIXES: .mpp .o
103.mpp.o:
104 $(MCOMPILE) $<
105
106CORBAHEADERS = corbaServer.h
107CORBASOURCES = corbaServer.mpp
108CORBAOBJECTS = corbaServer.o ../../lib/corbaiface_skel.o
109
110# ===========================================================================================
111
112
113# FROM RECPT
114
115CORBA_CFLAGS=-DUSE_CORBA
116
117
118EXEC = corbaserver corbarecptldd
119
120
121MICO_DIR = @MICO_DIR@
122MICO_VER = @MICO_VER@
123ifeq ($(MICO_DIR), yes)
124MICO_INC =
125MICO_LIB =
126MICO_PATH =
127else
128ifeq ($(MICO_DIR), default)
129MICO_DIR = ../../packages/mico/include
130MICO_PATH = ../../bin/linux/
131else
132MICO_PATH =
133endif
134MICO_INC = -I$(MICO_DIR)
135MICO_LIB = -L$(MICO_DIR)
136endif
137MINCLUDES = -I. -I../../lib -I../colservr -I$(INDEXERS_DIR)/mgpp/text $(MICO_INC)
138
139MCOMPILE = $(MICO_PATH)mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
140MSTATIC = @STATIC@
141MLINK = $(MICO_PATH)mico-ld $(MSTATIC) $(LDFLAGS) $(MICO_LIB) -o $@
142MLIBS = $(LIBS) -L../../lib/ -lmico$(MICO_VER) -lmicoaux$(MICO_VER)
143
144
145.SUFFIXES: .mpp .o
146.mpp.o:
147 $(MCOMPILE) $< -o $@
148
149
150corbaserver: $(RECPTLIB_OBJS)
151 @echo -e building corbaserver
152 $(MLINK) $(RECPTLIB_OBJS) $(MLIBS)
153# stripping symbols was a cunning plan, but caused difficulties when
154# it came to debugging ...
155# non GNU strips might not like these options - check autoconf?
156# strip --strip-all --discard-all corbaserver
157# strip corbaserver
158# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
159
160CORBARECPT_OBJECTS = corbaproto.o corbaclient.o
161
162CORBARECPT_OBJS = $(COMMONOBJECTS) $(CORBARECPT_OBJECTS) $(COLSERVROBJECTS) \
163 ../../lib/corbaiface.o \
164 ../../lib/corbaiface_skel.o \
165 ../../lib/corbaconv_text_t.o \
166 ../../lib/corbatext_t.o \
167 ../../lib/gsdllib.a \
168 $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
169 $(INDEXERS_DIR)/mg/lib/libmglib.a \
170 $(FASTCGI_OBJS) \
171 $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
172 $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a
173
174
175corbarecptldd: $(CORBARECPT_OBJS)
176 @echo -e building corbarecptldd:
177 $(MLINK) $(CORBARECPT_OBJS) $(MLIBS)
178
179else
180all:
181install:
182clean:
183distclean:
184depend:
185endif
Note: See TracBrowser for help on using the repository browser.