root/gsdl/trunk/src/corba/Makefile.in @ 15576

Revision 15576, 3.7 KB (checked in by mdewsnip, 11 years ago)

More improvements to the Makefile for compiling the CORBA stuff.

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
34ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
35ifeq ($(ENABLE_ACCENTFOLD), 1)
36ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
37else
38ACCENTFOLD_LIBS =
39endif
40
41USE_CORBA = @USE_CORBA@
42ifeq ($(USE_CORBA), 1)
43
44MICO_DIR = @MICO_DIR@
45MICO_VER = @MICO_VER@
46ifeq ($(MICO_DIR), default)
47MICO_INCLUDES = -I$(PACKAGES_DIR)/mico/mico/include
48MICO_PATH = $(PACKAGES_DIR)/mico/bin/
49else
50ifeq ($(MICO_DIR), yes)
51MICO_INCLUDES =
52else
53MICO_INCLUDES = -I$(MICO_DIR)
54endif
55MICO_PATH =
56endif
57
58
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) \
68        -L$(PACKAGES_DIR)/mico/lib -lmico$(MICO_VER)
69RANLIB = @RANLIB@
70
71
72COMPILE = $(MICO_PATH)mico-c++ -x c++ $(CFLAGS) $(DEFS) $(INCLUDES) -c
73LINK = $(MICO_PATH)mico-ld $(LDFLAGS) -o $@
74
75
76.SUFFIXES: .mpp .o
77.mpp.o:
78    $(COMPILE) $<
79
80
81SOURCES = \
82    corbaconv_text_t.mpp \
83    corbaiface.mpp \
84    corbaiface_skel.mpp \
85    corbaproto.mpp \
86    corbaServer.mpp \
87    corbatext_t.mpp
88
89OBJECTS = \
90    corbaconv_text_t.o \
91    corbaiface.o \
92    corbaiface_skel.o \
93    corbaproto.o \
94    corbaServer.o \
95    corbatext_t.o
96
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
105
106EXECUTABLE_OBJECTS = \
107    $(OBJECTS) \
108    $(GSDL_LIBS)
109
110EXECUTABLE = corbaserver
111
112corbaserver: $(EXECUTABLE_OBJECTS)
113    $(LINK) $(EXECUTABLE_OBJECTS) $(LIBS)
114
115all: $(EXECUTABLE)
116
117
118
119
120# CORBARECPT_OBJECTS = corbaproto.o corbaclient.o
121
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
133
134
135# corbarecptldd: $(CORBARECPT_OBJS)
136#   @echo -e building corbarecptldd:
137#   $(LINK)  $(CORBARECPT_OBJS)  $(MLIBS)
138
139else
140all:
141install:
142clean:
143distclean:
144depend:
145endif
Note: See TracBrowser for help on using the browser.