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