source: main/trunk/greenstone2/runtime-src/src/corba/Makefile.in@ 22050

Last change on this file since 22050 was 21442, checked in by ak19, 14 years ago

In the configure.in files, MICO_DIR is now set to withval not enableval. So there's no need to specially process the yes/no value of enableval in this Makefile.

File size: 4.4 KB
RevLine 
[15549]1###########################################################################
2#
[18226]3# Makefile -- runtime-src/src/corba
[15549]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
[18026]27GSDL_DIR = ../../..
28COMMON_DIR = $(GSDL_DIR)/common-src
29RUNTIME_DIR = $(GSDL_DIR)/runtime-src
[15548]30
[18026]31INDEXERS_DIR = $(COMMON_DIR)/indexers
32COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
[18226]33RUNTIME_PACKAGES_DIR = $(RUNTIME_DIR)/packages
[18026]34COLSERVR_DIR = $(RUNTIME_DIR)/src/colservr
35PROTOCOL_DIR = $(RUNTIME_DIR)/src/protocol
36RECPT_DIR = $(RUNTIME_DIR)/src/recpt
[15548]37
[18026]38
[15576]39ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
40ifeq ($(ENABLE_ACCENTFOLD), 1)
41ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
42else
43ACCENTFOLD_LIBS =
44endif
45
[21324]46
47ENABLE_MG = @ENABLE_MG@
48ifeq ($(ENABLE_MG), 1)
49MG_INDEXERS_LIBS = $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
50 $(INDEXERS_DIR)/mg/lib/libmglib.a
51else
52MG_INDEXERS_LIBS =
53endif
54
55ENABLE_MGPP = @ENABLE_MGPP@
56ifeq ($(ENABLE_MGPP), 1)
57MGPP_INDEXERS_LIBS = $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
58 $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a
59MGPP_INCLUDES = -I$(INDEXERS_DIR)/mgpp/text
60else
61MGPP_INDEXERS_LIBS =
62MGPP_INCLUDES =
63endif
64
65
[15833]66USE_SQLITE = @USE_SQLITE@
67ifeq ($(USE_SQLITE), 1)
[18026]68SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -ldl -lpthread
[15833]69else
70SQLITE_LIBS =
71endif
72
[15463]73MICO_DIR = @MICO_DIR@
[15576]74MICO_VER = @MICO_VER@
[15463]75ifeq ($(MICO_DIR), default)
[18226]76MICO_INCLUDES = -I$(RUNTIME_PACKAGES_DIR)/mico/mico/include
77MICO_PATH = $(RUNTIME_PACKAGES_DIR)/mico/bin/
[15463]78else
[15563]79MICO_INCLUDES = -I$(MICO_DIR)
[15463]80MICO_PATH =
81endif
82
[15578]83USE_CORBA = @USE_CORBA@
84ifeq ($(USE_CORBA), 1)
[15563]85AR = ar
86CC = @CC@
87CFLAGS = @CFLAGS@
88DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
[21324]89INCLUDES = -I$(COMMON_DIR)/src/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) $(MGPP_INCLUDES) \
[15578]90 $(MICO_INCLUDES)
[15563]91INSTALL = @INSTALL@
92LDFLAGS = @LDFLAGS@
[18226]93LIBS = @LIBS@ $(COMMON_PACKAGES_DIR)/gdbm/lib/libgdbm.a -L$(COMMON_PACKAGES_DIR)/expat/lib -lexpat \
94 $(ACCENTFOLD_LIBS) $(SQLITE_LIBS) -L$(RUNTIME_PACKAGES_DIR)/mico/lib -lmico$(MICO_VER)
[15563]95RANLIB = @RANLIB@
[15463]96
97
[15563]98COMPILE = $(MICO_PATH)mico-c++ -x c++ $(CFLAGS) $(DEFS) $(INCLUDES) -c
[15576]99LINK = $(MICO_PATH)mico-ld $(LDFLAGS) -o $@
[15463]100
101
[15459]102.SUFFIXES: .mpp .o
103.mpp.o:
[15563]104 $(COMPILE) $<
[15459]105
106
[15563]107SOURCES = \
108 corbaconv_text_t.mpp \
109 corbaiface.mpp \
110 corbaiface_skel.mpp \
[15576]111 corbaproto.mpp \
[15563]112 corbatext_t.mpp
[15471]113
[15563]114OBJECTS = \
115 corbaconv_text_t.o \
116 corbaiface.o \
117 corbaiface_skel.o \
[15576]118 corbaproto.o \
[15563]119 corbatext_t.o
[15471]120
[15578]121CORBASERVER_OBJECTS = \
122 corbaServer.o
123
124CORBARECPT_OBJECTS = \
125 corbaclient.o
126
[15576]127GSDL_LIBS = \
[15578]128 $(RECPT_DIR)/gsdlrecpt.a \
[15576]129 $(PROTOCOL_DIR)/gsdlprotocol.a \
130 $(COLSERVR_DIR)/gsdlcolservr.a \
[21324]131 $(MG_INDEXERS_LIBS) \
132 $(MGPP_INDEXERS_LIBS) \
[18233]133 $(COMMON_DIR)/src/lib/gsdllib.a
[15471]134
[15578]135CORBASERVER_EXECUTABLE_OBJECTS = \
[15576]136 $(OBJECTS) \
[15578]137 $(CORBASERVER_OBJECTS) \
[15576]138 $(GSDL_LIBS)
139
[15578]140CORBARECPT_EXECUTABLE_OBJECTS = \
141 $(OBJECTS) \
142 $(CORBARECPT_OBJECTS) \
143 $(GSDL_LIBS)
[15576]144
[15578]145EXECUTABLES = corbaserver corbarecptldd
[15576]146
[15471]147
[15578]148# Default target: make both corbaserver and corbarecptldd
149all: $(EXECUTABLES)
[15472]150
[15578]151corbaserver: $(CORBASERVER_EXECUTABLE_OBJECTS)
152 $(LINK) $(CORBASERVER_EXECUTABLE_OBJECTS) $(LIBS)
[15472]153
[15578]154corbarecptldd: $(CORBARECPT_EXECUTABLE_OBJECTS)
155 $(LINK) $(CORBARECPT_EXECUTABLE_OBJECTS) $(LIBS)
[15471]156
[16586]157depend:
158 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
159
[15578]160install:
[15471]161
[15578]162clean:
163 rm -f $(OBJECTS) $(CORBASERVER_OBJECTS) $(CORBARECPT_OBJECTS) $(EXECUTABLES)
[15471]164
[15549]165else
166all:
[16586]167depend:
[15549]168install:
169clean:
[15548]170endif
[16586]171
172# Want to do distclean regardless of whether or not been compiled
173# distclean needs to get rid of anything produced by ./configure such
174# as this makefile!
175
176
177distclean: clean
178 rm -f Makefile
179
Note: See TracBrowser for help on using the repository browser.