source: trunk/gsdl/src/mgpp/lib/WIN32.MAK@ 11253

Last change on this file since 11253 was 11253, checked in by mdewsnip, 18 years ago

Added "-nologo" to all cc and lib calls (to prevent a two line message from Microsoft for each file), and added "-D_CRT_SECURE_NO_DEPRECATE" to prevent lots of warnings when compiling with Visual Studio 2005.

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