Mercurial > hg > xemacs-beta
annotate nt/tiff.mak @ 5602:c9e5612f5424
Support the MP library on recent FreeBSD, have it pass relevant tests.
src/ChangeLog addition:
2011-11-26 Aidan Kehoe <kehoea@parhasard.net>
* number-mp.c (bignum_to_string):
Don't overwrite the accumulator we've just set up for this
function.
* number-mp.c (BIGNUM_TO_TYPE):
mp_itom() doesn't necessarily do what this code used to think with
negative numbers, it can treat them as unsigned ints. Subtract
numbers from bignum_zero instead of multiplying them by -1 to
convert them to their negative equivalents.
* number-mp.c (bignum_to_int):
* number-mp.c (bignum_to_uint):
* number-mp.c (bignum_to_long):
* number-mp.c (bignum_to_ulong):
* number-mp.c (bignum_to_double):
Use the changed BIGNUM_TO_TYPE() in these functions.
* number-mp.c (bignum_ceil):
* number-mp.c (bignum_floor):
In these functions, be more careful about rounding to positive and
negative infinity, respectively. Don't use the sign of QUOTIENT
when working out out whether to add or subtract one, rather use
the sign QUOTIENT would have if arbitrary-precision division were
done.
* number-mp.h:
* number-mp.h (MP_GCD):
Wrap #include <mp.h> in BEGIN_C_DECLS/END_C_DECLS.
* number.c (Fbigfloat_get_precision):
* number.c (Fbigfloat_set_precision):
Don't attempt to call XBIGFLOAT_GET_PREC if this build doesn't
support big floats.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 26 Nov 2011 17:59:14 +0000 |
parents | 365bc8cb5894 |
children |
rev | line source |
---|---|
4894
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
1 ## TIFF makefile for Microsoft nmake |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
2 ## Copyright (C) 2001 Ben Wing. |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
3 |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
4 ## This file is part of XEmacs. |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
5 |
5416
365bc8cb5894
Convert to GPLv3 misc files.
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
6 ## XEmacs is free software: you can redistribute it and/or modify it |
4894
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
7 ## under the terms of the GNU General Public License as published by the |
5416
365bc8cb5894
Convert to GPLv3 misc files.
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
8 ## Free Software Foundation, either version 3 of the License, or (at your |
365bc8cb5894
Convert to GPLv3 misc files.
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
9 ## option) any later version. |
4894
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
10 |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
11 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
12 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
13 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
14 ## for more details. |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
15 |
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
16 ## You should have received a copy of the GNU General Public License |
5416
365bc8cb5894
Convert to GPLv3 misc files.
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
17 ## along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
4894
03ab78e48ef6
Add copyright and license information based on Ben's recollections.
Jerry James <james@xemacs.org>
parents:
318
diff
changeset
|
18 |
318 | 19 !if !defined(DEBUG_XEMACS) |
20 DEBUG_XEMACS=0 | |
21 !endif | |
22 | |
23 !if $(DEBUG_XEMACS) | |
24 OPT=-Od -Zi | |
25 !else | |
26 OPT=-O2 -G5 | |
27 !endif | |
28 | |
29 WARN_CPP_FLAGS = -W3 | |
30 CFLAGS=-nologo -DFOR_MSW $(WARN_CPP_FLAGS) $(OPT) -c | |
31 | |
32 OUTDIR=.\WinRel | |
33 OBJDIR=.\WinRel | |
34 # the following is because fax3sm.c references "tiff.h" and "tif_fax3.h", | |
35 # under the assumption that those header files are in the same directory | |
36 # as fax3sm.c But, since we're using a special fax3sm.c file, and we | |
37 # can't be sure the user has patch to change "xx" to "..\..\libtiff\xx", | |
38 # let's just copy these header files to this directory. (Symbolic links | |
39 # would be _so_ nice) | |
40 NEED_FOR_COMPILE= tiff.h tif_fax3.h | |
41 | |
42 CPP=cl.exe | |
43 CPP_PROJ= /GX /YX /I "." /I ".." /D "WIN32" /D "NDEBUG" /D\ | |
44 "_WINDOWS" /FR$(OBJDIR)/ /Fp$(OUTDIR)/"libtiff.pch" $(CFLAGS) | |
45 | |
46 BSC32=bscmake.exe | |
47 BSC32_FLAGS=/nologo /o$(OUTDIR)/libtiff.bsc | |
48 | |
49 LIB32=lib.exe | |
50 LIB32_FLAGS=/NOLOGO /OUT:$(OUTDIR)\libtiff.lib | |
51 DEF_FLAGS= | |
52 DEF_FILE= | |
53 | |
54 BSC32_SBRS= \ | |
55 $(OBJDIR)\tif_jpeg.sbr \ | |
56 $(OBJDIR)\tif_dirinfo.sbr \ | |
57 $(OBJDIR)\tif_win32.sbr \ | |
58 $(OBJDIR)\tif_flush.sbr \ | |
59 $(OBJDIR)\tif_thunder.sbr \ | |
60 $(OBJDIR)\tif_compress.sbr \ | |
61 $(OBJDIR)\tif_print.sbr \ | |
62 $(OBJDIR)\tif_dirread.sbr \ | |
63 $(OBJDIR)\tif_getimage.sbr \ | |
64 $(OBJDIR)\tif_fax3.sbr \ | |
65 $(OBJDIR)\tif_version.sbr \ | |
66 $(OBJDIR)\tif_codec.sbr \ | |
67 $(OBJDIR)\tif_dir.sbr \ | |
68 $(OBJDIR)\tif_predict.sbr \ | |
69 $(OBJDIR)\tif_close.sbr \ | |
70 $(OBJDIR)\tif_dumpmode.sbr \ | |
71 $(OBJDIR)\tif_aux.sbr \ | |
72 $(OBJDIR)\tif_error.sbr \ | |
73 $(OBJDIR)\tif_lzw.sbr \ | |
74 $(OBJDIR)\tif_zip.sbr \ | |
75 $(OBJDIR)\tif_read.sbr \ | |
76 $(OBJDIR)\tif_packbits.sbr \ | |
77 $(OBJDIR)\tif_swab.sbr \ | |
78 $(OBJDIR)\tif_dirwrite.sbr \ | |
79 $(OBJDIR)\tif_open.sbr \ | |
80 $(OBJDIR)\tif_warning.sbr \ | |
81 $(OBJDIR)\tif_tile.sbr \ | |
82 $(OBJDIR)\tif_strip.sbr \ | |
83 $(OBJDIR)\tif_next.sbr \ | |
84 $(OBJDIR)\tif_write.sbr \ | |
85 $(OBJDIR)\fax3sm.sbr | |
86 | |
87 LIB32_OBJS= \ | |
88 $(OBJDIR)\tif_jpeg.obj \ | |
89 $(OBJDIR)\tif_dirinfo.obj \ | |
90 $(OBJDIR)\tif_win32.obj \ | |
91 $(OBJDIR)\tif_flush.obj \ | |
92 $(OBJDIR)\tif_thunder.obj \ | |
93 $(OBJDIR)\tif_compress.obj \ | |
94 $(OBJDIR)\tif_print.obj \ | |
95 $(OBJDIR)\tif_dirread.obj \ | |
96 $(OBJDIR)\tif_getimage.obj \ | |
97 $(OBJDIR)\tif_fax3.obj \ | |
98 $(OBJDIR)\tif_version.obj \ | |
99 $(OBJDIR)\tif_codec.obj \ | |
100 $(OBJDIR)\tif_dir.obj \ | |
101 $(OBJDIR)\tif_predict.obj \ | |
102 $(OBJDIR)\tif_close.obj \ | |
103 $(OBJDIR)\tif_dumpmode.obj \ | |
104 $(OBJDIR)\tif_aux.obj \ | |
105 $(OBJDIR)\tif_error.obj \ | |
106 $(OBJDIR)\tif_lzw.obj \ | |
107 $(OBJDIR)\tif_zip.obj \ | |
108 $(OBJDIR)\tif_read.obj \ | |
109 $(OBJDIR)\tif_packbits.obj \ | |
110 $(OBJDIR)\tif_swab.obj \ | |
111 $(OBJDIR)\tif_dirwrite.obj \ | |
112 $(OBJDIR)\tif_open.obj \ | |
113 $(OBJDIR)\tif_warning.obj \ | |
114 $(OBJDIR)\tif_tile.obj \ | |
115 $(OBJDIR)\tif_strip.obj \ | |
116 $(OBJDIR)\tif_next.obj \ | |
117 $(OBJDIR)\tif_write.obj \ | |
118 $(OBJDIR)\fax3sm.obj | |
119 | |
120 # nmake rule | |
121 | |
122 .SUFFIXES: | |
123 .SUFFIXES: .c .obj | |
124 | |
125 {..\..\libtiff}.c{$(OBJDIR)}.obj: | |
126 $(CPP) $(CPP_PROJ) $< -Fo$@ | |
127 | |
128 | |
129 ALL : $(OUTDIR)/libtiff.lib $(OUTDIR)/libtiff.bsc | |
130 | |
131 clean : | |
132 -del tiff.h | |
133 -del tif_fax3.h | |
134 -del t4.h | |
135 -del tiffcomp.h | |
136 -del tiffconf.h | |
137 -del tiffio.h | |
138 -del ..\..\libtiff\libtiff.lib | |
139 -del *.pdb | |
140 -del $(OBJDIR)\*.obj | |
141 -del $(OBJDIR)\*.sbr | |
142 -del $(OUTDIR)\libtiff.lib | |
143 -del $(OUTDIR)\libtiff.bsc | |
144 -del $(OUTDIR)\libtiff.pch | |
145 -rmdir $(OUTDIR) | |
146 | |
147 tiff.h : | |
148 if not exist ./tiff.h copy ..\..\libtiff\tiff.h . | |
149 tif_fax3.h : | |
150 if not exist ./tif_fax3.h copy ..\..\libtiff\tif_fax3.h . | |
151 | |
152 $(OUTDIR) : $(NEED_FOR_COMPILE) | |
153 if not exist $(OUTDIR)/nul mkdir $(OUTDIR) | |
154 | |
155 $(OUTDIR)/libtiff.bsc : $(OUTDIR) $(BSC32_SBRS) | |
156 $(BSC32) @<< | |
157 $(BSC32_FLAGS) $(BSC32_SBRS) | |
158 << | |
159 | |
160 $(OUTDIR)/libtiff.lib : $(OUTDIR) $(DEF_FILE) $(LIB32_OBJS) | |
161 $(LIB32) @<< | |
162 $(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS) | |
163 << | |
164 copy $(OUTDIR)\libtiff.lib ..\..\libtiff\libtiff.lib | |
165 | |
166 DEP_FAX3S=\ | |
167 ..\..\libtiff\tiff.h \ | |
168 ..\..\libtiff\tif_fax3.h | |
169 $(OBJDIR)/fax3sm.obj : $(DEP_FAX3S) $(OBJDIR) | |
170 $(CPP) $(CPP_PROJ) .\fax3sm.c -Fo$@ | |
171 |