~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/lib/Makefile.msvc

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Makefile -*- for gettext-tools/lib
 
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
!if !defined(DLL)
 
15
DLL=0
 
16
!endif
 
17
!if !defined(DEBUG)
 
18
DEBUG=0
 
19
!endif
 
20
!if !defined(MFLAGS)
 
21
!if !$(DLL)
 
22
MFLAGS=
 
23
!else
 
24
MFLAGS=-MD
 
25
!endif
 
26
!endif
 
27
!if !defined(PREFIX)
 
28
PREFIX = c:\usr
 
29
!endif
 
30
 
 
31
# Directories used by "make install":
 
32
prefix = $(PREFIX)
 
33
exec_prefix = $(prefix)
 
34
bindir = $(exec_prefix)\bin
 
35
libdir = $(exec_prefix)\lib
 
36
includedir = $(prefix)\include
 
37
 
 
38
# Programs used by "make":
 
39
 
 
40
CC = cl
 
41
 
 
42
# Set to -W3 if you want to see maximum amount of warnings, including stupid
 
43
# ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
 
44
WARN_CFLAGS = -W1
 
45
 
 
46
!if !$(DLL)
 
47
PICFLAGS =
 
48
!else
 
49
# "-GD" (msvc5) optimizes for DLL.
 
50
# mscv4 doesn't know about this flag and ignores it.
 
51
PICFLAGS = -GD
 
52
!endif
 
53
 
 
54
!if $(DEBUG)
 
55
OPTIMFLAGS = -Od -Z7
 
56
DEBUGFLAGS = -Z7
 
57
!else
 
58
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
 
59
OPTIMFLAGS = -D_NDEBUG -O1
 
60
DEBUGFLAGS =
 
61
!endif
 
62
 
 
63
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DEXEEXT=\".exe\" -DDEPENDS_ON_LIBINTL=1 -DDEPENDS_ON_LIBICONV=1
 
64
 
 
65
INCLUDES = -I. -I.. -I..\intl -I..\windows -I$(includedir)
 
66
 
 
67
AR = lib
 
68
AR_FLAGS = /out:
 
69
 
 
70
LN = copy
 
71
RM = -del
 
72
 
 
73
# Programs used by "make install":
 
74
INSTALL = copy
 
75
INSTALL_PROGRAM = copy
 
76
INSTALL_DATA = copy
 
77
 
 
78
#### End of system configuration section. ####
 
79
 
 
80
SHELL = /bin/sh
 
81
 
 
82
OBJECTS = \
 
83
  allocsa.obj \
 
84
  argmatch.obj \
 
85
  backupfile.obj addext.obj \
 
86
  basename.obj \
 
87
  c-ctype.obj \
 
88
  classpath.obj \
 
89
  closeout.obj \
 
90
  copy-file.obj \
 
91
  csharpcomp.obj \
 
92
  csharpexec.obj \
 
93
  error.obj \
 
94
  error-progname.obj \
 
95
  execute.obj \
 
96
  fatal-signal.obj \
 
97
  findprog.obj \
 
98
  fstrcmp.obj \
 
99
  full-write.obj \
 
100
  fwriteerror.obj \
 
101
  gcd.obj \
 
102
  getopt.obj getopt1.obj \
 
103
  hash.obj \
 
104
  javacomp.obj \
 
105
  javaexec.obj \
 
106
  linebreak.obj \
 
107
  mbswidth.obj \
 
108
  obstack.obj \
 
109
  concatpath.obj \
 
110
  pipe-bidi.obj pipe-in.obj pipe-out.obj \
 
111
  progname.obj progreloc.obj \
 
112
  safe-read.obj \
 
113
  safe-write.obj \
 
114
  sh-quote.obj \
 
115
  stpncpy.obj \
 
116
  strtoul.obj \
 
117
  tmpdir.obj \
 
118
  wait-process.obj \
 
119
  xmalloc.obj xstrdup.obj \
 
120
  xallocsa.obj \
 
121
  xerror.obj \
 
122
  xsetenv.obj \
 
123
  \
 
124
  fnmatch.obj \
 
