| [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.
|
|---|
| 21 | ifdef SRCDIR
|
|---|
| 22 | VPATH = $(SRCDIR)
|
|---|
| 23 | else
|
|---|
| 24 | SRCDIR = .
|
|---|
| 25 | endif
|
|---|
| 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.
|
|---|
| 35 | DESTDIR=
|
|---|
| 36 |
|
|---|
| 37 | # If you're using a cross-compiler, add the appropriate prefix (e.g.,
|
|---|
| 38 | # "i386-mingw32msvc-") to the following three commands:
|
|---|
| 39 | CC=gcc
|
|---|
| 40 | AR=ar
|
|---|
| 41 | RANLIB=ranlib
|
|---|
| 42 |
|
|---|
| 43 | MKDIR_P=/bin/mkdir -pv
|
|---|
| 44 |
|
|---|
| 45 | # Where "make install" puts libpng*.a, *png*.dll, png.h, and pngconf.h
|
|---|
| 46 | ifndef prefix
|
|---|
| 47 | prefix=/usr
|
|---|
| 48 | $(warning "You haven't specified a 'prefix=' location. Defaulting to '/usr'")
|
|---|
| 49 | endif
|
|---|
| 50 | exec_prefix=$(prefix)
|
|---|
| 51 |
|
|---|
| 52 | # Where the zlib library and include files are located
|
|---|
| 53 | ZLIBLIB= /usr/lib
|
|---|
| 54 | ZLIBINC=
|
|---|
| 55 |
|
|---|
| 56 | ALIGN=
|
|---|
| 57 | # for i386:
|
|---|
| 58 | #ALIGN=-malign-loops=2 -malign-functions=2
|
|---|
| 59 |
|
|---|
| 60 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|---|
| 61 | -Wmissing-declarations -Wtraditional -Wcast-align \
|
|---|
| |
|---|