1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # gcc win32 makefile -- src/colservr
|
---|
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) 2000 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 |
|
---|
28 | AR = ar
|
---|
29 | RANLIB = ranlib
|
---|
30 | CC = g++
|
---|
31 | DELETE = del
|
---|
32 |
|
---|
33 | o = .o
|
---|
34 | / = \\
|
---|
35 |
|
---|
36 | CPPFLAGS = -g -Wall
|
---|
37 | DEFS = -D__WIN32__ -DGSDL_USE_IOS_H -DHAVE_CONFIG_H
|
---|
38 |
|
---|
39 | INCLUDES = -I"..$/..$/lib" -I"..$/recpt" -I"..$/..$/packages$/mg" \
|
---|
40 | -I"..$/..$/packages$/mg$/lib" -I"..$/..$/packages$/mg$/src$/text" \
|
---|
41 | -I"..$/..$/packages$/wingdbm"
|
---|
42 |
|
---|
43 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
|
---|
44 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
45 |
|
---|
46 | .SUFFIXES:
|
---|
47 | .SUFFIXES: .c $o
|
---|
48 | .c$o:
|
---|
49 | $(COMPILE) $<
|
---|
50 |
|
---|
51 | .SUFFIXES: .cpp $o
|
---|
52 | .cpp$o:
|
---|
53 | $(COMPILE) $<
|
---|
54 |
|
---|
55 | HEADERS = mgq.h mgsearch.h querycache.h queryinfo.h collectserver.h \
|
---|
56 | colservrconfig.h maptools.h filter.h source.h browsefilter.h \
|
---|
57 | queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h
|
---|
58 |
|
---|
59 | SOURCES = mgq.c mgsearch.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
|
---|
60 | colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
|
---|
61 | browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
|
---|
62 | phrasequeryfilter.cpp
|
---|
63 |
|
---|
64 | OBJECTS = mgq$o mgsearch$o querycache$o queryinfo$o collectserver$o \
|
---|
65 | colservrconfig$o maptools$o filter$o source$o browsefilter$o \
|
---|
66 | queryfilter$o mggdbmsource$o phrasesearch$o phrasequeryfilter$o
|
---|
67 |
|
---|
68 | all : $(OBJECTS)
|
---|
69 |
|
---|
70 | clean:
|
---|
71 | $(DELETE) *$o
|
---|
72 |
|
---|
73 | install:
|
---|