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