source: gsdl/trunk/lib/Makefile.in@ 15418

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

(Untangling colservr/recpt) Split recpt/OIDtools into two: lib/OIDtools.cpp/h contains the purely string-based functions (may be used by the colservr), and recpt/recptprototools.cpp/h contains the functions requiring a call to the colservr (get_info() etc.).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1###########################################################################
2#
3# Makefile -- lib
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 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
27
28AR = ar
29CC = @CC@
30CPP = @CXX@
31#CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
32CCFLAGS = @CFLAGS@
33MCFLAGS = -Wall -Wunused
34DEFS = @DEFS@
35INCLUDES = -I../indexers/mg/lib -I..
36MICO_DIR = @MICO_DIR@
37ifeq ($(MICO_DIR), default)
38MICO_INC = -I../packages/mico/mico/include
39MICO_PATH = ../bin/linux/
40else
41ifeq ($(MICO_DIR), yes)
42MICO_INC =
43else
44MICO_INC = -I$(MICO_DIR)
45endif
46MICO_PATH =
47endif
48MINCLUDES = -I/usr/include/g++-2/ -I/usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/include/ -I/usr/include -I. -I../indexers/mg/lib $(MICO_INC) -I..
49RANLIB = @RANLIB@
50USE_CORBA = @USE_CORBA@
51
52COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
53CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
54
55ifneq ($(USE_CORBA), 0)
56MCOMPILE = $(MICO_PATH)mico-c++ -x c++ $(MCFLAGS) $(DEFS) $(MINCLUDES) -c
57else
58MCOMPILE = $(COMPILE)
59endif
60
61.SUFFIXES:
62.SUFFIXES: .c .o
63.c.o:
64 $(COMPILE) $<
65
66.SUFFIXES: .cpp .o
67.cpp.o:
68 $(CPPCOMPILE) $<
69
70.SUFFIXES: .mpp .o
71.mpp.o:
72 $(MCOMPILE) $<
73
74
75
76
77ifneq ($(USE_CORBA), 0)
78CORBAHEADERS = \
79 corbaconv_text_t.h corbatext_t.h
80CORBASOURCES = \
81 corbaiface.mpp corbatext_t.mpp corbaconv_text_t.mpp corbaiface_skel.mpp
82CORBAOBJECTS = \
83 corbaiface.o corbatext_t.o corbaconv_text_t.o corbaiface_skel.o
84else
85CORBAHEADERS =
86CORBASOURCE =
87CORBAOBJECTS =
88endif
89
90HEADERS = \
91 cfgread.h cnfgable.h cnfgator.h display.h \
92 fileutil.h gsdlsitecfg.h gsdltimes.h gsdltools.h \
93 gsdlunicode.h md5.h OIDtools.h phrases.h \
94 text_t.h $(CORBAHEADERS) gsdlconf.h
95
96SOURCES = \
97 cfgread.cpp cnfgable.cpp cnfgator.cpp display.cpp \
98 fileutil.cpp gsdlsitecfg.cpp gsdltimes.cpp gsdltools.cpp \
99 gsdlunicode.cpp md5.cpp OIDtools.cpp phrases.cpp \
100 text_t.cpp $(CORBASOURCES)
101
102OBJECTS = \
103 cfgread.o cnfgable.o cnfgator.o display.o \
104 fileutil.o gsdlsitecfg.o gsdltimes.o gsdltools.o \
105 gsdlunicode.o md5.o OIDtools.o phrases.o \
106 text_t.o $(CORBAOBJECTS)
107
108
109all: gsdllib.a
110corbaiface_skel.h: corbaiface.idl
111 LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PATH=$(MICO_PATH):$(PATH) idl --boa --no-poa --c++-skel --c++-suffix=mpp $?
112corbaiface_skel.mpp: corbaiface.idl
113 LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PATH=$(MICO_PATH):$(PATH) idl --boa --no-poa --c++-skel --c++-suffix=mpp $?
114corbaiface.mpp: corbaiface.idl
115 LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PATH=$(MICO_PATH):$(PATH) idl --boa --no-poa --c++-skel --c++-suffix=mpp $?
116
117GSDLLIBOBJECTS = $(OBJECTS)
118
119gsdllib.a: $(GSDLLIBOBJECTS)
120 rm -f gsdllib.a
121 $(AR) cru gsdllib.a $(GSDLLIBOBJECTS)
122 $(RANLIB) gsdllib.a
123
124clean:
125 rm -f $(OBJECTS) gsdllib.a corbaiface_skel.mpp corbaiface.h corbaiface.mpp
126
127distclean: clean
128 rm -f Makefile
129install:
130
131depend:
132 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
133
134
135
136
Note: See TracBrowser for help on using the repository browser.