external libs: mingw makefile for libtiff was mysteriously lost - added.
authorOzkan Sezer <sezeroz@gmail.com>
Fri, 08 Nov 2019 22:55:24 +0300
changeset 7372c9429a86971
parent 735 e1b2875d74db
child 738 efb5e9828ca3
external libs: mingw makefile for libtiff was mysteriously lost - added.
external/tiff-4.1.0/libtiff/mingw/Makefile
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/external/tiff-4.1.0/libtiff/mingw/Makefile	Fri Nov 08 22:55:24 2019 +0300
     1.3 @@ -0,0 +1,70 @@
     1.4 +CROSS	=
     1.5 +CC	= $(CROSS)gcc
     1.6 +
     1.7 +DLLNAME = libtiff-5.dll
     1.8 +LIBNAME = libtiff.dll.a
     1.9 +INCLUDES= -I. -Iexternal/include
    1.10 +CPPFLAGS= -DDLL_EXPORT
    1.11 +CFLAGS	= -O2 -Wall
    1.12 +LDFLAGS = -Wl,--enable-auto-image-base -Wl,--no-undefined
    1.13 +LDLIBS	= -Lexternal/lib -ljpeg -lz
    1.14 +
    1.15 +OBJ =	tif_aux.o \
    1.16 +	tif_close.o \
    1.17 +	tif_codec.o \
    1.18 +	tif_color.o \
    1.19 +	tif_compress.o \
    1.20 +	tif_dir.o \
    1.21 +	tif_dirinfo.o \
    1.22 +	tif_dirread.o \
    1.23 +	tif_dirwrite.o \
    1.24 +	tif_dumpmode.o \
    1.25 +	tif_error.o \
    1.26 +	tif_extension.o \
    1.27 +	tif_fax3.o \
    1.28 +	tif_fax3sm.o \
    1.29 +	tif_flush.o \
    1.30 +	tif_getimage.o \
    1.31 +	tif_jbig.o \
    1.32 +	tif_jpeg.o \
    1.33 +	tif_jpeg_12.o \
    1.34 +	tif_luv.o \
    1.35 +	tif_lzma.o \
    1.36 +	tif_lzw.o \
    1.37 +	tif_next.o \
    1.38 +	tif_ojpeg.o \
    1.39 +	tif_open.o \
    1.40 +	tif_packbits.o \
    1.41 +	tif_pixarlog.o \
    1.42 +	tif_predict.o \
    1.43 +	tif_print.o \
    1.44 +	tif_read.o \
    1.45 +	tif_strip.o \
    1.46 +	tif_swab.o \
    1.47 +	tif_thunder.o \
    1.48 +	tif_tile.o \
    1.49 +	tif_version.o \
    1.50 +	tif_warning.o \
    1.51 +	tif_webp.o \
    1.52 +	tif_write.o \
    1.53 +	tif_zip.o \
    1.54 +	tif_zstd.o \
    1.55 +	tif_win32.o
    1.56 +
    1.57 +all: $(DLLNAME)
    1.58 +
    1.59 +.PHONY: clean distclean
    1.60 +.SUFFIXES:
    1.61 +.SUFFIXES: .o .c
    1.62 +
    1.63 +%.o: ../%.c
    1.64 +	$(CC) -c $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -o $@ $<
    1.65 +
    1.66 +$(DLLNAME): $(OBJ)
    1.67 +	$(CC) -shared -o $(DLLNAME) ../libtiff.def $(OBJ) $(LDFLAGS) $(LDLIBS) \
    1.68 +		-Xlinker --out-implib -Xlinker $(LIBNAME)
    1.69 +
    1.70 +distclean: clean
    1.71 +	$(RM) *.dll *.a
    1.72 +clean:
    1.73 +	$(RM) *.o