source: trunk/indexers/mgpp/lib/WIN32.MAK@ 3365

Last change on this file since 3365 was 3365, checked in by kjdon, 22 years ago

Initial revision

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1###########################################################################
2#
3# win32 makefile -- mgpp\text
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
27GSDLHOME = ..\..\..
28USE_STLPORT = 0
29
30STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
31
32CC = cl
33CPPFLAGS =
34DEFS = -DSHORT_SUFFIX -DSILENT -DHAVE_CONFIG_H -D__WIN32__
35INCLUDES = -I"$(GSDLHOME)"
36!IF $(USE_STLPORT)
37DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
38INCLUDES = $(INCLUDES) -I$(STLPATH)
39!ENDIF
40
41LDFLAGS =
42
43LIBS =
44
45COMPILE = $(CC) -c $(DEFS) $(INCLUDES)
46LINK = $(CC) $(LDFLAGS)
47
48.SUFFIXES:
49.SUFFIXES: .c .obj .cpp
50.c.obj:
51 $(COMPILE) $<
52.cpp.obj:
53 $(COMPILE) $<
54
55o = .obj
56
57HEADERS = \
58 bitio_m_random.h local_strings.h lovinstem.h \
59 bitio_m_stdio.h memlib.h netorder.h \
60 bitio_gen.h mgheap.h messages.h \
61 bitio_m.h huffman.h \
62 bitio_m_mem.h perf_hash.h \
63 bitio_m_mems.h getopt_old.h \
64 pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
65 random.h simplefrenchstem.h unitool.h longlong.h \
66 non_ansi.h
67
68SOURCES = \
69 mgheap.cpp \
70 huffman.cpp messages.cpp \
71 bitio_gen.cpp perf_hash.cpp \
72 local_strings.cpp lovinstem.cpp \
73 bitio_m_mem.cpp bitio_m_stdio.cpp bitio_m_mems.cpp \
74 alloca.c xmalloc.c strstr.cpp \
75 ftruncate.cpp strcasecmp.cpp random.cpp \
76 simplefrenchstem.cpp unitool.cpp bitio_m_random.cpp \
77 bitio_m_abstract.cpp getopt_old.c
78
79OBJECTS = mgheap$o \
80 huffman$o messages$o \
81 bitio_gen$o perf_hash$o \
82 local_strings$o lovinstem$o \
83 bitio_m_mem$o bitio_m_stdio$o bitio_m_mems$o \
84 xmalloc$o bitio_m_random$o bitio_m_abstract$o \
85 random$o simplefrenchstem$o \
86 unitool$o win32in$o getopt_old$o
87
88all : libmg.lib
89
90libmg.lib: $(OBJECTS)
91 if EXIST libmg.lib del libmg.lib
92 lib /out:libmg.lib $(OBJECTS)
93
94clean:
95 del *$o
96 del libmg.lib
97
98install:
Note: See TracBrowser for help on using the repository browser.