| [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] | 12 | LIBNAME=libpng14
|
|---|
| 13 | PNGMAJ = 14
|
|---|
| 14 | PNGMIN = 1.4.0
|
|---|
| [2] | 15 | PNGVER = $(PNGMAJ).$(PNGMIN)
|
|---|
| 16 |
|
|---|
| 17 | # Shared library names:
|
|---|
| 18 | LIBSO=$(LIBNAME).so
|
|---|
| 19 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|---|
| 20 | LIBSOVER=$(LIBNAME).so.$(PNGVER)
|
|---|
| 21 | OLDSO=libpng.so
|
|---|
| [846] | 22 | OLDSOMAJ=libpng.so.14
|
|---|
| 23 | OLDSOVER=libpng.so.14.$(PNGMIN)
|
|---|
| [2] | 24 |
|
|---|
| 25 | # Utilities:
|
|---|
| 26 | CC=cc
|
|---|
| 27 | AR_RC=ar rc
|
|---|
| 28 | MKDIR_P=mkdir -p
|
|---|
| 29 | LN_SF=ln -f -s
|
|---|
| 30 | RANLIB=echo
|
|---|
| 31 | RM_F=/bin/rm -f
|
|---|
| 32 |
|
|---|
| 33 | SUN_CC_FLAGS=-fast -xtarget=ultra -xarch=v9
|
|---|
| 34 | SUN_LD_FLAGS=-fast -xtarget=ultra -xarch=v9
|
|---|
| 35 |
|
|---|
| [846] | 36 | # where make install puts libpng.a, libpng14.so and libpng14/png.h
|
|---|
| [2] | 37 | prefix=/a
|
|---|
| 38 | exec_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 |
|
|---|
| 46 | ZLIBLIB=/usr/lib
|
|---|
| 47 | ZLIBINC=/usr/include
|
|---|
| 48 |
|
|---|
| 49 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|---|
| 50 | -Wmissing-declarations -Wtraditional -Wcast-align \
|
|---|
| 51 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
|
|---|
| 52 | CFLAGS=-I$(ZLIBINC) $(SUN_CC_FLAGS) \
|
|---|
| 53 | # $(WARNMORE) -g -DPNG_DEBUG=5
|
|---|
| [846] | 54 | LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng14 -lz -lm
|
|---|
| [2] | |
|---|