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