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

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

More tidy ups to all the Makefiles, this time to tidy up the targets and add comments about the default target.

File size: 3.7 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
32RECPT_DIR = $(GSDL_DIR)/src/recpt
33
34
35ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
36ifeq ($(ENABLE_ACCENTFOLD), 1)
37ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
38else
39ACCENTFOLD_LIBS =
40endif
41
42MICO_DIR = @MICO_DIR@
43MICO_VER = @MICO_VER@
44ifeq ($(MICO_DIR), default)
45MICO_INCLUDES = -I$(PACKAGES_DIR)/mico/mico/include
46MICO_PATH = $(PACKAGES_DIR)/mico/bin/
47else
48ifeq ($(MICO_DIR), yes)
49MICO_INCLUDES =
50else
51MICO_INCLUDES = -I$(MICO_DIR)
52endif
53MICO_PATH =
54endif
55
56USE_CORBA = @USE_CORBA@
57ifeq ($(USE_CORBA), 1)
58AR = ar
59CC = @CC@
60CFLAGS = @CFLAGS@
61DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
62INCLUDES = -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) -I$(INDEXERS_DIR)/mgpp/text \
63 $(MICO_INCLUDES)
64INSTALL = @INSTALL@
65LDFLAGS = @LDFLAGS@
66LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(PACKAGES_DIR)/expat/lib -lexpat $(ACCENTFOLD_LIBS) \
67 -L$(PACKAGES_DIR)/mico/lib -lmico$(MICO_VER)
68RANLIB = @RANLIB@
69
70
71COMPILE = $(MICO_PATH)mico-c++ -x c++ $(CFLAGS) $(DEFS) $(INCLUDES) -c
72LINK = $(MICO_PATH)mico-ld $(LDFLAGS) -o $@
73
74
75.SUFFIXES: .mpp .o
76.mpp.o:
77 $(COMPILE) $<
78
79
80SOURCES = \
81 corbaconv_text_t.mpp \
82 corbaiface.mpp \
83 corbaiface_skel.mpp \
84 corbaproto.mpp \
85 corbatext_t.mpp
86
87OBJECTS = \
88 corbaconv_text_t.o \
89 corbaiface.o \
90 corbaiface_skel.o \
91 corbaproto.o \
92 corbatext_t.o
93
94CORBASERVER_OBJECTS = \
95 corbaServer.o
96
97CORBARECPT_OBJECTS = \
98 corbaclient.o
99
100GSDL_LIBS = \
101 $(RECPT_DIR)/gsdlrecpt.a \
102 $(PROTOCOL_DIR)/gsdlprotocol.a \
103 $(COLSERVR_DIR)/gsdlcolservr.a \
104 $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
105 $(INDEXERS_DIR)/mg/lib/libmglib.a \
106 $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
107 $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
108 $(GSDL_DIR)/lib/gsdllib.a
109
110CORBASERVER_EXECUTABLE_OBJECTS = \
111 $(OBJECTS) \
112 $(CORBASERVER_OBJECTS) \
113 $(GSDL_LIBS)
114
115CORBARECPT_EXECUTABLE_OBJECTS = \
116 $(OBJECTS) \
117 $(CORBARECPT_OBJECTS) \
118 $(GSDL_LIBS)
119
120EXECUTABLES = corbaserver corbarecptldd
121
122
123# Default target: make both corbaserver and corbarecptldd
124all: $(EXECUTABLES)
125
126corbaserver: $(CORBASERVER_EXECUTABLE_OBJECTS)
127 $(LINK) $(CORBASERVER_EXECUTABLE_OBJECTS) $(LIBS)
128
129corbarecptldd: $(CORBARECPT_EXECUTABLE_OBJECTS)
130 $(LINK) $(CORBARECPT_EXECUTABLE_OBJECTS) $(LIBS)
131
132install:
133
134clean:
135 rm -f $(OBJECTS) $(CORBASERVER_OBJECTS) $(CORBARECPT_OBJECTS) $(EXECUTABLES)
136
137distclean:
138 rm -f $(OBJECTS) $(CORBASERVER_OBJECTS) $(CORBARECPT_OBJECTS) $(EXECUTABLES) Makefile
139
140depend:
141 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
142
143else
144all:
145install:
146clean:
147distclean:
148depend:
149endif
Note: See TracBrowser for help on using the repository browser.