source: trunk/gsdl/src/colservr/win32.mak@ 2832

Last change on this file since 2832 was 2626, checked in by sjboddie, 23 years ago

A couple of minor changes to avoid compiler problems with VC++ on
Windows 95

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1###########################################################################
2#
3# 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) 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
27GSDLHOME = ..\..
28USE_STLPORT = 0
29STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
30
31AR = lib
32CC = cl
33CPPFLAGS =
34LDFLAGS =
35DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX
36INCLUDES = -I"$(GSDLHOME)" -I"$(GSDLHOME)\lib" -I"$(GSDLHOME)\src\colservr" \
37 -I"$(GSDLHOME)\src\recpt" -I"$(GSDLHOME)\packages\mg" \
38 -I"$(GSDLHOME)\packages\mg\lib" -I"$(GSDLHOME)\packages\mg\src\text" \
39 -I"$(GSDLHOME)\packages\windows\gdbm\gdbm" \
40 -I"$(GSDLHOME)\src\mgpp\lib" -I"$(GSDLHOME)\src\mgpp\text"
41
42!IF $(USE_STLPORT)
43DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
44INCLUDES = $(INCLUDES) -I$(STLPATH)
45!ENDIF
46
47LIBS =
48
49COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
50LINK = $(CC) $(LDFLAGS) -o $@
51
52.SUFFIXES:
53.SUFFIXES: .c .obj
54.c.obj:
55 $(COMPILE) $<
56
57.SUFFIXES: .cpp .obj
58.cpp.obj:
59 $(COMPILE) $<
60
61HEADERS = mgq.h search.h mgsearch.h querycache.h queryinfo.h collectserver.h \
62 colservrconfig.h maptools.h filter.h source.h browsefilter.h \
63 queryfilter.h mgqueryfilter.h mggdbmsource.h phrasesearch.h \
64 phrasequeryfilter.h collectset.h mgppsearch.h mgppqueryfilter.h
65
66SOURCES = mgq.c search.cpp mgsearch.cpp querycache.cpp queryinfo.cpp \
67 collectserver.cpp colservrconfig.cpp maptools.cpp filter.cpp \
68 source.cpp browsefilter.cpp queryfilter.cpp mgqueryfilter.cpp \
69 mggdbmsource.cpp phrasesearch.cpp phrasequeryfilter.cpp \
70 collectset.cpp mgppsearch.cpp mgppqueryfilter.cpp
71
72OBJECTS = mgq.obj search.obj mgsearch.obj querycache.obj queryinfo.obj \
73 collectserver.obj colservrconfig.obj maptools.obj filter.obj \
74 source.obj browsefilter.obj queryfilter.obj mgqueryfilter.obj \
75 mggdbmsource.obj phrasesearch.obj phrasequeryfilter.obj \
76 collectset.obj mgppsearch.obj mgppqueryfilter.obj
77
78all : gsdlcolservr.lib
79
80gsdlcolservr.lib : $(OBJECTS)
81 if EXIST gsdlcolservr.lib del gsdlcolservr.lib
82 $(AR) /out:gsdlcolservr.lib $(OBJECTS)
83
84clean:
85 del *.obj
86 del gsdlcolservr.lib
87
88install:
Note: See TracBrowser for help on using the repository browser.