125
  getline.obj \
 
126
  getndelim2.obj \
 
127
  mkdtemp.obj \
 
128
  relocatable.obj \
 
129
  setenv.obj unsetenv.obj \
 
130
  stpcpy.obj \
 
131
  strcasecmp.obj strncasecmp.obj \
 
132
  vasprintf.obj
 
133
 
 
134
RESOURCES = gettextlib.res
 
135
 
 
136
all : gettextlib.lib
 
137
 
 
138
allocsa.obj : allocsa.c
 
139
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c allocsa.c
 
140
 
 
141
argmatch.obj : argmatch.c
 
142
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c argmatch.c
 
143
 
 
144
backupfile.obj : backupfile.c
 
145
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c backupfile.c
 
146
 
 
147
addext.obj : addext.c
 
148
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c addext.c
 
149
 
 
150
basename.obj : basename.c
 
151
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c basename.c
 
152
 
 
153
c-ctype.obj : c-ctype.c
 
154
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c c-ctype.c
 
155
 
 
156
classpath.obj : classpath.c
 
157
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c classpath.c
 
158
 
 
159
closeout.obj : closeout.c
 
160
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c closeout.c
 
161
 
 
162
copy-file.obj : copy-file.c
 
163
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c copy-file.c
 
164
 
 
165
csharpcomp.obj : csharpcomp.c
 
166
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c csharpcomp.c
 
167
 
 
168
csharpexec.obj : csharpexec.c
 
169
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c csharpexec.c
 
170
 
 
171
error.obj : error.c
 
172
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c error.c
 
173
 
 
174
error-progname.obj : error-progname.c
 
175
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c error-progname.c
 
176
 
 
177
execute.obj : execute.c
 
178
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c execute.c
 
179
 
 
180
fatal-signal.obj : fatal-signal.c
 
181
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c fatal-signal.c
 
182
 
 
183
findprog.obj : findprog.c
 
184
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c findprog.c
 
185
 
 
186
fstrcmp.obj : fstrcmp.c
 
187
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c fstrcmp.c
 
188
 
 
189
full-write.obj : full-write.c
 
190
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c full-write.c
 
191
 
 
192
fwriteerror.obj : fwriteerror.c
 
193
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c fwriteerror.c
 
194
 
 
195
gcd.obj : gcd.c
 
196
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c gcd.c
 
197
 
 
198
getopt.obj : getopt.c
 
199
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c getopt.c
 
200
 
 
201
getopt1.obj : getopt1.c
 
202
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c getopt1.c
 
203
 
 
204
hash.obj : hash.c
 
205
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c hash.c
 
206
 
 
207
javacomp.obj : javacomp.c
 
208
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c javacomp.c
 
209
 
 
210
javaexec.obj : javaexec.c
 
211
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c javaexec.c
 
212
 
 
213
linebreak.obj : linebreak.c
 
214
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c linebreak.c
 
215
 
 
216
mbswidth.obj : mbswidth.c
 
217
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c mbswidth.c
 
218
 
 
219
obstack.obj : obstack.c
 
220
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c obstack.c
 
221
 
 
222
concatpath.obj : concatpath.c
 
223
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c concatpath.c
 
224
 
 
225
pipe-bidi.obj : pipe-bidi.c
 
226
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c pipe-bidi.c
 
227
 
 
228
pipe-in.obj : pipe-in.c
 
229
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c pipe-in.c
 
230
 
 
231
pipe-out.obj : pipe-out.c
 
232
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c pipe-out.c
 
233
 
 
234
progname.obj : progname.c
 
235
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c progname.c
 
236
 
 
237
progreloc.obj : progreloc.c
 
238
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c progreloc.c
 
239
 
 
240
safe-read.obj : safe-read.c
 
241
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c safe-read.c
 
242
 
 
243
safe-write.obj : safe-write.c
 
244
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c safe-write.c
 
245
 
 
246
sh-quote.obj : sh-quote.c
 
247
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c sh-quote.c
 
248
 
 
249
stpncpy.obj : stpncpy.c
 
250
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c stpncpy.c
 
251
 
 
252
strtoul.obj : strtoul.c
 
