source: trunk/third/gettext/gettext-runtime/Makefile.msvc @ 21665

Revision 21665, 5.7 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21664, which included commits to RCS files with non-trunk default branches.
Line 
1# -*- Makefile -*- for gettext-runtime
2
3#### Start of system configuration section. ####
4
5# Flags that can be set on the nmake command line:
6#   DLL=1     for compiling a .dll with a stub .lib (default is a static .lib)
7#             Note that this works only with MFLAGS=-MD.
8#   MFLAGS={-ML|-MT|-MD} for defining the compilation model
9#     MFLAGS=-ML (the default)  Single-threaded, statically linked - libc.lib
10#     MFLAGS=-MT                Multi-threaded, statically linked  - libcmt.lib
11#     MFLAGS=-MD                Multi-threaded, dynamically linked - msvcrt.lib
12#   DEBUG=1   for compiling with debugging information
13#   PREFIX=Some\Directory       Base directory for installation
14#   IIPREFIX=Some\\Directory    Same thing with doubled backslashes
15# Note that nmake command line flags are automatically passed to subdirectory
16# Makefiles. Therefore we don't need to pass them explicitly to subdirectory
17# Makefiles, but the subdirectory Makefiles need to have the same defaults.
18!if !defined(DLL)
19DLL=0
20!endif
21!if !defined(DEBUG)
22DEBUG=0
23!endif
24!if !defined(MFLAGS)
25!if !$(DLL)
26MFLAGS=
27!else
28MFLAGS=-MD
29!endif
30!endif
31!if !defined(PREFIX)
32PREFIX = c:\usr
33!endif
34!if !defined(IIPREFIX)
35IIPREFIX = c:\\usr
36!endif
37
38# Directories used by "make install":
39prefix = $(PREFIX)
40exec_prefix = $(prefix)
41bindir = $(exec_prefix)\bin
42libdir = $(exec_prefix)\lib
43includedir = $(prefix)\include
44datadir = $(prefix)\share
45localedir = $(datadir)\locale
46mandir = $(datadir)\man
47docdir = $(datadir)\doc\gettext
48
49# Programs used by "make":
50
51CC = cl
52CXX = cl -TP
53
54# Set to -W3 if you want to see maximum amount of warnings, including stupid
55# ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
56WARN_CFLAGS = -W1
57
58!if !$(DLL)
59PICFLAGS =
60!else
61# "-GD" (msvc5) optimizes for DLL.
62# mscv4 doesn't know about this flag and ignores it.
63PICFLAGS = -GD
64!endif
65
66!if $(DEBUG)
67OPTIMFLAGS = -Od -Z7
68!else
69# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
70OPTIMFLAGS = -D_NDEBUG -O1
71!endif
72
73LN = copy
74RM = -del
75
76# Programs used by "make install":
77INSTALL = copy
78INSTALL_PROGRAM = copy
79INSTALL_DATA = copy
80
81#### End of system configuration section. ####
82
83SHELL = /bin/sh
84
85all : config.h force
86        cd doc
87        $(MAKE) -f Makefile.msvc all
88        cd ..
89        cd intl
90        $(MAKE) -f Makefile.msvc all
91        cd ..
92        cd lib
93        $(MAKE) -f Makefile.msvc all
94        cd ..
95        cd libasprintf
96        $(MAKE) -f Makefile.msvc all
97        cd ..
98        cd src
99        $(MAKE) -f Makefile.msvc all
100        cd ..
101        cd po
102        $(MAKE) -f Makefile.msvc all
103        cd ..
104        cd man
105        $(MAKE) -f Makefile.msvc all
106        cd ..
107
108config.h : config.h.msvc
109        -$(RM) config.h
110        $(LN) config.h.msvc config.h
111
112install : force
113        cd doc
114        $(MAKE) -f Makefile.msvc install
115        cd ..
116        cd intl
117        $(MAKE) -f Makefile.msvc install
118        cd ..
119        cd lib
120        $(MAKE) -f Makefile.msvc install
121        cd ..
122        cd libasprintf
123        $(MAKE) -f Makefile.msvc install
124        cd ..
125        cd src
126        $(MAKE) -f Makefile.msvc install
127        cd ..
128        cd po
129        $(MAKE) -f Makefile.msvc install
130        cd ..
131        cd man
132        $(MAKE) -f Makefile.msvc install
133        cd ..
134
135installdirs : force
136        cd doc
137        $(MAKE) -f Makefile.msvc installdirs
138        cd ..
139        cd intl
140        $(MAKE) -f Makefile.msvc installdirs
141        cd ..
142        cd lib
143        $(MAKE) -f Makefile.msvc installdirs
144        cd ..
145        cd libasprintf
146        $(MAKE) -f Makefile.msvc installdirs
147        cd ..
148        cd src
149        $(MAKE) -f Makefile.msvc installdirs
150        cd ..
151        cd po
152        $(MAKE) -f Makefile.msvc installdirs
153        cd ..
154        cd man
155        $(MAKE) -f Makefile.msvc installdirs
156        cd ..
157
158uninstall : force
159        cd doc
160        $(MAKE) -f Makefile.msvc uninstall
161        cd ..
162        cd intl
163        $(MAKE) -f Makefile.msvc uninstall
164        cd ..
165        cd lib
166        $(MAKE) -f Makefile.msvc uninstall
167        cd ..
168        cd libasprintf
169        $(MAKE) -f Makefile.msvc uninstall
170        cd ..
171        cd src
172        $(MAKE) -f Makefile.msvc uninstall
173        cd ..
174        cd po
175        $(MAKE) -f Makefile.msvc uninstall
176        cd ..
177        cd man
178        $(MAKE) -f Makefile.msvc uninstall
179        cd ..
180
181check : all force
182        cd doc
183        $(MAKE) -f Makefile.msvc check
184        cd ..
185        cd intl
186        $(MAKE) -f Makefile.msvc check
187        cd ..
188        cd lib
189        $(MAKE) -f Makefile.msvc check
190        cd ..
191        cd libasprintf
192        $(MAKE) -f Makefile.msvc check
193        cd ..
194        cd src
195        $(MAKE) -f Makefile.msvc check
196        cd ..
197        cd po
198        $(MAKE) -f Makefile.msvc check
199        cd ..
200        cd man
201        $(MAKE) -f Makefile.msvc check
202        cd ..
203
204mostlyclean : force
205        cd doc
206        $(MAKE) -f Makefile.msvc mostlyclean
207        cd ..
208        cd intl
209        $(MAKE) -f Makefile.msvc mostlyclean
210        cd ..
211        cd lib
212        $(MAKE) -f Makefile.msvc mostlyclean
213        cd ..
214        cd libasprintf
215        $(MAKE) -f Makefile.msvc mostlyclean
216        cd ..
217        cd src
218        $(MAKE) -f Makefile.msvc mostlyclean
219        cd ..
220        cd po
221        $(MAKE) -f Makefile.msvc mostlyclean
222        cd ..
223        cd man
224        $(MAKE) -f Makefile.msvc mostlyclean
225        cd ..
226        $(RM) config.h
227
228clean : force
229        cd doc
230        $(MAKE) -f Makefile.msvc clean
231        cd ..
232        cd intl
233        $(MAKE) -f Makefile.msvc clean
234        cd ..
235        cd lib
236        $(MAKE) -f Makefile.msvc clean
237        cd ..
238        cd libasprintf
239        $(MAKE) -f Makefile.msvc clean
240        cd ..
241        cd src
242        $(MAKE) -f Makefile.msvc clean
243        cd ..
244        cd po
245        $(MAKE) -f Makefile.msvc clean
246        cd ..
247        cd man
248        $(MAKE) -f Makefile.msvc clean
249        cd ..
250        $(RM) config.h
251
252distclean : force
253        cd doc
254        $(MAKE) -f Makefile.msvc distclean
255        cd ..
256        cd intl
257        $(MAKE) -f Makefile.msvc distclean
258        cd ..
259        cd lib
260        $(MAKE) -f Makefile.msvc distclean
261        cd ..
262        cd libasprintf
263        $(MAKE) -f Makefile.msvc distclean
264        cd ..
265        cd src
266        $(MAKE) -f Makefile.msvc distclean
267        cd ..
268        cd po
269        $(MAKE) -f Makefile.msvc distclean
270        cd ..
271        cd man
272        $(MAKE) -f Makefile.msvc distclean
273        cd ..
274        $(RM) config.h
275        $(RM) config.status config.log config.cache Makefile
276
277maintainer-clean : force
278        cd doc
279        $(MAKE) -f Makefile.msvc maintainer-clean
280        cd ..
281        cd intl
282        $(MAKE) -f Makefile.msvc maintainer-clean
283        cd ..
284        cd lib
285        $(MAKE) -f Makefile.msvc maintainer-clean
286        cd ..
287        cd libasprintf
288        $(MAKE) -f Makefile.msvc maintainer-clean
289        cd ..
290        cd src
291        $(MAKE) -f Makefile.msvc maintainer-clean
292        cd ..
293        cd po
294        $(MAKE) -f Makefile.msvc maintainer-clean
295        cd ..
296        cd man
297        $(MAKE) -f Makefile.msvc maintainer-clean
298        cd ..
299        $(RM) config.h
300        $(RM) config.status config.log config.cache Makefile
301
302force :
Note: See TracBrowser for help on using the repository browser.