]> git.saurik.com Git - wxWidgets.git/blobdiff - src/tiff/makefile.vc
sockets work with wxDFB now
[wxWidgets.git] / src / tiff / makefile.vc
index 1d43133aa8f8d577d6b66d5904a3474b2e6c0460..00ef34d0cbdb2b61694f73843046aff73c594c5f 100644 (file)
@@ -1,50 +1,93 @@
+#
+#      Simple MS VC++ Makefile
+#
+#      To build:
+#       C:\libtiff\libtiff> nmake /f makefile.vc all
+#
+
+# 
+# Select _CONSOLE to build a library which reports errors to stderr, or
+# _WINDOWED to build such that errors are reported via MessageBox().
+#
+WINMODE = -DTIF_PLATFORM_CONSOLE
+#WINMODE = -DTIF_PLATFORM_WINDOWED
+
+# Uncomment and edit following lines to enable JPEG support
+#JPEG_SUPPORT  = 1
+#JPEGDIR       = d:/projects/jpeg-6b
+
+CC             = cl
+INCL           = -I.
+LIBS           =
+EXTRAFLAGS     =
+
+!IFDEF JPEG_SUPPORT
+INCL           = $(INCL) -I$(JPEGDIR)
+EXTRAFLAGS     = $(EXTRAFLAGS) -DJPEG_SUPPORT
+!ENDIF
+
+CFLAGS  = /nologo /W3 $(INCL) $(WINMODE) $(EXTRAFLAGS)
+
+OBJ    = \
+       tif_aux.obj \
+       tif_close.obj \
+       tif_codec.obj \
+       tif_color.obj \
+       tif_compress.obj \
+       tif_dir.obj \
+       tif_dirinfo.obj \
+       tif_dirread.obj \
+       tif_dirwrite.obj \
+       tif_dumpmode.obj \
+       tif_error.obj \
+       tif_extension.obj \
+       tif_fax3.obj \
+       fax3sm_winnt.obj \
+       tif_getimage.obj \
+       tif_jpeg.obj \
+       tif_ojpeg.obj \
+       tif_flush.obj \
+       tif_luv.obj \
+       tif_lzw.obj \
+       tif_next.obj \
+       tif_open.obj \
+       tif_packbits.obj \
+       tif_pixarlog.obj \
+       tif_predict.obj \
+       tif_print.obj \
+       tif_read.obj \
+       tif_swab.obj \
+       tif_strip.obj \
+       tif_thunder.obj \
+       tif_tile.obj \
+       tif_win32.obj \
+       tif_version.obj \
+       tif_warning.obj \
+       tif_write.obj \
+       tif_zip.obj
+
+VERSION        = ..\VERSION
+ALPHA = ..\dist\tiff.alpha
+
+default:       libtiff.lib
+
+all:   libtiff.lib libtiff.dll
+
+libtiff.lib:   tiffvers.h $(OBJ)
+       lib /out:libtiff.lib $(OBJ)
+
+libtiff.dll:   $(OBJ)
+       link /dll /def:libtiff.def /out:libtiff.dll /implib:libtiff_i.lib \
+               $(OBJ) $(LIBS)
+       
+tiffvers.h:    $(VERSION) mkversion.c
+       $(CC) mkversion.c 
+       if exist tiffvers.h del tiffvers.h
+       .\mkversion.exe -v $(VERSION) tiffvers.h
+
+clean:
+       del *.obj *.lib libtiff.dll
+
+tif_version.obj:       tiffvers.h
 
-!if "$(FINAL)" == "1"
-LIBTARGET=$(WXDIR)\lib\tiff.lib
-!else if "$(FINAL)" == "hybrid"
-LIBTARGET=$(WXDIR)\lib\tiffh.lib
-!else
-LIBTARGET=$(WXDIR)\lib\tiffd.lib
-!endif
-
-OBJECTS= \
-               $D/tif_aux.obj \
-               $D/tif_close.obj \
-               $D/tif_codec.obj \
-               $D/tif_compress.obj \
-               $D/tif_dir.obj \
-               $D/tif_dirinfo.obj \
-               $D/tif_dirread.obj \
-               $D/tif_dirwrite.obj \
-               $D/tif_dumpmode.obj \
-               $D/tif_error.obj \
-               $D/tif_fax3.obj \
-               $D/tif_fax3sm.obj \
-               $D/tif_flush.obj \
-               $D/tif_getimage.obj \
-               $D/tif_jpeg.obj \
-               $D/tif_luv.obj \
-               $D/tif_lzw.obj \
-               $D/tif_next.obj \
-               $D/tif_open.obj \
-               $D/tif_packbits.obj \
-               $D/tif_pixarlog.obj \
-               $D/tif_predict.obj \
-               $D/tif_print.obj \
-               $D/tif_read.obj \
-               $D/tif_strip.obj \
-               $D/tif_swab.obj \
-               $D/tif_thunder.obj \
-               $D/tif_tile.obj \
-               $D/tif_version.obj \
-               $D/tif_warning.obj \
-               $D/tif_win32.obj \
-               $D/tif_write.obj \
-               $D/tif_zip.obj \
-
-
-
-# Pull in standard variable definitions
-
-!include ..\makelib.vc