~ubuntu-branches/ubuntu/warty/swish-e/warty

« back to all changes in this revision

Viewing changes to src/vms/descrip_libxml2.mms

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Drolez
  • Date: 2004-03-11 08:41:07 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040311084107-7vp0mu82blq1qjvo
Tags: 2.4.1-3
Oops ! A comment was not removed to disable interactive compilation.
Closes: Bug#237332

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# Makefile derived from the Makefile coming with swish-e 1.3.2
 
3
# (original Makefile for SWISH Kevin Hughes, 3/12/95)
 
4
#
 
5
# The code has been tested to compile on OpenVMS 7.3
 
6
# JF. Pi�ronne jf.pieronne@laposte.net 29-Mar-2003
 
7
 
8
# autoconf configuration by Bas Meijer, 1 June 2000
 
9
# Cross Platform Compilation on Solaris, HP-UX, IRIX and Linux
 
10
# Several ideas from a Makefile by Christian Lindig <lindig@ips.cs.tu-bs.de>  
 
11
#
 
12
NAME = swish-e.exe
 
13
# C compiler
 
14
CC = CC
 
15
 
 
16
SHELL = /bin/sh
 
17
prefix = @prefix@
 
18
bindir = $(prefix)/bin
 
19
mandir = $(prefix)/man
 
20
man1dir = $(mandir)/man1
 
21
 
 
22
# Flags for C compiler
 
23
#CWARN=
 
24
CDEF = /def=(HAVE_LIBXML2,VMS,HAVE_CONFIG_H,STDC_HEADERS)
 
25
CINCL= /include=([.expat.xmlparse],[.expat.xmltok],libz:)
 
26
CWARN=
 
27
#CDEBUG= /debug/noopt
 
28
CDEBUG=
 
29
CFLAGS =/prefix=all$(CINCL)$(CDEF)$(CWARN)$(CDEBUG)/name=(as_is,short)/float=ieee
 
30
 
 
31
#LINKFLAGS = /debug
 
32
LINKFLAGS =
 
33
LIBS=
 
34
 
 
35
#
 
36
# The objects for the different methods and
 
37
# some common aliases
 
38
#
 
39
 
 
40
FILESYSTEM_OBJS=fs.obj
 
41
HTTP_OBJS=http.obj httpserver.obj
 
42
FS_OBJS=$(FILESYSTEM_OBJS)
 
43
WEB_OBJS=$(HTTP_OBJS)
 
44
VMS_OBJS = regex.obj
 
45
 
 
46
XML_PARSE = xmlparse.obj xmltok.obj xmlrole.obj 
 
47
LIBXML2_LIB = libxml:libxml.olb/lib
 
48
LIBXML2_OBJS = parser.obj
 
49
VSNPRINTF_OBJ = vsnprintf.obj
 
50
 
 
51
OBJS=   check.obj file.obj index.obj search.obj error.obj methods.obj\
 
52
        hash.obj list.obj mem.obj merge.obj swish2.obj stemmer.obj \
 
53
        soundex.obj docprop.obj compress.obj xml.obj txt.obj \
 
54
        metanames.obj result_sort.obj html.obj \
 
55
        filter.obj parse_conffile.obj result_output.obj date_time.obj \
 
56
        keychar_out.obj extprog.obj db_native.obj dump.obj \
 
57
        entities.obj swish_words.obj \
 
58
        proplimit.obj swish_qsort.obj ramdisk.obj rank.obj swregex.obj \
 
59
        double_metaphone.obj db_read.obj db_write.obj swstring.obj \
 
60
        pre_sort.obj parser.obj headers.obj docprop_write.obj stemmer.obj\
 
61
        $(XML_PARSE)\
 
62
        $(LIBXML2_OBJS)\
 
63
        $(FILESYSTEM_OBJS) $(HTTP_OBJS) $(VMS_OBJS) $(VSNPRINTF_OBJ) \
 
64
        api.obj stem_de.obj stem_dk.obj stem_en1.obj stem_en2.obj stem_es.obj\
 
65
        stem_fi.obj stem_fr.obj stem_it.obj stem_nl.obj stem_no.obj \
 
