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
Line 
1###########################################################################
2#
3# Makefile -- runtime-src/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 = ../../..
28COMMON_DIR = $(GSDL_DIR)/common-src
29RUNTIME_DIR = $(GSDL_DIR)/runtime-src
30
31INDEXERS_DIR = $(COMMON_DIR)/indexers
32COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
33RUNTIME_PACKAGES_DIR = $(RUNTIME_DIR)/packages
34COLSERVR_DIR = $(RUNTIME_DIR)/src/colservr
35PROTOCOL_DIR = $(RUNTIME_DIR)/src/protocol
36RECPT_DIR = $(RUNTIME_DIR)/src/recpt
37
38
39ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
40ifeq ($(ENABLE_ACCENTFOLD), 1)
41ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
42else
43ACCENTFOLD_LIBS =
44endif
45
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
66USE_SQLITE = @USE_SQLITE@
67ifeq ($(USE_SQLITE), 1)
68SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/sqlite/lib/libsqlite3.a -ldl -lpthread
69else
70SQLITE_LIBS =
71endif
72
73MICO_DIR = @MICO_DIR@
74MICO_VER = @MICO_VER@
75ifeq ($(MICO_DIR), default)
76MICO_INCLUDES = -I$(RUNTIME_PACKAGES_DIR)/mico/mico/include
77MICO_PATH = $(RUNTIME_PACKAGES_DIR)/mico/bin/
78else
79MICO_INCLUDES = -I$(MICO_DIR)
80MICO_PATH =
81endif
82
83USE_CORBA = @USE_CORBA@
84ifeq ($(USE_CORBA), 1)
85AR = ar
86CC = @CC@
87CFLAGS = @CFLAGS@
88DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
89INCLUDES = -I$(COMMON_DIR)/src/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) $(MGPP_INCLUDES) \
90 $(MICO_INCLUDES)
91INSTALL = @INSTALL@
92LDFLAGS = @LDFLAGS@
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)
95RANLIB = @RANLIB@
96
97
98COMPILE = $(MICO_PATH)mico-c++ -x c++ $(CFLAGS) $(DEFS) $(INCLUDES) -c
99LINK = $(MICO_PATH)mico-ld $(LDFLAGS) -o $@
100
101
102.SUFFIXES: .mpp .o
103.mpp.o:
104 $(COMPILE) $<
105
106
107SOURCES = \
108 corbaconv_text_t.mpp \
109 corbaiface.mpp \
110 corbaiface_skel.mpp \
111 corbaproto.mpp \
112 corbatext_t.mpp
113
114OBJECTS = \
115 corbaconv_text_t.o \
116 corbaiface.o \
117 corbaiface_skel.o \
118 corbaproto.o \
119 corbatext_t.o
120
121CORBASERVER_OBJECTS = \
122 corbaServer.o
123
124CORBARECPT_OBJECTS = \
125 corbaclient.o
126
127GSDL_LIBS = \
128 $(RECPT_DIR)/gsdlrecpt.a \
129 $(PROTOCOL_DIR)/gsdlprotocol.a \
130 $(COLSERVR_DIR)/gsdlcolservr.a \
131 $(MG_INDEXERS_LIBS) \
132 $(MGPP_INDEXERS_LIBS) \
133 $(COMMON_DIR)/src/lib/gsdllib.a
134
135CORBASERVER_EXECUTABLE_OBJECTS = \
136 $(OBJECTS) \
137 $(CORBASERVER_OBJECTS) \
138 $(GSDL_LIBS)
139
140CORBARECPT_EXECUTABLE_OBJECTS = \
141 $(OBJECTS) \
142 $(CORBARECPT_OBJECTS) \
143 $(GSDL_LIBS)
144
145EXECUTABLES = corbaserver corbarecptldd
146
147
148# Default target: make both corbaserver and corbarecptldd
149all: $(EXECUTABLES)
150
151corbaserver: $(CORBASERVER_EXECUTABLE_OBJECTS)
152 $(LINK) $(CORBASERVER_EXECUTABLE_OBJECTS) $(LIBS)
153
154corbarecptldd: $(CORBARECPT_EXECUTABLE_OBJECTS)
155 $(LINK) $(CORBARECPT_EXECUTABLE_OBJECTS) $(LIBS)
156
157depend:
158 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
159
160install:
161
162clean:
163 rm -f $(OBJECTS) $(CORBASERVER_OBJECTS) $(CORBARECPT_OBJECTS) $(EXECUTABLES)
164
165else
166all:
167depend:
168install:
169clean:
170endif
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.