253
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c strtoul.c
 
254
 
 
255
tmpdir.obj : tmpdir.c
 
256
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c tmpdir.c
 
257
 
 
258
wait-process.obj : wait-process.c
 
259
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c wait-process.c
 
260
 
 
261
xmalloc.obj : xmalloc.c
 
262
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c xmalloc.c
 
263
 
 
264
xstrdup.obj : xstrdup.c
 
265
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c xstrdup.c
 
266
 
 
267
xallocsa.obj : xallocsa.c
 
268
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c xallocsa.c
 
269
 
 
270
xerror.obj : xerror.c
 
271
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c xerror.c
 
272
 
 
273
xsetenv.obj : xsetenv.c
 
274
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c xsetenv.c
 
275
 
 
276
fnmatch.obj : fnmatch.c
 
277
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c fnmatch.c
 
278
 
 
279
getline.obj : getline.c
 
280
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c getline.c
 
281
 
 
282
getndelim2.obj : getndelim2.c
 
283
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c getndelim2.c
 
284
 
 
285
mkdtemp.obj : mkdtemp.c
 
286
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c mkdtemp.c
 
287
 
 
288
relocatable.obj : relocatable.c
 
289
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c relocatable.c
 
290
 
 
291
setenv.obj : setenv.c
 
292
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c setenv.c
 
293
 
 
294
unsetenv.obj : unsetenv.c
 
295
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c unsetenv.c
 
296
 
 
297
stpcpy.obj : stpcpy.c
 
298
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c stpcpy.c
 
299
 
 
300
strcasecmp.obj : strcasecmp.c
 
301
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c strcasecmp.c
 
302
 
 
303
strncasecmp.obj : strncasecmp.c
 
304
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c strncasecmp.c
 
305
 
 
306
vasprintf.obj : vasprintf.c
 
307
        $(CC) $(INCLUDES) $(CFLAGS) $(PICFLAGS) -c vasprintf.c
 
308
 
 
309
!if !$(DLL)
 
310
 
 
311
gettextlib.lib : $(OBJECTS)
 
312
        -$(RM) gettextlib.lib
 
313
        $(AR) $(AR_FLAGS)gettextlib.lib $(OBJECTS)
 
314
 
 
315
!else
 
316
 
 
317
# gettextlib.dll and gettextlib.lib are created together.
 
318
gettextlib.lib : ..\windows\gettextlib.def $(OBJECTS) $(RESOURCES)
 
319
        $(CC) $(MFLAGS) $(DEBUGFLAGS) -LD ..\windows\gettextlib.def $(OBJECTS) ..\intl\intl.lib $(libdir)\iconv.lib $(RESOURCES) -Fegettextlib.dll
 
320
 
 
321
gettextlib.res : ../windows/gettextlib.rc
 
322
        rc -Fo gettextlib.res ../windows/gettextlib.rc
 
323
 
 
324
!endif
 
325
 
 
326
install : all force
 
327
        -mkdir $(prefix)
 
328
        -mkdir $(exec_prefix)
 
329
!if $(DLL)
 
330
        -mkdir $(bindir)
 
331
        $(INSTALL_DATA) gettextlib.dll $(bindir)\gettextlib.dll
 
332
!endif
 
333
 
 
334
installdirs : force
 
335
        -mkdir $(prefix)
 
336
        -mkdir $(exec_prefix)
 
337
!if $(DLL)
 
338
        -mkdir $(bindir)
 
339
!endif
 
340
 
 
341
uninstall : force
 
342
!if $(DLL)
 
343
        $(RM) $(bindir)\gettextlib.dll
 
344
!endif
 
345
 
 
346
check : all
 
347
 
 
348
mostlyclean : clean
 
349
 
 
350
clean : force
 
351
        $(RM) *.obj
 
352
        $(RM) *.lib
 
353
        $(RM) *.exp
 
354
        $(RM) *.dll
 
355
        $(RM) gettextlib.res
 
356
        $(RM) core
 
357
 
 
358
distclean : clean
 
359
 
 
360
maintainer-clean : distclean
 
361
 
 
362
force :