annotate nt/tiff.mak @ 464:5aa1854ad537 r21-2-47

Import from CVS: tag r21-2-47
author cvs
date Mon, 13 Aug 2007 11:45:51 +0200
parents afd57c14dfc8
children 03ab78e48ef6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
318
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
1 #
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
2 # TIFF makefile for Microsoft nmake
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
3 #
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
4 !if !defined(DEBUG_XEMACS)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
5 DEBUG_XEMACS=0
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
6 !endif
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
7
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
8 !if $(DEBUG_XEMACS)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
9 OPT=-Od -Zi
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
10 !else
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
11 OPT=-O2 -G5
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
12 !endif
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
13
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
14 WARN_CPP_FLAGS = -W3
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
15 CFLAGS=-nologo -DFOR_MSW $(WARN_CPP_FLAGS) $(OPT) -c
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
16
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
17 OUTDIR=.\WinRel
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
18 OBJDIR=.\WinRel
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
19 # the following is because fax3sm.c references "tiff.h" and "tif_fax3.h",
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
20 # under the assumption that those header files are in the same directory
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
21 # as fax3sm.c But, since we're using a special fax3sm.c file, and we
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
22 # can't be sure the user has patch to change "xx" to "..\..\libtiff\xx",
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
23 # let's just copy these header files to this directory. (Symbolic links
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
24 # would be _so_ nice)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
25 NEED_FOR_COMPILE= tiff.h tif_fax3.h
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
26
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
27 CPP=cl.exe
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
28 CPP_PROJ= /GX /YX /I "." /I ".." /D "WIN32" /D "NDEBUG" /D\
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
29 "_WINDOWS" /FR$(OBJDIR)/ /Fp$(OUTDIR)/"libtiff.pch" $(CFLAGS)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
30
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
31 BSC32=bscmake.exe
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
32 BSC32_FLAGS=/nologo /o$(OUTDIR)/libtiff.bsc
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
33
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
34 LIB32=lib.exe
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
35 LIB32_FLAGS=/NOLOGO /OUT:$(OUTDIR)\libtiff.lib
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
36 DEF_FLAGS=
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
37 DEF_FILE=
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
38
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
39 BSC32_SBRS= \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
40 $(OBJDIR)\tif_jpeg.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
41 $(OBJDIR)\tif_dirinfo.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
42 $(OBJDIR)\tif_win32.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
43 $(OBJDIR)\tif_flush.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
44 $(OBJDIR)\tif_thunder.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
45 $(OBJDIR)\tif_compress.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
46 $(OBJDIR)\tif_print.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
47 $(OBJDIR)\tif_dirread.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
48 $(OBJDIR)\tif_getimage.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
49 $(OBJDIR)\tif_fax3.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
50 $(OBJDIR)\tif_version.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
51 $(OBJDIR)\tif_codec.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
52 $(OBJDIR)\tif_dir.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
53 $(OBJDIR)\tif_predict.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
54 $(OBJDIR)\tif_close.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
55 $(OBJDIR)\tif_dumpmode.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
56 $(OBJDIR)\tif_aux.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
57 $(OBJDIR)\tif_error.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
58 $(OBJDIR)\tif_lzw.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
59 $(OBJDIR)\tif_zip.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
60 $(OBJDIR)\tif_read.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
61 $(OBJDIR)\tif_packbits.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
62 $(OBJDIR)\tif_swab.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
63 $(OBJDIR)\tif_dirwrite.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
64 $(OBJDIR)\tif_open.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
65 $(OBJDIR)\tif_warning.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
66 $(OBJDIR)\tif_tile.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
67 $(OBJDIR)\tif_strip.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
68 $(OBJDIR)\tif_next.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
69 $(OBJDIR)\tif_write.sbr \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
70 $(OBJDIR)\fax3sm.sbr
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
71
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
72 LIB32_OBJS= \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
73 $(OBJDIR)\tif_jpeg.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
74 $(OBJDIR)\tif_dirinfo.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
75 $(OBJDIR)\tif_win32.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
76 $(OBJDIR)\tif_flush.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
77 $(OBJDIR)\tif_thunder.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
78 $(OBJDIR)\tif_compress.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
79 $(OBJDIR)\tif_print.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
80 $(OBJDIR)\tif_dirread.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
81 $(OBJDIR)\tif_getimage.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
82 $(OBJDIR)\tif_fax3.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
83 $(OBJDIR)\tif_version.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
84 $(OBJDIR)\tif_codec.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
85 $(OBJDIR)\tif_dir.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
86 $(OBJDIR)\tif_predict.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
87 $(OBJDIR)\tif_close.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
88 $(OBJDIR)\tif_dumpmode.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
89 $(OBJDIR)\tif_aux.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
90 $(OBJDIR)\tif_error.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
91 $(OBJDIR)\tif_lzw.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
92 $(OBJDIR)\tif_zip.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
93 $(OBJDIR)\tif_read.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
94 $(OBJDIR)\tif_packbits.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
95 $(OBJDIR)\tif_swab.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
96 $(OBJDIR)\tif_dirwrite.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
97 $(OBJDIR)\tif_open.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
98 $(OBJDIR)\tif_warning.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
99 $(OBJDIR)\tif_tile.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
100 $(OBJDIR)\tif_strip.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
101 $(OBJDIR)\tif_next.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
102 $(OBJDIR)\tif_write.obj \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
103 $(OBJDIR)\fax3sm.obj
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
104
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
105 # nmake rule
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
106
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
107 .SUFFIXES:
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
108 .SUFFIXES: .c .obj
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
109
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
110 {..\..\libtiff}.c{$(OBJDIR)}.obj:
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
111 $(CPP) $(CPP_PROJ) $< -Fo$@
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
112
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
113
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
114 ALL : $(OUTDIR)/libtiff.lib $(OUTDIR)/libtiff.bsc
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
115
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
116 clean :
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
117 -del tiff.h
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
118 -del tif_fax3.h
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
119 -del t4.h
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
120 -del tiffcomp.h
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
121 -del tiffconf.h
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
122 -del tiffio.h
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
123 -del ..\..\libtiff\libtiff.lib
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
124 -del *.pdb
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
125 -del $(OBJDIR)\*.obj
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
126 -del $(OBJDIR)\*.sbr
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
127 -del $(OUTDIR)\libtiff.lib
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
128 -del $(OUTDIR)\libtiff.bsc
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
129 -del $(OUTDIR)\libtiff.pch
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
130 -rmdir $(OUTDIR)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
131
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
132 tiff.h :
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
133 if not exist ./tiff.h copy ..\..\libtiff\tiff.h .
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
134 tif_fax3.h :
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
135 if not exist ./tif_fax3.h copy ..\..\libtiff\tif_fax3.h .
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
136
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
137 $(OUTDIR) : $(NEED_FOR_COMPILE)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
138 if not exist $(OUTDIR)/nul mkdir $(OUTDIR)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
139
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
140 $(OUTDIR)/libtiff.bsc : $(OUTDIR) $(BSC32_SBRS)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
141 $(BSC32) @<<
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
142 $(BSC32_FLAGS) $(BSC32_SBRS)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
143 <<
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
144
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
145 $(OUTDIR)/libtiff.lib : $(OUTDIR) $(DEF_FILE) $(LIB32_OBJS)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
146 $(LIB32) @<<
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
147 $(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
148 <<
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
149 copy $(OUTDIR)\libtiff.lib ..\..\libtiff\libtiff.lib
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
150
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
151 DEP_FAX3S=\
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
152 ..\..\libtiff\tiff.h \
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
153 ..\..\libtiff\tif_fax3.h
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
154 $(OBJDIR)/fax3sm.obj : $(DEP_FAX3S) $(OBJDIR)
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
155 $(CPP) $(CPP_PROJ) .\fax3sm.c -Fo$@
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents:
diff changeset
156