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