]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.gcc
replace wxGetMultipleChoices() with wxGetSelectedChoices() which allows to distinguis...
[wxWidgets.git] / src / png / scripts / makefile.gcc
CommitLineData
0272a10d 1# makefile for libpng using gcc (generic, static library)
970f6abe 2# Copyright (C) 2008 Glenn Randers-Pehrson
0272a10d
VZ
3# Copyright (C) 2000 Cosmin Truta
4# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
5# For conditions of distribution and use, see copyright notice in png.h
6
7# Location of the zlib library and include files
8ZLIBINC = ../zlib
9ZLIBLIB = ../zlib
10
11# Compiler, linker, lib and other tools
12CC = gcc
13LD = $(CC)
14AR_RC = ar rcs
15RANLIB = ranlib
16RM_F = rm -f
17
18CDEBUG = -g -DPNG_DEBUG=5
19LDDEBUG =
20CRELEASE = -O2
21LDRELEASE = -s
970f6abe
VZ
22#CFLAGS = -W -Wall $(CDEBUG)
23CFLAGS = -W -Wall $(CRELEASE)
0272a10d
VZ
24#LDFLAGS = $(LDDEBUG)
25LDFLAGS = $(LDRELEASE)
26LIBS = -lz -lm
27
28# File extensions
29O=.o
30A=.a
31EXE=
32
33# Variables
34OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
35 pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
36 pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
37
38# Targets
39all: static
40
41.c$(O):
42 $(CC) -c $(CFLAGS) -I$(ZLIBINC) $<
43
44static: libpng$(A) pngtest$(EXE)
45
46shared:
47 @echo This is a generic makefile that cannot create shared libraries.
48 @echo Please use a configuration that is specific to your platform.
49 @false
50
51libpng$(A): $(OBJS)
52 $(AR_RC) $@ $(OBJS)
53 $(RANLIB) $@
54
55test: pngtest$(EXE)
56 ./pngtest$(EXE)
57
58pngtest$(EXE): pngtest$(O) libpng$(A)
59 $(LD) $(LDFLAGS) -L$(ZLIBLIB) -o $@ pngtest$(O) libpng$(A) $(LIBS)
60
61clean:
62 $(RM_F) *$(O) libpng$(A) pngtest$(EXE) pngout.png
63
64png$(O): png.h pngconf.h
65pngerror$(O): png.h pngconf.h
66pngget$(O): png.h pngconf.h
67pngmem$(O): png.h pngconf.h
68pngpread$(O): png.h pngconf.h
69pngread$(O): png.h pngconf.h
70pngrio$(O): png.h pngconf.h
71pngrtran$(O): png.h pngconf.h
72pngrutil$(O): png.h pngconf.h
73pngset$(O): png.h pngconf.h
74pngtest$(O): png.h pngconf.h
75pngtrans$(O): png.h pngconf.h
76pngwio$(O): png.h pngconf.h
77pngwrite$(O): png.h pngconf.h
78pngwtran$(O): png.h pngconf.h
79pngwutil$(O): png.h pngconf.h
80