]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.aix
use the right GdkWindow and origin for non-pizza widget with wxClientDC
[wxWidgets.git] / src / png / scripts / makefile.aix
CommitLineData
0272a10d 1# makefile for libpng using gcc (generic, static library)
970f6abe 2# Copyright (C) 2002, 2006, 2008 Glenn Randers-Pehrson
0272a10d
VZ
3# Copyright (C) 2000 Cosmin Truta
4# Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc)
5# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
6# For conditions of distribution and use, see copyright notice in png.h
7
8# Location of the zlib library and include files
9ZLIBINC = ../zlib
10ZLIBLIB = ../zlib
11
12# Compiler, linker, lib and other tools
13CC = gcc
14LD = $(CC)
15AR_RC = ar rcs
16MKDIR_P = mkdir -p
17RANLIB = ranlib
18RM_F = rm -f
19LN_SF = ln -f -s
20
21LIBNAME=libpng12
22PNGMAJ = 0
970f6abe 23PNGMIN = 1.2.34
0272a10d
VZ
24PNGVER = $(PNGMAJ).$(PNGMIN)
25
26prefix=/usr/local
27INCPATH=$(prefix)/include
28LIBPATH=$(prefix)/lib
29
30# override DESTDIR= on the make install command line to easily support
31# installing into a temporary location. Example:
32#
33# make install DESTDIR=/tmp/build/libpng
34#
35# If you're going to install into a temporary location
36# via DESTDIR, $(DESTDIR)$(prefix) must already exist before
37# you execute make install.
38DESTDIR=
39
40DI=$(DESTDIR)$(INCPATH)
41DL=$(DESTDIR)$(LIBPATH)
42
43CDEBUG = -g -DPNG_DEBUG=5
44LDDEBUG =
45CRELEASE = -O2
46LDRELEASE = -s
970f6abe 47WARNMORE=-W -Wall
0272a10d
VZ
48CFLAGS = -I$(ZLIBINC) $(WARNMORE) $(CRELEASE)
49LDFLAGS = -L. -L$(ZLIBLIB) -lpng12 -lz -lm $(LDRELEASE)
50
51# File extensions
52O=.o
53A=.a
54E=
55
56# Variables
57OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
58 pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
59 pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
60
61# Targets
62all: $(LIBNAME)$(A) pngtest$(E)
63
64$(LIBNAME)$(A): $(OBJS)
65 $(AR_RC) $@ $(OBJS)
66 $(RANLIB) $@
67
68test: pngtest$(E)
69 ./pngtest$(E)
70
71pngtest$(E): pngtest$(O) $(LIBNAME)$(A)
72 $(LD) -o $@ pngtest$(O) $(LDFLAGS)
73
74install: $(LIBNAME)$(A)
75 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi
76 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi
77 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
78 -@$(RM_F) $(DI)/$(LIBNAME)/png.h
79 -@$(RM_F) $(DI)/$(LIBNAME)/pngconf.h
80 -@$(RM_F) $(DI)/png.h
81 -@$(RM_F) $(DI)/pngconf.h
82 cp png.h pngconf.h $(DI)/$(LIBNAME)
83 chmod 644 $(DI)/$(LIBNAME)/png.h \
84 $(DI)/$(LIBNAME)/pngconf.h
85 -@$(RM_F) -r $(DI)/libpng
86 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .)
87 -@$(RM_F) $(DL)/$(LIBNAME)$(A)
88 -@$(RM_F) $(DL)/libpng$(A)
89 cp $(LIBNAME)$(A) $(DL)/$(LIBNAME)$(A)
90 chmod 644 $(DL)/$(LIBNAME)$(A)
91 (cd $(DL); $(LN_SF) $(LIBNAME)$(A) libpng$(A))
92 (cd $(DI); $(LN_SF) libpng/* .;)
93
94clean:
95 $(RM_F) *.o $(LIBNAME)$(A) pngtest pngout.png
96
97png$(O): png.h pngconf.h
98pngerror$(O): png.h pngconf.h
99pngget$(O): png.h pngconf.h
100pngmem$(O): png.h pngconf.h
101pngpread$(O): png.h pngconf.h
102pngread$(O): png.h pngconf.h
103pngrio$(O): png.h pngconf.h
104pngrtran$(O): png.h pngconf.h
105pngrutil$(O): png.h pngconf.h
106pngset$(O): png.h pngconf.h
107pngtest$(O): png.h pngconf.h
108pngtrans$(O): png.h pngconf.h
109pngwio$(O): png.h pngconf.h
110pngwrite$(O): png.h pngconf.h
111pngwtran$(O): png.h pngconf.h
112pngwutil$(O): png.h pngconf.h
113