source: trunk/src/3rdparty/libpng/scripts/makefile.64sunu@ 1126

Last change on this file since 1126 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: 7.8 KB
RevLine 
[2]1# makefile for libpng on Solaris 2.x with cc
2# Contributed by William L. Sebok, based on makefile.linux
3# Copyright (C) 2002, 2006 Glenn Randers-Pehrson
4# Copyright (C) 1998 Greg Roelofs
5# Copyright (C) 1996, 1997 Andreas Dilger
6
[561]7# This code is released under the libpng license.
8# For conditions of distribution and use, see the disclaimer
9# and license in png.h
10
[2]11# Library name:
[846]12LIBNAME=libpng14
13PNGMAJ = 14
14PNGMIN = 1.4.0
[2]15PNGVER = $(PNGMAJ).$(PNGMIN)
16
17# Shared library names:
18LIBSO=$(LIBNAME).so
19LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
20LIBSOVER=$(LIBNAME).so.$(PNGVER)
21OLDSO=libpng.so
[846]22OLDSOMAJ=libpng.so.14
23OLDSOVER=libpng.so.14.$(PNGMIN)
[2]24
25# Utilities:
26CC=cc
27AR_RC=ar rc
28MKDIR_P=mkdir -p
29LN_SF=ln -f -s
30RANLIB=echo
31RM_F=/bin/rm -f
32
33SUN_CC_FLAGS=-fast -xtarget=ultra -xarch=v9
34SUN_LD_FLAGS=-fast -xtarget=ultra -xarch=v9
35
[846]36# where make install puts libpng.a, libpng14.so and libpng14/png.h
[2]37prefix=/a
38exec_prefix=$(prefix)
39
40# Where the zlib library and include files are located
41# Changing these to ../zlib poses a security risk. If you want
42# to have zlib in an adjacent directory, specify the full path instead of "..".
43#ZLIBLIB=../zlib
44#ZLIBINC=../zlib
45
46ZLIBLIB=/usr/lib
47ZLIBINC=/usr/include
48
49WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
50 -Wmissing-declarations -Wtraditional -Wcast-align \
51 -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
52CFLAGS=-I$(ZLIBINC) $(SUN_CC_FLAGS) \
53 # $(WARNMORE) -g -DPNG_DEBUG=5
[846]54LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng14 -lz -lm
[2]