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

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

More improvements to the Makefile for compiling the CORBA stuff.

File size: 3.7 KB
RevLine 
[15549]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###########################################################################
[15548]26
[15549]27GSDL_DIR = ../..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
29PACKAGES_DIR = $(GSDL_DIR)/packages
30COLSERVR_DIR = $(GSDL_DIR)/src/colservr
31PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
[15548]32
33
[15576]34ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
35ifeq ($(ENABLE_ACCENTFOLD), 1)
36ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
37else
38ACCENTFOLD_LIBS =
39endif
40
[15549]41USE_CORBA = @USE_CORBA@
42ifeq ($(USE_CORBA), 1)
43
[15463]44MICO_DIR = @MICO_DIR@
[15576]45MICO_VER = @MICO_VER@
[15463]46ifeq ($(MICO_DIR), default)
[15563]47MICO_INCLUDES = -I$(PACKAGES_DIR)/mico/mico/include
48MICO_PATH = $(PACKAGES_DIR)/mico/bin/
[15463]49else
50ifeq ($(MICO_DIR), yes)
[15563]51MICO_INCLUDES =
[15463]52else
[15563]53MICO_INCLUDES = -I$(MICO_DIR)
[15463]54endif
55MICO_PATH =
56endif
57
58
[15563]59AR = ar
60CC = @CC@
61CFLAGS = @CFLAGS@
62DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
63# Do NOT add the "recpt" directory here: the CORBA code should be independent of the receptionist!
64INCLUDES = -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(INDEXERS_DIR)/mgpp/text $(MICO_INCLUDES)
65INSTALL = @INSTALL@
66LDFLAGS = @LDFLAGS@
67LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(PACKAGES_DIR)/expat/lib -lexpat $(ACCENTFOLD_LIBS) \
[15576]68 -L$(PACKAGES_DIR)/mico/lib -lmico$(MICO_VER)
[15563]69RANLIB = @RANLIB@
[15463]70
71
[15563]72COMPILE = $(MICO_PATH)mico-c++ -x c++ $(CFLAGS) $(DEFS) $(INCLUDES) -c
[15576]73LINK = $(MICO_PATH)mico-ld $(LDFLAGS) -o $@
[15463]74
75
[15459]76.SUFFIXES: .mpp .o
77.mpp.o:
[15563]78 $(COMPILE) $<
[15459]79
80
[15563]81SOURCES = \
82 corbaconv_text_t.mpp \
83 corbaiface.mpp \
84 corbaiface_skel.mpp \
[15576]85 corbaproto.mpp \
[15563]86 corbaServer.mpp \
87 corbatext_t.mpp
[15471]88
[15563]89OBJECTS = \
90 corbaconv_text_t.o \
91 corbaiface.o \
92 corbaiface_skel.o \
[15576]93 corbaproto.o \
[15563]94 corbaServer.o \
95 corbatext_t.o
[15471]96
[15576]97GSDL_LIBS = \
98 $(PROTOCOL_DIR)/gsdlprotocol.a \
99 $(COLSERVR_DIR)/gsdlcolservr.a \
100 $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
101 $(INDEXERS_DIR)/mg/lib/libmglib.a \
102 $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
103 $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
104 $(GSDL_DIR)/lib/gsdllib.a
[15471]105
[15576]106EXECUTABLE_OBJECTS = \
107 $(OBJECTS) \
108 $(GSDL_LIBS)
109
110EXECUTABLE = corbaserver
111
112corbaserver: $(EXECUTABLE_OBJECTS)
113 $(LINK) $(EXECUTABLE_OBJECTS) $(LIBS)
114
[15563]115all: $(EXECUTABLE)
[15471]116
[15472]117
118
119
[15576]120# CORBARECPT_OBJECTS = corbaproto.o corbaclient.o
[15471]121
[15576]122# CORBARECPT_OBJS = $(COMMONOBJECTS) $(CORBARECPT_OBJECTS) $(COLSERVROBJECTS) \
123# ../../lib/corbaiface.o \
124# ../../lib/corbaiface_skel.o \
125# ../../lib/corbaconv_text_t.o \
126# ../../lib/corbatext_t.o \
127# ../../lib/gsdllib.a \
128# $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
129# $(INDEXERS_DIR)/mg/lib/libmglib.a \
130# $(FASTCGI_OBJS) \
131# $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
132# $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a
[15471]133
134
[15576]135# corbarecptldd: $(CORBARECPT_OBJS)
136# @echo -e building corbarecptldd:
137# $(LINK) $(CORBARECPT_OBJS) $(MLIBS)
[15471]138
[15549]139else
140all:
141install:
142clean:
143distclean:
144depend:
[15548]145endif
Note: See TracBrowser for help on using the repository browser.