source: indexers/trunk/mgpp/lib/win32.mak@ 19524

Last change on this file since 19524 was 19524, checked in by ak19, 15 years ago

Dr Bainbridge updated the Windows makefiles to 1. Take the DEBUG flag so that we can recompile all of GS2 in the Vis C++ 2005 Express Edition command prompt and then use its Debugger on the C code. 2. Now GS2 make clean command cleans up all object and lib files that its make generates.

  • 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 -- mgpp\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
27MGPPHOME = ..
28
29DEBUG = 0
30
31AR = lib
32CC = cl
33
34!IF $(DEBUG)
35CXXFLAGS = -DEBUG -Z7 /errorReport:prompt
36!ELSE
37CXXFLAGS =
38!ENDIF
39
40
41DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
42INCLUDES = -I"." -I"$(MGPPHOME)"
43
44COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CXXFLAGS)
45
46.SUFFIXES:
47.SUFFIXES: .c .cpp .obj
48.c.obj:
49 $(COMPILE) $<
50.cpp.obj:
51 $(COMPILE) $<
52
53ANSI2KNR =
54o = .obj
55
56HEADERS = \
57 bitio_m_random.h local_strings.h lovinstem.h \
58 bitio_m_stdio.h memlib.h netorder.h \
59 bitio_gen.h mgheap.h messages.h \
60 bitio_m.h huffman.h \
61 bitio_m_mem.h perf_hash.h \
62 bitio_m_mems.h \
63 pathmax.h getpagesize.h sysfuncs.h bitio_m_abstract.h \
64 random.h simplefrenchstem.h unitool.h longlong.h \
65 non_ansi.h getopt_old.h win32in.h
66
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 win32in.c
78# memlib.cpp removed
79
80
81OBJECTS = mgheap$o \
82 huffman$o messages$o \
83 bitio_gen$o perf_hash$o \
84 local_strings$o lovinstem$o \
85 bitio_m_mem$o bitio_m_stdio$o bitio_m_mems$o \
86 xmalloc$o bitio_m_random$o bitio_m_abstract$o \
87 random$o simplefrenchstem$o \
88 unitool$o getopt_old$o win32in$o
89
90
91DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
92
93all : libmgpplib.lib
94
95libmgpplib.lib : $(OBJECTS)
96 if EXIST libmgpplib.lib del libmgpplib.lib
97 $(AR) /out:libmgpplib.lib $(OBJECTS)
98
99$(OBJECTS): "$(MGPPHOME)\win32cfg.h"
100
101install:
102clean:
103 del *$o
104 del libmgpplib.lib
Note: See TracBrowser for help on using the repository browser.