66
        stem_pt.obj stem_ru.obj stem_se.obj utilities.obj
 
67
 
 
68
 
 
69
all :   acconfig.h $(NAME) swish-search.exe libtest.exe
 
70
        !
 
71
 
 
72
xmlparse.obj : [.expat.xmlparse]xmlparse.c
 
73
 
 
74
xmltok.obj : [.expat.xmltok]xmltok.c
 
75
 
 
76
xmlrole.obj : [.expat.xmltok]xmlrole.c
 
77
 
 
78
$(NAME) : $(OBJS) libswish-e.olb swish.obj
 
79
        link/exe=$(MMS$TARGET) $(LINKFLAGS) -
 
80
                swish.obj,libswish-e.olb/lib,[.vms]swish.opt/opt,$(LIBXML2_LIB)
 
81
 
 
82
libtest.exe : libtest.obj libswish-e.olb swish.obj
 
83
        link/exe=$(MMS$TARGET) $(LINKFLAGS) libtest.obj, [.vms]libtest.opt/opt
 
84
 
 
85
libswish-e.olb : $(OBJS)
 
86
        library/create $(MMS$TARGET) $(MMS$SOURCE_LIST)
 
87
 
 
88
swish-search.exe : $(NAME)
 
89
        copy $(NAME) swish-search.exe
 
90
 
 
91
regex.obj : [.vms]regex.c [.vms]descrip_libxml2.mms
 
92
 
 
93
acconfig.h : [.vms]acconfig.h_vms
 
94
        copy $(MMS$SOURCE) $(MMS$TARGET)
 
95
 
 
96
clean :
 
97
        delete [...]*.obj;*, [...]*.olb;*, index.swish;*, [-.tests]*.index;*
 
98
 
 
99
realclean :
 
100
        pur [-...]
 
101
        delete [...]*.exe;*, [...]*.obj;*, [...]*.olb;*, index.swish;*, acconfig.h;*, [-.tests]*.index;*
 
102
 
 
103
test :  $(NAME)
 
104
        set def [-.tests]
 
105
        mc [-.src]swish-e -c test.config
 
106
        write sys$output "test 1 (Normal search) ..."
 
107
        mc [-.src]swish-e -f test.index -w test
 
108
        write sys$output "test 1 (MetaTag search 1) ..."
 
109
        mc [-.src]swish-e -f  test.index -w meta1=metatest1
 
110
        write sys$output "test 1 (MetaTag search 2) ..."
 
111
        mc [-.src]swish-e -f test.index -w meta2=metatest2
 
112
        write sys$output "test 1 (XML search) ..."
 
113
        mc [-.src]swish-e -f ./test.index -w meta3=metatest3
 
114
        write sys$output "test 1 (Phrase search) ..." 
 
115
        mc [-.src]swish-e -f test.index -w """three little pigs"""
 
116
 
 
117
 
 
118
$(OBJS) :       [.vms]descrip_libxml2.mms config.h swish.h acconfig.h
 
119
 
 
120
swish.obj :     [.vms]descrip_libxml2.mms config.h swish.h acconfig.h
 
121
 
 
122
install :       
 
123
        !
 
124
 
 
125
man :
 
126
        !
 
127
 
 
128
#
 
129
# dependencies
 
130
 
131
check.obj : check.c swish.h config.h check.h hash.h
 
132
compress.obj : compress.c swish.h config.h error.h mem.h docprop.h index.h search.h merge.h compress.h
 
133
deflate.obj : deflate.c swish.h config.h error.h mem.h docprop.h index.h search.h merge.h deflate.h
 
134
docprop.obj : docprop.c swish.h config.h file.h hash.h mem.h merge.h \
 
135
 error.h search.h docprop.h compress.h
 
136
error.obj : error.c swish.h config.h error.h
 
137
file.obj : file.c swish.h config.h file.h mem.h error.h list.h \
 
138
 hash.h index.h
 
139
fs.obj : fs.c swish.h config.h index.h hash.h mem.h file.h \
 
140
 list.h
 
