source: trunk/src/3rdparty/libpng/scripts/makefile.mingw@ 846

Last change on this file since 846 was 846, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

File size: 9.0 KB
RevLine 
[2]1# makefile for mingw on x86
2# Builds both dll (with import lib) and static lib versions
3# of the library, and builds two copies of pngtest: one
4# statically linked and one dynamically linked.
5#
[561]6# Copyright (C) 2002, 2006, 2008 Soren Anderson, Charles Wilson,
[2]7# and Glenn Randers-Pehrson, based on makefile for linux-elf w/mmx by:
8# Copyright (C) 1998-2000, 2007 Greg Roelofs
9# Copyright (C) 1996, 1997 Andreas Dilger
[846]10#
[561]11# This code is released under the libpng license.
12# For conditions of distribution and use, see the disclaimer
13# and license in png.h
[2]14
[561]15# Built from makefile.cygwin
16
[2]17# This makefile intends to support building outside the src directory
18# if desired. When invoking it, specify an argument to SRCDIR on the
19# command line that points to the top of the directory where your source
20# is located.
21ifdef SRCDIR
22VPATH = $(SRCDIR)
23else
24SRCDIR = .
25endif
26
27# Override DESTDIR= on the make install command line to easily support
28# installing into a temporary location. Example:
29#
30# make install DESTDIR=/tmp/build/libpng
31#
32# If you're going to install into a temporary location
33# via DESTDIR, $(DESTDIR)$(prefix) must already exist before
34# you execute make install.
35DESTDIR=
36
37# If you're using a cross-compiler, add the appropriate prefix (e.g.,
38# "i386-mingw32msvc-") to the following three commands:
39CC=gcc
40AR=ar
41RANLIB=ranlib
42
43MKDIR_P=/bin/mkdir -pv
44
45# Where "make install" puts libpng*.a, *png*.dll, png.h, and pngconf.h
46ifndef prefix
47prefix=/usr
48$(warning "You haven't specified a 'prefix=' location. Defaulting to '/usr'")
49endif
50exec_prefix=$(prefix)
51
52# Where the zlib library and include files are located
53ZLIBLIB= /usr/lib
54ZLIBINC=
55
56ALIGN=
57# for i386:
58#ALIGN=-malign-loops=2 -malign-functions=2
59
60WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
61 -Wmissing-declarations -Wtraditional -Wcast-align \