root/indexers/trunk/mgpp/lib/win32.mak @ 14908

Revision 14908, 2.9 KB (checked in by davidb, 13 years ago)

Standardisation of Windows config and make files to lowercase. Was causing a problem when trying to compile on Unix filesystem mounted under Windows.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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
29AR = lib
30CC = cl
31CPPFLAGS =
32
33DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -DSHORT_SUFFIX
34INCLUDES = -I"." -I"$(MGPPHOME)"
35
36COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)
37
38.SUFFIXES:
39.SUFFIXES: .c .cpp .obj
40.c.obj:
41    $(COMPILE) $<
42.cpp.obj:
43    $(COMPILE) $<
44
45ANSI2KNR =
46o = .obj
47
48HEADERS = \
49    bitio_m_random.h   local_strings.h    lovinstem.h \
50    bitio_m_stdio.h    memlib.h           netorder.h \
51    bitio_gen.h        mgheap.h           messages.h \
52    bitio_m.h          huffman.h  \
53    bitio_m_mem.h      perf_hash.h \
54    bitio_m_mems.h      \
55    pathmax.h          getpagesize.h      sysfuncs.h         bitio_m_abstract.h  \
56    random.h           simplefrenchstem.h unitool.h      longlong.h \
57    non_ansi.h         getopt_old.h       win32in.h
58
59
60SOURCES = \
61    mgheap.cpp         \
62    huffman.cpp       messages.cpp \
63    bitio_gen.cpp     perf_hash.cpp \
64    local_strings.cpp lovinstem.cpp \
65    bitio_m_mem.cpp   bitio_m_stdio.cpp bitio_m_mems.cpp \
66    alloca.c          xmalloc.c         strstr.cpp \
67    ftruncate.cpp     strcasecmp.cpp    random.cpp \
68    simplefrenchstem.cpp                unitool.cpp       bitio_m_random.cpp \
69    bitio_m_abstract.cpp                getopt_old.c      win32in.c
70# memlib.cpp removed
71
72
73OBJECTS =  mgheap$o   \
74    huffman$o         messages$o \
75    bitio_gen$o       perf_hash$o \
76     local_strings$o   lovinstem$o \
77    bitio_m_mem$o     bitio_m_stdio$o   bitio_m_mems$o \
78    xmalloc$o         bitio_m_random$o  bitio_m_abstract$o \
79     random$o          simplefrenchstem$o \
80    unitool$o         getopt_old$o      win32in$o
81
82 
83DISTFILES = Makefile.in $(HEADERS) $(SOURCES)
84 
85all : libmgpplib.lib
86
87libmgpplib.lib : $(OBJECTS)
88    if EXIST libmgpplib.lib del libmgpplib.lib
89    $(AR) /out:libmgpplib.lib $(OBJECTS)
90
91$(OBJECTS): "$(MGPPHOME)\win32cfg.h"
92
93install:
94clean:
95    del *$o
96    del libmgpplib.lib
Note: See TracBrowser for help on using the browser.