141
hash.obj : hash.c swish.h config.h hash.h mem.h
 
142
http.obj : http.c swish.h config.h index.h hash.h mem.h file.h \
 
143
 http.h httpserver.h
 
144
httpserver.obj : httpserver.c swish.h config.h mem.h http.h \
 
145
 httpserver.h
 
146
index.obj : index.c swish.h config.h index.h hash.h mem.h \
 
147
 check.h search.h docprop.h stemmer.h compress.h
 
148
list.obj : list.c swish.h config.h list.h mem.h
 
149
mem.obj : mem.c swish.h config.h mem.h error.h
 
150
merge.obj : merge.c swish.h config.h merge.h error.h search.h index.h \
 
151
 hash.h mem.h docprop.h compress.h
 
152
methods.obj : methods.c swish.h config.h
 
153
search.obj : search.c swish.h config.h search.h file.h list.h \
 
154
 merge.h hash.h mem.h docprop.h stemmer.h compress.h
 
155
stemmer.obj : stemmer.c swish.h config.h stemmer.h
 
156
soundex.obj : soundex.c swish.h config.h stemmer.h
 
157
swish2.obj : swish2.c swish.h config.h error.h list.h search.h index.h \
 
158
 file.h merge.h docprop.h
 
159
swish.obj : swish.c swish.h config.h error.h list.h search.h index.h \
 
160
 file.h merge.h docprop.h
 
161
libtest.obj : libtest.c swish.h config.h error.h list.h search.h index.h \
 
162
 file.h merge.h docprop.h
 
163
txt.obj : txt.c txt.h swish.h mem.h index.h
 
164
xml.obj : xml.c txt.h swish.h mem.h index.h
 
165
proplimi.obj : swish.h mem.h merge.h docprop.h index.h metanames.h \
 
166
 compress.h error.h db.h result_sort.h swish_qsort.h proplimit.h
 
167
metanames.obj : metanames.c
 
168
result_sort.obj : result_sort.c
 
169
html.obj : html.c
 
170
filter.obj : filter.c
 
171
parse_conffile.obj : parse_conffile.c
 
172
result_output.obj : result_output.c
 
173
date_time.obj : date_time.c
 
174
keychar_out.obj : keychar_out.c
 
175
extprog.obj : extprog.c
 
176
db_native.obj : db_native.c
 
177
dump.obj : dump.c
 
178
entities.obj : entities.c
 
179
swish_words.obj : swish_words.c
 
180
proplimit.obj : proplimit.c
 
181
swish_qsort.obj : swish_qsort.c
 
182
ramdisk.obj : ramdisk.c
 
183
rank.obj : rank.c
 
184
swregex.obj : swregex.c
 
185
double_metaphone.obj : double_metaphone.c
 
186
parser.obj : parser.c
 
187
vsnprintf.obj : [.replace]vsnprintf.c
 
188
db_read.obj : db_read.c
 
189
db_write.obj : db_write.c
 
190
swstring.obj : swstring.c
 
191
pre_sort.obj : pre_sort.c
 
192
hearders.obj : headers.c
 
193
docprop_write.obj : docprop_write.c
 
194
 
 
195
api.obj : [.snowball]api.c
 
196
stem_de.obj : [.snowball]stem_de.c
 
197
stem_dk.obj : [.snowball]stem_dk.c
 
198
stem_en1.obj : [.snowball]stem_en1.c
 
199
stem_en2.obj : [.snowball]stem_en2.c
 
200
stem_es.obj : [.snowball]stem_es.c
 
201
stem_fi.obj : [.snowball]stem_fi.c
 
202
stem_fr.obj : [.snowball]stem_fr.c
 
203
stem_it.obj : [.snowball]stem_it.c
 
204
stem_nl.obj : [.snowball]stem_nl.c
 
205
stem_no.obj : [.snowball]stem_no.c
 
206
stem_pt.obj : [.snowball]stem_pt.c
 
207
stem_ru.obj : [.snowball]stem_ru.c
 
208
stem_se.obj : [.snowball]stem_se.c
 
209
utilities.obj : [.snowball]utilities.c