[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] | 27 | GSDL_DIR = ../..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)/indexers
|
---|
| 29 | PACKAGES_DIR = $(GSDL_DIR)/packages
|
---|
| 30 | COLSERVR_DIR = $(GSDL_DIR)/src/colservr
|
---|
| 31 | PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
|
---|
[15548] | 32 |
|
---|
| 33 |
|
---|
[15576] | 34 | ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
|
---|
| 35 | ifeq ($(ENABLE_ACCENTFOLD), 1)
|
---|
| 36 | ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
|
---|
| 37 | else
|
---|
| 38 | ACCENTFOLD_LIBS =
|
---|
| 39 | endif
|
---|
| 40 |
|
---|
[15549] | 41 | USE_CORBA = @USE_CORBA@
|
---|
| 42 | ifeq ($(USE_CORBA), 1)
|
---|
| 43 |
|
---|
[15463] | 44 | MICO_DIR = @MICO_DIR@
|
---|
[15576] | 45 | MICO_VER = @MICO_VER@
|
---|
[15463] | 46 | ifeq ($(MICO_DIR), default)
|
---|
[15563] | 47 | MICO_INCLUDES = -I$(PACKAGES_DIR)/mico/mico/include
|
---|
| 48 | MICO_PATH = $(PACKAGES_DIR)/mico/bin/
|
---|
[15463] | 49 | else
|
---|
| 50 | ifeq ($(MICO_DIR), yes)
|
---|
[15563] | 51 | MICO_INCLUDES =
|
---|
[15463] | 52 | else
|
---|
[15563] | 53 | MICO_INCLUDES = -I$(MICO_DIR)
|
---|
[15463] | 54 | endif
|
---|
| 55 | MICO_PATH =
|
---|
| 56 | endif
|
---|
| 57 |
|
---|
| 58 |
|
---|
[15563] | 59 | AR = ar
|
---|
| 60 | CC = @CC@
|
---|
| 61 | CFLAGS = @CFLAGS@
|
---|
| 62 | DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
|
---|
| 63 | # Do NOT add the "recpt" directory here: the CORBA code should be independent of the receptionist!
|
---|
| 64 | INCLUDES = -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(INDEXERS_DIR)/mgpp/text $(MICO_INCLUDES)
|
---|
| 65 | INSTALL = @INSTALL@
|
---|
| 66 | LDFLAGS = @LDFLAGS@
|
---|
| 67 | LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(PACKAGES_DIR)/expat/lib -lexpat $(ACCENTFOLD_LIBS) \
|
---|
[15576] | 68 | -L$(PACKAGES_DIR)/mico/lib -lmico$(MICO_VER)
|
---|
[15563] | 69 | RANLIB = @RANLIB@
|
---|
[15463] | 70 |
|
---|
| 71 |
|
---|
[15563] | 72 | COMPILE = $(MICO_PATH)mico-c++ -x c++ $(CFLAGS) $(DEFS) $(INCLUDES) -c
|
---|
[15576] | 73 | LINK = $(MICO_PATH)mico-ld $(LDFLAGS) -o $@
|
---|
[15463] | 74 |
|
---|
| 75 |
|
---|
[15459] | 76 | .SUFFIXES: .mpp .o
|
---|
| 77 | .mpp.o:
|
---|
[15563] | 78 | $(COMPILE) $<
|
---|
[15459] | 79 |
|
---|
| 80 |
|
---|
[15563] | 81 | SOURCES = \
|
---|
| 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] | 89 | OBJECTS = \
|
---|
| 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] | 97 | GSDL_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] | 106 | EXECUTABLE_OBJECTS = \
|
---|
| 107 | $(OBJECTS) \
|
---|
| 108 | $(GSDL_LIBS)
|
---|
| 109 |
|
---|
| 110 | EXECUTABLE = corbaserver
|
---|
| 111 |
|
---|
| 112 | corbaserver: $(EXECUTABLE_OBJECTS)
|
---|
| 113 | $(LINK) $(EXECUTABLE_OBJECTS) $(LIBS)
|
---|
| 114 |
|
---|
[15563] | 115 | all: $(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] | 139 | else
|
---|
| 140 | all:
|
---|
| 141 | install:
|
---|
| 142 | clean:
|
---|
| 143 | distclean:
|
---|
| 144 | depend:
|
---|
[15548] | 145 | endif
|
---|