diff options
Diffstat (limited to '')
58 files changed, 8540 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/README.txt b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/README.txt new file mode 100644 index 0000000..e0a229f --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/README.txt | |||
@@ -0,0 +1,76 @@ | |||
1 | |||
2 | Makefiles for libpng version 1.5.9 - February 18, 2012 | ||
3 | |||
4 | pnglibconf.h.prebuilt => Stores configuration settings | ||
5 | makefile.linux => Linux/ELF makefile | ||
6 | (gcc, creates libpng15.so.15.1.5.9) | ||
7 | makefile.gcc => Generic makefile (gcc, creates static libpng.a) | ||
8 | makefile.knr => Archaic UNIX Makefile that converts files with | ||
9 | ansi2knr (Requires ansi2knr.c from | ||
10 | ftp://ftp.cs.wisc.edu/ghost) | ||
11 | makefile.acorn => Acorn makefile | ||
12 | makefile.aix => AIX/gcc makefile | ||
13 | makefile.amiga => Amiga makefile | ||
14 | makefile.atari => Atari makefile | ||
15 | makefile.bc32 => 32-bit Borland C++ (all modules compiled in C mode) | ||
16 | makefile.beos => beos makefile | ||
17 | makefile.bor => Borland makefile (uses bcc) | ||
18 | makefile.cegcc => minge32ce for Windows CE makefile | ||
19 | makefile.darwin => Darwin makefile, can use on MacosX | ||
20 | makefile.dec => DEC Alpha UNIX makefile | ||
21 | makefile.dj2 => DJGPP 2 makefile | ||
22 | makefile.elf => Linux/ELF makefile symbol versioning, | ||
23 | (gcc, creates libpng15.so.15.1.5.9) | ||
24 | makefile.freebsd => FreeBSD makefile | ||
25 | makefile.gcc => Generic gcc makefile | ||
26 | makefile.hpgcc => HPUX makefile using gcc | ||
27 | makefile.hpux => HPUX (10.20 and 11.00) makefile | ||
28 | makefile.hp64 => HPUX (10.20 and 11.00) makefile, 64-bit | ||
29 | makefile.ibmc => IBM C/C++ version 3.x for Win32 and OS/2 (static) | ||
30 | makefile.intel => Intel C/C++ version 4.0 and later | ||
31 | makefile.mips => MIPS makefile | ||
32 | makefile.msc => Microsoft C makefile | ||
33 | makefile.netbsd => NetBSD/cc makefile, makes libpng.so. | ||
34 | makefile.openbsd => OpenBSD makefile | ||
35 | makefile.os2 => OS/2 Makefile (gcc and emx, requires libpng.def) | ||
36 | makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc | ||
37 | makefile.sggcc => Silicon Graphics (gcc, | ||
38 | creates libpng15.so.15.1.5.9) | ||
39 | makefile.sgi => Silicon Graphics IRIX makefile (cc, creates static lib) | ||
40 | makefile.solaris => Solaris 2.X makefile (gcc, | ||
41 | creates libpng15.so.15.1.5.9) | ||
42 | makefile.so9 => Solaris 9 makefile (gcc, | ||
43 | creates libpng15.so.15.1.5.9) | ||
44 | makefile.std => Generic UNIX makefile (cc, creates static libpng.a) | ||
45 | makefile.sunos => Sun makefile | ||
46 | makefile.32sunu => Sun Ultra 32-bit makefile | ||
47 | makefile.64sunu => Sun Ultra 64-bit makefile | ||
48 | makefile.tc3 => Turbo C 3.0 makefile | ||
49 | makefile.vcwin32 => makefile for Microsoft Visual C++ 4.0 and later | ||
50 | makevms.com => VMS build script | ||
51 | smakefile.ppc => AMIGA smakefile for SAS C V6.58/7.00 PPC compiler | ||
52 | (Requires SCOPTIONS, copied from scripts/SCOPTIONS.ppc) | ||
53 | |||
54 | Other supporting scripts: | ||
55 | README.txt => This file | ||
56 | descrip.mms => VMS makefile for MMS or MMK | ||
57 | libpng-config-body.in => used by several makefiles to create libpng-config | ||
58 | libpng-config-head.in => used by several makefiles to create libpng-config | ||
59 | libpng.pc.in => Used by several makefiles to create libpng.pc | ||
60 | pngwin.rc => Used by the visualc71 project. | ||
61 | pngwin.def => Used by makefile.os2 | ||
62 | pngwin.dfn => Used to maintain pngwin.def | ||
63 | SCOPTIONS.ppc => Used with smakefile.ppc | ||
64 | |||
65 | checksym.awk => Used for maintaining pnglibconf.h | ||
66 | def.dfn => Used for maintaining pnglibconf.h | ||
67 | options.awk => Used for maintaining pnglibconf.h | ||
68 | pnglibconf.dfa => Used for maintaining pnglibconf.h | ||
69 | pnglibconf.mak => Used for maintaining pnglibconf.h | ||
70 | sym.dfn => Used for symbol versioning | ||
71 | symbols.def => Used for symbol versioning | ||
72 | symbols.dfn => Used for symbol versioning | ||
73 | vers.dfn => Used for symbol versioning | ||
74 | |||
75 | |||
76 | Further information can be found in comments in the individual makefiles. | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/SCOPTIONS.ppc b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/SCOPTIONS.ppc new file mode 100644 index 0000000..7090fd4 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/SCOPTIONS.ppc | |||
@@ -0,0 +1,7 @@ | |||
1 | OPTIMIZE | ||
2 | OPTPEEP | ||
3 | OPTTIME | ||
4 | OPTSCHED | ||
5 | AUTOREGISTER | ||
6 | PARMS=REGISTERS | ||
7 | INCLUDEDIR=hlp:ppc/include | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/checksym.awk b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/checksym.awk new file mode 100644 index 0000000..5bafa8c --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/checksym.awk | |||
@@ -0,0 +1,161 @@ | |||
1 | #!/bin/awk -f | ||
2 | # Check a list of symbols against the master definition | ||
3 | # (official) list. Arguments: | ||
4 | # | ||
5 | # awk -f checksym.awk official-def list-to-check | ||
6 | # | ||
7 | # Output is a file in the current directory called 'symbols.new', | ||
8 | # stdout holds error messages. Error code indicates success or | ||
9 | # failure. | ||
10 | # | ||
11 | # NOTE: this is a pure, old fashioned, awk script. It will | ||
12 | # work with any awk | ||
13 | |||
14 | BEGIN{ | ||
15 | err=0 | ||
16 | master="" # master file | ||
17 | official[1] = "" # defined symbols from master file | ||
18 | symbol[1] = "" # defined symbols from png.h | ||
19 | removed[1] = "" # removed symbols from png.h | ||
20 | lasto = 0 # last ordinal value from png.h | ||
21 | mastero = 0 # highest ordinal in master file | ||
22 | symbolo = 0 # highest ordinal in png.h | ||
23 | missing = "error"# log an error on missing symbols | ||
24 | } | ||
25 | |||
26 | # Read existing definitions from the master file (the first | ||
27 | # file on the command line.) This must be a def file and it | ||
28 | # has definition lines (others are ignored) of the form: | ||
29 | # | ||
30 | # symbol @ordinal | ||
31 | # | ||
32 | master == "" { | ||
33 | master = FILENAME | ||
34 | } | ||
35 | FILENAME==master && NF==2 && $2~/^@/ && $1!~/^;/ { | ||
36 | o=0+substr($2,2) | ||
37 | if (o > 0) { | ||
38 | if (official[o] == "") { | ||
39 | official[o] = $1 | ||
40 | if (o > mastero) mastero = o | ||
41 | next | ||
42 | } else | ||
43 | print master ": duplicated symbol:", official[o] ":", $0 | ||
44 | } else | ||
45 | print master ": bad export line format:", $0 | ||
46 | err = 1 | ||
47 | } | ||
48 | FILENAME==master && $1==";missing" && NF==2{ | ||
49 | # This allows the master file to control how missing symbols | ||
50 | # are handled; symbols that aren't in either the master or | ||
51 | # the new file. Valid values are 'ignore', 'warning' and | ||
52 | # 'error' | ||
53 | missing = $2 | ||
54 | } | ||
55 | FILENAME==master { | ||
56 | next | ||
57 | } | ||
58 | |||
59 | # Read new definitions, these are free form but the lines must | ||
60 | # just be symbol definitions. Lines will be commented out for | ||
61 | # 'removed' symbols, introduced in png.h using PNG_REMOVED rather | ||
62 | # than PNG_EXPORT. Use symbols.dfn or pngwin.dfn to generate the | ||
63 | # input file. | ||
64 | # | ||
65 | # symbol @ordinal # two fields, exported symbol | ||
66 | # ; symbol @ordinal # three fields, removed symbol | ||
67 | # ; @ordinal # two fields, the last ordinal | ||
68 | NF==2 && $1 == ";" && $2 ~ /^@[1-9][0-9]*$/ { # last ordinal | ||
69 | o=0+substr($2,2) | ||
70 | if (lasto == 0 || lasto == o) | ||
71 | lasto=o | ||
72 | else { | ||
73 | print "png.h: duplicated last ordinal:", lasto, o | ||
74 | err = 1 | ||
75 | } | ||
76 | next | ||
77 | } | ||
78 | NF==3 && $1 == ";" && $3 ~ /^@[1-9][0-9]*$/ { # removed symbol | ||
79 | o=0+substr($3,2) | ||
80 | if (removed[o] == "" || removed[o] == $2) { | ||
81 | removed[o] = $2 | ||
82 | if (o > symbolo) symbolo = o | ||
83 | } else { | ||
84 | print "png.h: duplicated removed symbol", o ": '" removed[o] "' != '" $2 "'" | ||
85 | err = 1 | ||
86 | } | ||
87 | next | ||
88 | } | ||
89 | NF==2 && $2 ~ /^@[1-9][0-9]*$/ { # exported symbol | ||
90 | o=0+substr($2,2) | ||
91 | if (symbol[o] == "" || symbol[o] == $1) { | ||
92 | symbol[o] = $1 | ||
93 | if (o > symbolo) symbolo = o | ||
94 | } else { | ||
95 | print "png.h: duplicated symbol", o ": '" symbol[o] "' != '" $1 "'" | ||
96 | err = 1 | ||
97 | } | ||
98 | } | ||
99 | { | ||
100 | next # skip all other lines | ||
101 | } | ||
102 | |||
103 | # At the end check for symbols marked as both duplicated and removed | ||
104 | END{ | ||
105 | if (symbolo > lasto) { | ||
106 | print "highest symbol ordinal in png.h,", symbolo ", exceeds last ordinal from png.h", lasto | ||
107 | err = 1 | ||
108 | } | ||
109 | if (mastero > lasto) { | ||
110 | print "highest symbol ordinal in", master ",", mastero ", exceeds last ordinal from png.h", lasto | ||
111 | err = 1 | ||
112 | } | ||
113 | unexported=0 | ||
114 | for (o=1; o<=lasto; ++o) { | ||
115 | if (symbol[o] == "" && removed[o] == "") { | ||
116 | if (unexported == 0) unexported = o | ||
117 | if (official[o] == "") { | ||
118 | # missing in export list too, so ok | ||
119 | if (o < lasto) continue | ||
120 | } | ||
121 | } | ||
122 | if (unexported != 0) { | ||
123 | # Symbols in the .def but not in the new file are errors, but | ||
124 | # the 'unexported' symbols aren't in either. By default this | ||
125 | # is an error too (see the setting of 'missing' at the start), | ||
126 | # but this can be reset on the command line or by stuff in the | ||
127 | # file - see the comments above. | ||
128 | if (missing != "ignore") { | ||
129 | if (o-1 > unexported) | ||
130 | print "png.h:", missing ": missing symbols:", unexported "-" o-1 | ||
131 | else | ||
132 | print "png.h:", missing ": missing symbol:", unexported | ||
133 | if (missing != "warning") | ||
134 | err = 1 | ||
135 | } | ||
136 | unexported = 0 | ||
137 | } | ||
138 | if (symbol[o] != "" && removed[o] != "") { | ||
139 | print "png.h: symbol", o, "both exported as '" symbol[o] "' and removed as '" removed[o] "'" | ||
140 | err = 1 | ||
141 | } else if (symbol[o] != official[o]) { | ||
142 | # either the symbol is missing somewhere or it changed | ||
143 | err = 1 | ||
144 | if (symbol[o] == "") | ||
145 | print "png.h: symbol", o, "is exported as '" official[o] "' in", master | ||
146 | else if (official[o] == "") | ||
147 | print "png.h: exported symbol", o, "'" symbol[o] "' not present in", master | ||
148 | else | ||
149 | print "png.h: exported symbol", o, "'" symbol[o] "' exists as '" official[o] "' in", master | ||
150 | } | ||
151 | |||
152 | # Finally generate symbols.new | ||
153 | if (symbol[o] != "") | ||
154 | print " " symbol[o], "@" o > "symbols.new" | ||
155 | } | ||
156 | |||
157 | if (err != 0) { | ||
158 | print "*** A new list is in symbols.new ***" | ||
159 | exit 1 | ||
160 | } | ||
161 | } | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/chkfmt b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/chkfmt new file mode 100644 index 0000000..80b4917 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/chkfmt | |||
@@ -0,0 +1,137 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Check the format of the source files in the current directory - checks for a | ||
4 | # line length of 80 characters max and no tab characters. | ||
5 | # | ||
6 | # Optionally arguments are files or directories to check. | ||
7 | # | ||
8 | # -v: output the long lines (makes fixing them easier) | ||
9 | # -e: spawn an editor for each file that needs a change ($EDITOR must be | ||
10 | # defined). When using -e the script MUST be run from an interactive | ||
11 | # command line. | ||
12 | verbose= | ||
13 | edit= | ||
14 | vers= | ||
15 | test "$1" = "-v" && { | ||
16 | shift | ||
17 | verbose=yes | ||
18 | } | ||
19 | test "$1" = "-e" && { | ||
20 | shift | ||
21 | if test -n "$EDITOR" | ||
22 | then | ||
23 | edit=yes | ||
24 | |||
25 | # Copy the standard streams for the editor | ||
26 | exec 3>&0 4>&1 5>&2 | ||
27 | else | ||
28 | echo "chkfmt -e: EDITOR must be defined" >&2 | ||
29 | exit 1 | ||
30 | fi | ||
31 | } | ||
32 | |||
33 | # Function to edit a single file - if the file isn't changed ask the user | ||
34 | # whether or not to continue. This stuff only works if the script is run from | ||
35 | # the command line (otherwise, don't specify -e or you will be sorry). | ||
36 | doed(){ | ||
37 | cp "$file" "$file".orig | ||
38 | "$EDITOR" "$file" 0>&3 1>&4 2>&5 3>&- 4>&- 5>&- || exit 1 | ||
39 | if cmp -s "$file".orig "$file" | ||
40 | then | ||
41 | rm "$file".orig | ||
42 | echo -n "$file: file not changed, type anything to continue: " >&5 | ||
43 | read ans 0>&3 | ||
44 | test -n "$ans" || return 1 | ||
45 | fi | ||
46 | return 0 | ||
47 | } | ||
48 | |||
49 | # In beta versions the version string which appears in files can be a little | ||
50 | # long and cause spuriously overlong lines. To avoid this subtitute the version | ||
51 | # string with a 'standard' version a.b.cc before checking for long lines. | ||
52 | if test -r png.h | ||
53 | then | ||
54 | vers="`sed -n -e \ | ||
55 | 's/^#define PNG_LIBPNG_VER_STRING .\([0-9]\.[0-9]\.[0-9][0-9a-z]*\).$/\1/p' \ | ||
56 | png.h`" | ||
57 | echo "chkfmt: checking version $vers" | ||
58 | fi | ||
59 | if test -z "$vers" | ||
60 | then | ||
61 | echo "chkfmt: png.h not found, ignoring version number" >&2 | ||
62 | fi | ||
63 | |||
64 | test -n "$1" || set -- . | ||
65 | find "$@" \( -type d \( -name '.git' -o -name '.libs' -o -name 'projects' \) \ | ||
66 | -prune \) -o \( -type f \ | ||
67 | ! -name '*.[oa]' ! -name '*.l[oa]' ! -name '*.png' ! -name '*.out' \ | ||
68 | ! -name '*.jpg' ! -name '*.patch' ! -name '*.obj' ! -name '*.exe' \ | ||
69 | ! -name '*.com' ! -name '*.tar.*' ! -name '*.zip' ! -name '*.ico' \ | ||
70 | ! -name '*.res' ! -name '*.rc' ! -name '*.mms' ! -name '*.rej' \ | ||
71 | ! -name '*.dsp' ! -name '*.orig' ! -name '*.dfn' ! -name '*.swp' \ | ||
72 | ! -name '~*' ! -name '*.3' \ | ||
73 | ! -name 'missing' ! -name 'mkinstalldirs' ! -name 'depcomp' \ | ||
74 | ! -name 'aclocal.m4' ! -name 'install-sh' ! -name 'Makefile.in' \ | ||
75 | ! -name 'ltmain.sh' ! -name 'config*' -print \) | { | ||
76 | st=0 | ||
77 | while read file | ||
78 | do | ||
79 | case "$file" in | ||
80 | *.mak|*[Mm]akefile.*|*[Mm]akefile) | ||
81 | # Makefiles require tabs, dependency lines can be this long. | ||
82 | check_tabs= | ||
83 | line_length=100;; | ||
84 | *.awk) | ||
85 | # Includes literal tabs | ||
86 | check_tabs= | ||
87 | # The following is arbitrary | ||
88 | line_length=132;; | ||
89 | *contrib/*/*.[ch]) | ||
90 | check_tabs=yes | ||
91 | line_length=96;; | ||
92 | *) | ||
93 | check_tabs=yes | ||
94 | line_length=80;; | ||
95 | esac | ||
96 | |||
97 | # Note that vers can only contain 0-9, . and a-z | ||
98 | if test -n "$vers" | ||
99 | then | ||
100 | sed -e "s/$vers/a.b.cc/g" "$file" >"$file".$$ | ||
101 | else | ||
102 | cp "$file" "$file".$$ | ||
103 | fi | ||
104 | splt="`fold -$line_length "$file".$$ | diff -c "$file".$$ -`" | ||
105 | rm "$file".$$ | ||
106 | |||
107 | if test -n "$splt" | ||
108 | then | ||
109 | echo "$file: lines too long" | ||
110 | st=1 | ||
111 | if test -n "$EDITOR" -a -n "$edit" | ||
112 | then | ||
113 | doed "$file" || exit 1 | ||
114 | elif test -n "$verbose" | ||
115 | then | ||
116 | echo "$splt" | ||
117 | fi | ||
118 | fi | ||
119 | if test -n "$check_tabs" | ||
120 | then | ||
121 | tab="`tr -c -d '\t' <"$file"`" | ||
122 | if test -n "$tab" | ||
123 | then | ||
124 | echo "$file: file contains tab characters" | ||
125 | st=1 | ||
126 | if test -n "$EDITOR" -a -n "$edit" | ||
127 | then | ||
128 | doed "$file" || exit 1 | ||
129 | elif test -n "$verbose" | ||
130 | then | ||
131 | echo "$splt" | ||
132 | fi | ||
133 | fi | ||
134 | fi | ||
135 | done | ||
136 | exit $st | ||
137 | } | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/def.dfn b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/def.dfn new file mode 100644 index 0000000..c7ed8ab --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/def.dfn | |||
@@ -0,0 +1,38 @@ | |||
1 | /* def.dfn - define format of libpng.def | ||
2 | * | ||
3 | * Last changed in libpng version 1.5.7 [December 15, 2011] | ||
4 | * Copyright (c) 2010-2011 Glenn Randers-Pehrson | ||
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 | |||
11 | /* These macros exist to make the header and trailer shorter below: */ | ||
12 | #define S PNG_DEFN_MAGIC | ||
13 | #define E PNG_DEFN_END | ||
14 | |||
15 | /* Write the export file header: */ | ||
16 | S-;---------------------------------------------------------------E | ||
17 | S-; LIBPNG module definition file for OS/2-E | ||
18 | S-;---------------------------------------------------------------E | ||
19 | S--E | ||
20 | S-; If you give the library an explicit name one or other files-E | ||
21 | S-; may need modifying to support the new name on one or more-E | ||
22 | S-; systems.-E | ||
23 | S-LIBRARY-E | ||
24 | S-OS2 DESCRIPTION "PNG image compression library"-E | ||
25 | S-OS2 CODE PRELOAD MOVEABLE DISCARDABLE-E | ||
26 | S--E | ||
27 | S-EXPORTS-E | ||
28 | S-;Version 1.5.0beta58-E | ||
29 | |||
30 | /* NOTE: PNG_JOIN is interpreted by the calling script as a signal to | ||
31 | * join the two things on either side, so we can do symbol | ||
32 | * substitution within the name, regular C ## joins the pp-tokens, | ||
33 | * not their final values. | ||
34 | */ | ||
35 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ | ||
36 | PNG_DEFN_MAGIC- SYMBOL_PREFIX PNG_JOIN name-PNG_DEFN_END | ||
37 | |||
38 | #include "../png.h" | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/descrip.mms b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/descrip.mms new file mode 100644 index 0000000..9ba2d5f --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/descrip.mms | |||
@@ -0,0 +1,52 @@ | |||
1 | |||
2 | cc_defs = /inc=$(ZLIBSRC) | ||
3 | c_deb = | ||
4 | |||
5 | .ifdef __DECC__ | ||
6 | pref = /prefix=all | ||
7 | .endif | ||
8 | |||
9 | |||
10 | |||
11 | OBJS = png.obj, pngset.obj, pngget.obj, pngrutil.obj, pngtrans.obj,\ | ||
12 | pngwutil.obj, pngread.obj, pngmem.obj, pngwrite.obj, pngrtran.obj,\ | ||
13 | pngwtran.obj, pngrio.obj, pngwio.obj, pngerror.obj, pngpread.obj | ||
14 | |||
15 | |||
16 | CFLAGS= $(C_DEB) $(CC_DEFS) $(PREF) | ||
17 | |||
18 | all : pngtest.exe libpng.olb | ||
19 | @ write sys$output " pngtest available" | ||
20 | |||
21 | libpng.olb : libpng.olb($(OBJS)) | ||
22 | @ write sys$output " Libpng available" | ||
23 | |||
24 | |||
25 | pngtest.exe : pngtest.obj libpng.olb | ||
26 | link pngtest,libpng.olb/lib,$(ZLIBSRC)libz.olb/lib | ||
27 | |||
28 | test : pngtest.exe | ||
29 | run pngtest | ||
30 | |||
31 | clean : | ||
32 | delete *.obj;*,*.exe; | ||
33 | |||
34 | |||
35 | # Other dependencies. | ||
36 | png.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
37 | pngpread.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
38 | pngset.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
39 | pngget.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
40 | pngread.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
41 | pngrtran.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
42 | pngrutil.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
43 | pngerror.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
44 | pngmem.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
45 | pngrio.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
46 | pngwio.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
47 | pngtrans.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
48 | pngwrite.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
49 | pngwtran.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
50 | pngwutil.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h, pnginfo.h, pngdebug.h | ||
51 | |||
52 | pngtest.obj : png.h, pngconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng-config-body.in b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng-config-body.in new file mode 100644 index 0000000..0db8898 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng-config-body.in | |||
@@ -0,0 +1,96 @@ | |||
1 | |||
2 | usage() | ||
3 | { | ||
4 | cat <<EOF | ||
5 | Usage: libpng-config [OPTION] ... | ||
6 | |||
7 | Known values for OPTION are: | ||
8 | |||
9 | --prefix print libpng prefix | ||
10 | --libdir print path to directory containing library | ||
11 | --libs print library linking information | ||
12 | --ccopts print compiler options | ||
13 | --cppflags print pre-processor flags | ||
14 | --cflags print preprocessor flags, I_opts, and compiler options | ||
15 | --I_opts print "-I" include options | ||
16 | --L_opts print linker "-L" flags for dynamic linking | ||
17 | --R_opts print dynamic linker "-R" or "-rpath" flags | ||
18 | --ldopts print linker options | ||
19 | --ldflags print linker flags (ldopts, L_opts, R_opts, and libs) | ||
20 | --static revise subsequent outputs for static linking | ||
21 | --help print this help and exit | ||
22 | --version print version information | ||
23 | EOF | ||
24 | |||
25 | exit $1 | ||
26 | } | ||
27 | |||
28 | if test $# -eq 0; then | ||
29 | usage 1 | ||
30 | fi | ||
31 | |||
32 | while test $# -gt 0; do | ||
33 | case "$1" in | ||
34 | |||
35 | --prefix) | ||
36 | echo ${prefix} | ||
37 | ;; | ||
38 | |||
39 | --version) | ||
40 | echo ${version} | ||
41 | exit 0 | ||
42 | ;; | ||
43 | |||
44 | --help) | ||
45 | usage 0 | ||
46 | ;; | ||
47 | |||
48 | --ccopts) | ||
49 | echo ${ccopts} | ||
50 | ;; | ||
51 | |||
52 | --cppflags) | ||
53 | echo ${cppflags} | ||
54 | ;; | ||
55 | |||
56 | --cflags) | ||
57 | echo ${I_opts} ${cppflags} ${ccopts} | ||
58 | ;; | ||
59 | |||
60 | --libdir) | ||
61 | echo ${libdir} | ||
62 | ;; | ||
63 | |||
64 | --libs) | ||
65 | echo ${libs} | ||
66 | ;; | ||
67 | |||
68 | --I_opts) | ||
69 | echo ${I_opts} | ||
70 | ;; | ||
71 | |||
72 | --L_opts) | ||
73 | echo ${L_opts} | ||
74 | ;; | ||
75 | |||
76 | --R_opts) | ||
77 | echo ${R_opts} | ||
78 | ;; | ||
79 | |||
80 | --ldflags) | ||
81 | echo ${ldflags} ${L_opts} ${R_opts} ${libs} | ||
82 | ;; | ||
83 | |||
84 | --static) | ||
85 | R_opts="" | ||
86 | ;; | ||
87 | |||
88 | *) | ||
89 | usage | ||
90 | exit 1 | ||
91 | ;; | ||
92 | esac | ||
93 | shift | ||
94 | done | ||
95 | |||
96 | exit 0 | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng-config-head.in b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng-config-head.in new file mode 100644 index 0000000..154bb39 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng-config-head.in | |||
@@ -0,0 +1,24 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | # libpng-config | ||
4 | # provides configuration info for libpng. | ||
5 | |||
6 | # Copyright (C) 2002 Glenn Randers-Pehrson | ||
7 | |||
8 | # This code is released under the libpng license. | ||
9 | # For conditions of distribution and use, see the disclaimer | ||
10 | # and license in png.h | ||
11 | |||
12 | # Modeled after libxml-config. | ||
13 | |||
14 | version=1.5.9 | ||
15 | prefix="" | ||
16 | libdir="" | ||
17 | libs="" | ||
18 | I_opts="" | ||
19 | L_opts="" | ||
20 | R_opts="" | ||
21 | cppflags="" | ||
22 | ccopts="" | ||
23 | ldopts="" | ||
24 | |||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng.pc.in b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng.pc.in new file mode 100644 index 0000000..2f647c2 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/libpng.pc.in | |||
@@ -0,0 +1,10 @@ | |||
1 | prefix=@prefix@ | ||
2 | exec_prefix=@exec_prefix@ | ||
3 | libdir=@libdir@ | ||
4 | includedir=@includedir@/libpng15 | ||
5 | |||
6 | Name: libpng | ||
7 | Description: Loads and saves PNG files | ||
8 | Version: 1.5.9 | ||
9 | Libs: -L${libdir} -lpng15 | ||
10 | Cflags: -I${includedir} | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.32sunu b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.32sunu new file mode 100644 index 0000000..a6279ad --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.32sunu | |||
@@ -0,0 +1,241 @@ | |||
1 | # makefile for libpng on Solaris 2.x with cc | ||
2 | # Contributed by William L. Sebok, based on makefile.linux | ||
3 | # Copyright (C) 2002, 2006, 2010-2011 Glenn Randers-Pehrson | ||
4 | # Copyright (C) 1998 Greg Roelofs | ||
5 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
6 | |||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # Library name: | ||
12 | LIBNAME=libpng15 | ||
13 | PNGMAJ = 15 | ||
14 | |||
15 | # Shared library names: | ||
16 | LIBSO=$(LIBNAME).so | ||
17 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
18 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
19 | OLDSO=libpng.so | ||
20 | |||
21 | # Utilities: | ||
22 | CC=cc | ||
23 | AR_RC=ar rc | ||
24 | MKDIR_P=mkdir -p | ||
25 | LN_SF=ln -f -s | ||
26 | RANLIB=echo | ||
27 | RM_F=/bin/rm -f | ||
28 | |||
29 | SUN_CC_FLAGS=-fast -xtarget=ultra | ||
30 | SUN_LD_FLAGS=-fast -xtarget=ultra | ||
31 | |||
32 | # where make install puts libpng.a, libpng15.so and libpng15/png.h | ||
33 | prefix=/a | ||
34 | exec_prefix=$(prefix) | ||
35 | |||
36 | # Where the zlib library and include files are located | ||
37 | # Changing these to ../zlib poses a security risk. If you want | ||
38 | # to have zlib in an adjacent directory, specify the full path instead of "..". | ||
39 | #ZLIBLIB=../zlib | ||
40 | #ZLIBINC=../zlib | ||
41 | |||
42 | ZLIBLIB=/usr/lib | ||
43 | ZLIBINC=/usr/include | ||
44 | |||
45 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
46 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
47 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
48 | CFLAGS=-I$(ZLIBINC) $(SUN_CC_FLAGS) \ | ||
49 | # $(WARNMORE) -g -DPNG_DEBUG=5 | ||
50 | LDFLAGS=$(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) libpng.a -lz -lm | ||
51 | |||
52 | INCPATH=$(prefix)/include | ||
53 | LIBPATH=$(exec_prefix)/lib | ||
54 | MANPATH=$(prefix)/man | ||
55 | BINPATH=$(exec_prefix)/bin | ||
56 | |||
57 | # override DESTDIR= on the make install command line to easily support | ||
58 | # installing into a temporary location. Example: | ||
59 | # | ||
60 | # make install DESTDIR=/tmp/build/libpng | ||
61 | # | ||
62 | # If you're going to install into a temporary location | ||
63 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
64 | # you execute make install. | ||
65 | DESTDIR= | ||
66 | |||
67 | DB=$(DESTDIR)$(BINPATH) | ||
68 | DI=$(DESTDIR)$(INCPATH) | ||
69 | DL=$(DESTDIR)$(LIBPATH) | ||
70 | DM=$(DESTDIR)$(MANPATH) | ||
71 | |||
72 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
73 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
74 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
75 | |||
76 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
77 | |||
78 | .SUFFIXES: .c .o .pic.o | ||
79 | |||
80 | .c.pic.o: | ||
81 | $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c | ||
82 | |||
83 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
84 | |||
85 | include scripts/pnglibconf.mak | ||
86 | DELETE = $(RM_F) | ||
87 | DFNFLAGS = $(DEFS) $(CPPFLAGS) | ||
88 | |||
89 | libpng.a: $(OBJS) | ||
90 | $(AR_RC) $@ $(OBJS) | ||
91 | $(RANLIB) $@ | ||
92 | |||
93 | libpng.pc: | ||
94 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
95 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
96 | -e s!@libdir@!$(LIBPATH)! \ | ||
97 | -e s!@includedir@!$(INCPATH)! \ | ||
98 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
99 | |||
100 | libpng-config: | ||
101 | ( cat scripts/libpng-config-head.in; \ | ||
102 | echo prefix=\"$(prefix)\"; \ | ||
103 | echo libdir=\"$(LIBPATH)\"; \ | ||
104 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
105 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
106 | echo R_opts=\"-R$(LIBPATH)\"; \ | ||
107 | echo ccopts=\"-xtarget=ultra\"; \ | ||
108 | echo ldopts=\"-xtarget=ultra\"; \ | ||
109 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
110 | cat scripts/libpng-config-body.in ) > libpng-config | ||
111 | chmod +x libpng-config | ||
112 | |||
113 | $(LIBSO): $(LIBSOMAJ) | ||
114 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
115 | |||
116 | $(LIBSOMAJ): $(OBJSDLL) | ||
117 | @case "`type ld`" in *ucb*) \ | ||
118 | echo; \ | ||
119 | echo '## WARNING:'; \ | ||
120 | echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \ | ||
121 | echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \ | ||
122 | echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \ | ||
123 | echo '## The environment variable LD_LIBRARY_PATH should not be set'; \ | ||
124 | echo '## at all. If it is, things are likely to break because of'; \ | ||
125 | echo '## the libucb dependency that is created.'; \ | ||
126 | echo; \ | ||
127 | ;; \ | ||
128 | esac | ||
129 | $(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h $(LIBSOMAJ) \ | ||
130 | -o $(LIBSOMAJ) $(OBJSDLL) | ||
131 | |||
132 | pngtest: pngtest.o $(LIBSO) | ||
133 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
134 | |||
135 | test: pngtest | ||
136 | ./pngtest | ||
137 | |||
138 | install-headers: png.h pngconf.h pnglibconf.h | ||
139 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
140 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
141 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
142 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
143 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
144 | -@$(RM_F) $(DI)/libpng | ||
145 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
146 | |||
147 | install-static: install-headers libpng.a | ||
148 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
149 | cp libpng.a $(DL)/$(LIBNAME).a | ||
150 | chmod 644 $(DL)/$(LIBNAME).a | ||
151 | -@$(RM_F) $(DL)/libpng.a | ||
152 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
153 | |||
154 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
155 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
156 | -@$(RM_F) $(DL)/$(LIBSO) | ||
157 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
158 | -@$(RM_F) $(DL)/$(OLDSO) | ||
159 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
160 | chmod 755 $(DL)/$(LIBSOREL) | ||
161 | (cd $(DL); \ | ||
162 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
163 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
164 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
165 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
166 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
167 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
168 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
169 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
170 | |||
171 | install-man: libpng.3 libpngpf.3 png.5 | ||
172 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
173 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
174 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
175 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
176 | cp libpng.3 $(DM)/man3 | ||
177 | cp libpngpf.3 $(DM)/man3 | ||
178 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
179 | -@$(RM_F) $(DM)/man5/png.5 | ||
180 | cp png.5 $(DM)/man5 | ||
181 | |||
182 | install-config: libpng-config | ||
183 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
184 | -@$(RM_F) $(DB)/libpng-config | ||
185 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
186 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
187 | chmod 755 $(DB)/$(LIBNAME)-config | ||
188 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
189 | |||
190 | install: install-static install-shared install-man install-config | ||
191 | |||
192 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
193 | # move the library to its final location. Use test-dd to test it | ||
194 | # before then. | ||
195 | |||
196 | test-dd: | ||
197 | echo | ||
198 | echo Testing installed dynamic shared library in $(DL). | ||
199 | $(CC) $(SUN_CC_FLAGS) -I$(DI) -I$(ZLIBINC) \ | ||
200 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
201 | -o pngtestd -L$(DL) -R$(DL) `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
202 | $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) | ||
203 | ./pngtestd pngtest.png | ||
204 | |||
205 | test-installed: | ||
206 | echo | ||
207 | echo Testing installed dynamic shared library. | ||
208 | $(CC) $(SUN_CC_FLAGS) -I$(ZLIBINC) \ | ||
209 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
210 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
211 | $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) | ||
212 | ./pngtesti pngtest.png | ||
213 | |||
214 | clean: | ||
215 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ | ||
216 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
217 | libpng.pc | ||
218 | |||
219 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
220 | writelock: | ||
221 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
222 | |||
223 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
224 | |||
225 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
228 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
229 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
230 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
231 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
232 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
233 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
234 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
235 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
236 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
237 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
238 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
239 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
240 | |||
241 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.64sunu b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.64sunu new file mode 100644 index 0000000..5a5195d --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.64sunu | |||
@@ -0,0 +1,241 @@ | |||
1 | # makefile for libpng on Solaris 2.x with cc | ||
2 | # Contributed by William L. Sebok, based on makefile.linux | ||
3 | # Copyright (C) 2002, 2006, 2010-2011 Glenn Randers-Pehrson | ||
4 | # Copyright (C) 1998 Greg Roelofs | ||
5 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
6 | |||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # Library name: | ||
12 | LIBNAME=libpng15 | ||
13 | PNGMAJ = 15 | ||
14 | |||
15 | # Shared library names: | ||
16 | LIBSO=$(LIBNAME).so | ||
17 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
18 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
19 | OLDSO=libpng.so | ||
20 | |||
21 | # Utilities: | ||
22 | CC=cc | ||
23 | AR_RC=ar rc | ||
24 | MKDIR_P=mkdir -p | ||
25 | LN_SF=ln -f -s | ||
26 | RANLIB=echo | ||
27 | RM_F=/bin/rm -f | ||
28 | |||
29 | SUN_CC_FLAGS=-fast -xtarget=ultra -xarch=v9 | ||
30 | SUN_LD_FLAGS=-fast -xtarget=ultra -xarch=v9 | ||
31 | |||
32 | # where make install puts libpng.a, libpng15.so and libpng15/png.h | ||
33 | prefix=/a | ||
34 | exec_prefix=$(prefix) | ||
35 | |||
36 | # Where the zlib library and include files are located | ||
37 | # Changing these to ../zlib poses a security risk. If you want | ||
38 | # to have zlib in an adjacent directory, specify the full path instead of "..". | ||
39 | #ZLIBLIB=../zlib | ||
40 | #ZLIBINC=../zlib | ||
41 | |||
42 | ZLIBLIB=/usr/lib | ||
43 | ZLIBINC=/usr/include | ||
44 | |||
45 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
46 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
47 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
48 | CFLAGS=-I$(ZLIBINC) $(SUN_CC_FLAGS) \ | ||
49 | # $(WARNMORE) -g -DPNG_DEBUG=5 | ||
50 | LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng15 -lz -lm | ||
51 | |||
52 | INCPATH=$(prefix)/include | ||
53 | LIBPATH=$(exec_prefix)/lib | ||
54 | MANPATH=$(prefix)/man | ||
55 | BINPATH=$(exec_prefix)/bin | ||
56 | |||
57 | # override DESTDIR= on the make install command line to easily support | ||
58 | # installing into a temporary location. Example: | ||
59 | # | ||
60 | # make install DESTDIR=/tmp/build/libpng | ||
61 | # | ||
62 | # If you're going to install into a temporary location | ||
63 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
64 | # you execute make install. | ||
65 | DESTDIR= | ||
66 | |||
67 | DB=$(DESTDIR)$(BINPATH) | ||
68 | DI=$(DESTDIR)$(INCPATH) | ||
69 | DL=$(DESTDIR)$(LIBPATH) | ||
70 | DM=$(DESTDIR)$(MANPATH) | ||
71 | |||
72 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
73 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
74 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
75 | |||
76 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
77 | |||
78 | .SUFFIXES: .c .o .pic.o | ||
79 | |||
80 | .c.pic.o: | ||
81 | $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c | ||
82 | |||
83 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
84 | |||
85 | include scripts/pnglibconf.mak | ||
86 | DELETE = $(RM_F) | ||
87 | DFNFLAGS = $(DEFS) $(CPPFLAGS) | ||
88 | |||
89 | libpng.a: $(OBJS) | ||
90 | $(AR_RC) $@ $(OBJS) | ||
91 | $(RANLIB) $@ | ||
92 | |||
93 | libpng.pc: | ||
94 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
95 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
96 | -e s!@libdir@!$(LIBPATH)! \ | ||
97 | -e s!@includedir@!$(INCPATH)! \ | ||
98 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
99 | |||
100 | libpng-config: | ||
101 | ( cat scripts/libpng-config-head.in; \ | ||
102 | echo prefix=\"$(prefix)\"; \ | ||
103 | echo libdir=\"$(LIBPATH)\"; \ | ||
104 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
105 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
106 | echo R_opts=\"-R$(LIBPATH)\"; \ | ||
107 | echo ccopts=\"-xtarget=ultra -xarch=v9\"; \ | ||
108 | echo ldopts=\"-xtarget=ultra -xarch=v9\"; \ | ||
109 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
110 | cat scripts/libpng-config-body.in ) > libpng-config | ||
111 | chmod +x libpng-config | ||
112 | |||
113 | $(LIBSO): $(LIBSOMAJ) | ||
114 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
115 | |||
116 | $(LIBSOMAJ): $(OBJSDLL) | ||
117 | @case "`type ld`" in *ucb*) \ | ||
118 | echo; \ | ||
119 | echo '## WARNING:'; \ | ||
120 | echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \ | ||
121 | echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \ | ||
122 | echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \ | ||
123 | echo '## The environment variable LD_LIBRARY_PATH should not be set'; \ | ||
124 | echo '## at all. If it is, things are likely to break because of'; \ | ||
125 | echo '## the libucb dependency that is created.'; \ | ||
126 | echo; \ | ||
127 | ;; \ | ||
128 | esac | ||
129 | $(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h $(LIBSOMAJ) \ | ||
130 | -o $(LIBSOMAJ) $(OBJSDLL) | ||
131 | |||
132 | pngtest: pngtest.o $(LIBSO) | ||
133 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
134 | |||
135 | test: pngtest | ||
136 | ./pngtest | ||
137 | |||
138 | install-headers: png.h pngconf.h | ||
139 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
140 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
141 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
142 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
143 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
144 | -@$(RM_F) $(DI)/libpng | ||
145 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
146 | |||
147 | install-static: install-headers libpng.a | ||
148 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
149 | cp libpng.a $(DL)/$(LIBNAME).a | ||
150 | chmod 644 $(DL)/$(LIBNAME).a | ||
151 | -@$(RM_F) $(DL)/libpng.a | ||
152 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
153 | |||
154 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
155 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
156 | -@$(RM_F) $(DL)/$(LIBSO) | ||
157 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
158 | -@$(RM_F) $(DL)/$(OLDSO) | ||
159 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
160 | chmod 755 $(DL)/$(LIBSOREL) | ||
161 | (cd $(DL); \ | ||
162 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
163 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
164 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
165 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
166 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
167 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
168 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
169 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
170 | |||
171 | install-man: libpng.3 libpngpf.3 png.5 | ||
172 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
173 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
174 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
175 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
176 | cp libpng.3 $(DM)/man3 | ||
177 | cp libpngpf.3 $(DM)/man3 | ||
178 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
179 | -@$(RM_F) $(DM)/man5/png.5 | ||
180 | cp png.5 $(DM)/man5 | ||
181 | |||
182 | install-config: libpng-config | ||
183 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
184 | -@$(RM_F) $(DB)/libpng-config | ||
185 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
186 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
187 | chmod 755 $(DB)/$(LIBNAME)-config | ||
188 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
189 | |||
190 | install: install-static install-shared install-man install-config | ||
191 | |||
192 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
193 | # move the library to its final location. Use test-dd to test it | ||
194 | # before then. | ||
195 | |||
196 | test-dd: | ||
197 | echo | ||
198 | echo Testing installed dynamic shared library in $(DL). | ||
199 | $(CC) $(SUN_CC_FLAGS) -I$(DI) -I$(ZLIBINC) \ | ||
200 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
201 | -o pngtestd -L$(DL) -R$(DL) `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
202 | $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) | ||
203 | ./pngtestd pngtest.png | ||
204 | |||
205 | test-installed: | ||
206 | echo | ||
207 | echo Testing installed dynamic shared library. | ||
208 | $(CC) $(SUN_CC_FLAGS) -I$(ZLIBINC) \ | ||
209 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
210 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
211 | $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) | ||
212 | ./pngtesti pngtest.png | ||
213 | |||
214 | clean: | ||
215 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ | ||
216 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
217 | libpng.pc | ||
218 | |||
219 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
220 | writelock: | ||
221 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
222 | |||
223 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
224 | |||
225 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
228 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
229 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
230 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
231 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
232 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
233 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
234 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
235 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
236 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
237 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
238 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
239 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
240 | |||
241 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.acorn b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.acorn new file mode 100644 index 0000000..4181913 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.acorn | |||
@@ -0,0 +1,57 @@ | |||
1 | # Project: libpng | ||
2 | |||
3 | |||
4 | # Toolflags: | ||
5 | CCflags = -c -depend !Depend -IC:,Zlib: -g -throwback -DRISCOS -fnah | ||
6 | C++flags = -c -depend !Depend -IC: -throwback | ||
7 | Linkflags = -aif -c++ -o $@ | ||
8 | ObjAsmflags = -throwback -NoCache -depend !Depend | ||
9 | CMHGflags = | ||
10 | LibFileflags = -c -l -o $@ | ||
11 | Squeezeflags = -o $@ | ||
12 | |||
13 | # Final targets: | ||
14 | @.libpng-lib: @.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \ | ||
15 | @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \ | ||
16 | @.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil | ||
17 | LibFile $(LibFileflags) @.o.png @.o.pngerror @.o.pngrio @.o.pngrtran \ | ||
18 | @.o.pngmem @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngwio \ | ||
19 | @.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil | ||
20 | @.mm-libpng-lib: @.mm.png @.mm.pngerror @.mm.pngrio @.mm.pngwio @.mm.pngmem \ | ||
21 | @.mm.pngpread @.mm.pngset @.mm.pngget @.mm.pngread @.mm.pngrtran \ | ||
22 | @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite @.mm.pngwtran @.mm.pngwutil | ||
23 | LibFile $(LibFileflags) @.mm.png @.mm.pngerror @.mm.pngrio \ | ||
24 | @.mm.pngwio @.mm.pngmem @.mm.pngpread @.mm.pngset @.mm.pngget \ | ||
25 | @.mm.pngread @.mm.pngrtran @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite \ | ||
26 | @.mm.pngwtran @.mm.pngwutil | ||
27 | |||
28 | |||
29 | # User-editable dependencies: | ||
30 | # (C) Copyright 1997 Tom Tanner | ||
31 | Test: @.pngtest | ||
32 | <Prefix$Dir>.pngtest | ||
33 | @remove <Prefix$Dir>.pngtest | ||
34 | |||
35 | #It would be nice if you could stop "make" listing from here on! | ||
36 | @.pngtest: @.o.pngtest @.libpng-lib C:o.Stubs Zlib:zlib_lib | ||
37 | Link $(Linkflags) @.o.pngtest @.libpng-lib C:o.Stubs Zlib:zlib_lib | ||
38 | |||
39 | .SUFFIXES: .o .mm .c | ||
40 | |||
41 | .c.mm: | ||
42 | MemCheck.CC cc $(ccflags) -o $@ LibPng:$< | ||
43 | .c.o: | ||
44 | cc $(ccflags) -o $@ $< | ||
45 | |||
46 | # See scripts.mak.libpngconf for how to generate this: | ||
47 | @.h.libpngconf: @.scripts.h.libpngconf | ||
48 | copy @.scripts.h.libpngconf $@ | ||
49 | |||
50 | # Static dependencies: | ||
51 | @.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \ | ||
52 | @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \ | ||
53 | @.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil \ | ||
54 | @.o.pngtest: @.h.libpngconf | ||
55 | |||
56 | |||
57 | # Dynamic dependencies: | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.aix b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.aix new file mode 100644 index 0000000..1b1e18f --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.aix | |||
@@ -0,0 +1,121 @@ | |||
1 | # makefile for libpng using gcc (generic, static library) | ||
2 | # Copyright (C) 2002, 2006-2009 Glenn Randers-Pehrson | ||
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 | # | ||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # Location of the zlib library and include files | ||
12 | ZLIBINC = ../zlib | ||
13 | ZLIBLIB = ../zlib | ||
14 | |||
15 | # Compiler, linker, lib and other tools | ||
16 | CC = gcc | ||
17 | LD = $(CC) | ||
18 | AR_RC = ar rcs | ||
19 | MKDIR_P = mkdir -p | ||
20 | RANLIB = ranlib | ||
21 | RM_F = rm -f | ||
22 | LN_SF = ln -f -s | ||
23 | |||
24 | LIBNAME=libpng15 | ||
25 | PNGMAJ = 15 | ||
26 | |||
27 | prefix=/usr/local | ||
28 | INCPATH=$(prefix)/include | ||
29 | LIBPATH=$(prefix)/lib | ||
30 | |||
31 | # override DESTDIR= on the make install command line to easily support | ||
32 | # installing into a temporary location. Example: | ||
33 | # | ||
34 | # make install DESTDIR=/tmp/build/libpng | ||
35 | # | ||
36 | # If you're going to install into a temporary location | ||
37 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
38 | # you execute make install. | ||
39 | DESTDIR= | ||
40 | |||
41 | DI=$(DESTDIR)$(INCPATH) | ||
42 | DL=$(DESTDIR)$(LIBPATH) | ||
43 | |||
44 | CDEBUG = -g -DPNG_DEBUG=5 | ||
45 | LDDEBUG = | ||
46 | CRELEASE = -O2 | ||
47 | LDRELEASE = -s | ||
48 | WARNMORE=-W -Wall | ||
49 | CFLAGS = -I$(ZLIBINC) $(WARNMORE) $(CRELEASE) | ||
50 | LDFLAGS = -L. -L$(ZLIBLIB) -lpng15 -lz -lm $(LDRELEASE) | ||
51 | |||
52 | # File extensions | ||
53 | O=.o | ||
54 | A=.a | ||
55 | E= | ||
56 | |||
57 | # Variables | ||
58 | OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \ | ||
59 | pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \ | ||
60 | pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O) | ||
61 | |||
62 | # Targets | ||
63 | all: $(LIBNAME)$(A) pngtest$(E) | ||
64 | |||
65 | include scripts/pnglibconf.mak | ||
66 | REMOVE = $(RM_F) | ||
67 | DFNFLAGS = $(DEFS) $(CPPFLAGS) | ||
68 | |||
69 | $(LIBNAME)$(A): $(OBJS) | ||
70 | $(AR_RC) $@ $(OBJS) | ||
71 | $(RANLIB) $@ | ||
72 | |||
73 | test: pngtest$(E) | ||
74 | ./pngtest$(E) | ||
75 | |||
76 | pngtest$(E): pngtest$(O) $(LIBNAME)$(A) | ||
77 | $(LD) -o $@ pngtest$(O) $(LDFLAGS) | ||
78 | |||
79 | install: $(LIBNAME)$(A) | ||
80 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
81 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
82 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
83 | -@$(RM_F) $(DI)/$(LIBNAME)/png.h | ||
84 | -@$(RM_F) $(DI)/$(LIBNAME)/pngconf.h | ||
85 | -@$(RM_F) $(DI)/$(LIBNAME)/pnglibconf.h | ||
86 | -@$(RM_F) $(DI)/png.h | ||
87 | -@$(RM_F) $(DI)/pngconf.h | ||
88 | -@$(RM_F) $(DI)/pnglibconf.h | ||
89 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
90 | chmod 644 $(DI)/$(LIBNAME)/png.h \ | ||
91 | $(DI)/$(LIBNAME)/pngconf.h \ | ||
92 | $(DI)/$(LIBNAME)/pnglibconf.h | ||
93 | -@$(RM_F) -r $(DI)/libpng | ||
94 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
95 | -@$(RM_F) $(DL)/$(LIBNAME)$(A) | ||
96 | -@$(RM_F) $(DL)/libpng$(A) | ||
97 | cp $(LIBNAME)$(A) $(DL)/$(LIBNAME)$(A) | ||
98 | chmod 644 $(DL)/$(LIBNAME)$(A) | ||
99 | (cd $(DL); $(LN_SF) $(LIBNAME)$(A) libpng$(A)) | ||
100 | (cd $(DI); $(LN_SF) libpng/* .;) | ||
101 | |||
102 | clean: | ||
103 | $(RM_F) *.o $(LIBNAME)$(A) pngtest pngout.png pnglibconf.h | ||
104 | |||
105 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
106 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
107 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
108 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
109 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
110 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
111 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
112 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
113 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
114 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
115 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
116 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
117 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
118 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
119 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
120 | |||
121 | pngtest$(O): png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.amiga b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.amiga new file mode 100644 index 0000000..f23f254 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.amiga | |||
@@ -0,0 +1,56 @@ | |||
1 | # Commodore Amiga Makefile | ||
2 | # makefile for libpng and SAS C V6.5x compiler | ||
3 | # Copyright (C) 1995-2000 Wolf Faust | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | # | ||
9 | # Location/path of zlib include files | ||
10 | ZLIB=/zlib | ||
11 | #compiler | ||
12 | CC=sc | ||
13 | #compiler flags | ||
14 | # WARNING: a bug in V6.51 causes bad code with OPTGO | ||
15 | # So use V6.55 or set NOOPTGO!!!!!!!!! | ||
16 | CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\ | ||
17 | OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \ | ||
18 | DEFINE=PNG_INTERNAL | ||
19 | #linker flags | ||
20 | LDFLAGS= SD ND BATCH | ||
21 | #link libs | ||
22 | LDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib | ||
23 | # linker | ||
24 | LN= slink | ||
25 | # file deletion command | ||
26 | RM= delete quiet | ||
27 | # file copy command? | ||
28 | CP= copy | ||
29 | # library (.lib) file creation command | ||
30 | AR= oml | ||
31 | # make directory command | ||
32 | MKDIR= makedir | ||
33 | |||
34 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
35 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
36 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
37 | |||
38 | all: libpng.lib pngtest | ||
39 | |||
40 | libpng.lib: $(OBJS) | ||
41 | -$(RM) libpng.lib | ||
42 | $(AR) libpng.lib r $(OBJS) | ||
43 | |||
44 | $(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h | ||
45 | |||
46 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
47 | $(CP) scripts/pnglibconf.h.prebuilt pnglibconf.h | ||
48 | |||
49 | pngtest: pngtest.o libpng.lib | ||
50 | $(LN) <WITH < | ||
51 | $(LDFLAGS) | ||
52 | TO pngtest | ||
53 | FROM LIB:c.o pngtest.o | ||
54 | LIB $(LDLIBS) | ||
55 | < | ||
56 | |||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.atari b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.atari new file mode 100644 index 0000000..aa28ce5 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.atari | |||
@@ -0,0 +1,63 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) 2002 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | # | ||
9 | # Modified for LC56/ATARI assumes libz.lib is in same dir and uses default | ||
10 | # rules for library management | ||
11 | # | ||
12 | CFLAGS=-I..\zlib -O | ||
13 | LBR = png.lib | ||
14 | LDFLAGS=-lpng -lz -lm | ||
15 | |||
16 | # where make install puts libpng.a and png.h | ||
17 | prefix=/usr/local | ||
18 | INCPATH=$(prefix)/include | ||
19 | LIBPATH=$(prefix)/lib | ||
20 | |||
21 | # override DESTDIR= on the make install command line to easily support | ||
22 | # installing into a temporary location. Example: | ||
23 | # | ||
24 | # make install DESTDIR=/tmp/build/libpng | ||
25 | # | ||
26 | # If you're going to install into a temporary location | ||
27 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
28 | # you execute make install. | ||
29 | DESTDIR= | ||
30 | |||
31 | OBJS = $(LBR)(png.o) $(LBR)(pngset.o) $(LBR)(pngget.o) $(LBR)(pngrutil.o)\ | ||
32 | $(LBR)(pngtrans.o) $(LBR)(pngwutil.o)\ | ||
33 | $(LBR)(pngread.o) $(LBR)(pngerror.o) $(LBR)(pngwrite.o)\ | ||
34 | $(LBR)(pngrtran.o) $(LBR)(pngwtran.o)\ | ||
35 | $(LBR)(pngmem.o) $(LBR)(pngrio.o) $(LBR)(pngwio.o) $(LBR)(pngpread.o) | ||
36 | |||
37 | all: $(LBR) pngtest.ttp | ||
38 | |||
39 | $(LBR): $(OBJS) | ||
40 | |||
41 | $(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h | ||
42 | |||
43 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
44 | cp scripts/pnglibconf.h.prebuilt pnglibconf.h | ||
45 | |||
46 | pngtest.ttp: pngtest.o $(LBR) | ||
47 | $(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o | ||
48 | |||
49 | install: libpng.a | ||
50 | -@mkdir $(DESTDIR)$(INCPATH) | ||
51 | -@mkdir $(DESTDIR)$(INCPATH)/libpng | ||
52 | -@mkdir $(DESTDIR)$(LIBPATH) | ||
53 | -@rm -f $(DESTDIR)$(INCPATH)/png.h | ||
54 | -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h | ||
55 | -@rm -f $(DESTDIR)$(INCPATH)/pnglibconf.h | ||
56 | cp png.h $(DESTDIR)$(INCPATH)/libpng | ||
57 | cp pngconf.h $(DESTDIR)$(INCPATH)/libpng | ||
58 | cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng | ||
59 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h | ||
60 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h | ||
61 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h | ||
62 | (cd $(DESTDIR)$(INCPATH); ln -f -s $(LIBNAME) libpng; \ | ||
63 | ln -f -s $(LIBNAME)/* .) | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.bc32 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.bc32 new file mode 100644 index 0000000..48311e9 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.bc32 | |||
@@ -0,0 +1,151 @@ | |||
1 | # Makefile for libpng | ||
2 | # 32-bit Borland C++ (Note: All modules are compiled in C mode) | ||
3 | # To build the library, do: | ||
4 | # "make -fmakefile.bc32" | ||
5 | # | ||
6 | # -------------------- 32-bit Borland C++ -------------------- | ||
7 | |||
8 | ### Absolutely necessary for this makefile to work | ||
9 | .AUTODEPEND | ||
10 | |||
11 | ## Where zlib.h, zconf.h and zlib.lib are | ||
12 | ZLIB_DIR=..\zlib | ||
13 | |||
14 | ## Compiler, linker and lib stuff | ||
15 | CC=bcc32 | ||
16 | LD=bcc32 | ||
17 | LIB=tlib | ||
18 | |||
19 | # -3 = 386, -4 = 486, -5 = Pentium etc. | ||
20 | !ifndef TARGET_CPU | ||
21 | #TARGET_CPU=-6 | ||
22 | !endif | ||
23 | |||
24 | # Use this if you don't want Borland's fancy exception handling | ||
25 | # (Caution: doesn't work with CBuilderX) | ||
26 | #NOEHLIB=noeh32.lib | ||
27 | |||
28 | !ifdef DEBUG | ||
29 | CDEBUG=-v | ||
30 | LDEBUG=-v | ||
31 | !else | ||
32 | CDEBUG= | ||
33 | LDEBUG= | ||
34 | !endif | ||
35 | |||
36 | # STACKOFLOW=1 | ||
37 | !ifdef STACKOFLOW | ||
38 | CDEBUG=$(CDEBUG) -N | ||
39 | LDEBUG=$(LDEBUG) -N | ||
40 | !endif | ||
41 | |||
42 | # -O2 optimize for speed | ||
43 | # -d merge duplicate strings | ||
44 | # -k- turn off standard stack frame | ||
45 | # -w display all warnings | ||
46 | CFLAGS=-I$(ZLIB_DIR) -O2 -d -k- -w $(TARGET_CPU) $(CDEBUG) | ||
47 | |||
48 | # -M generate map file | ||
49 | LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG) | ||
50 | |||
51 | ## Variables | ||
52 | OBJS = \ | ||
53 | png.obj \ | ||
54 | pngerror.obj \ | ||
55 | pngget.obj \ | ||
56 | pngmem.obj \ | ||
57 | pngpread.obj \ | ||
58 | pngread.obj \ | ||
59 | pngrio.obj \ | ||
60 | pngrtran.obj \ | ||
61 | pngrutil.obj \ | ||
62 | pngset.obj \ | ||
63 | pngtrans.obj \ | ||
64 | pngwio.obj \ | ||
65 | pngwrite.obj \ | ||
66 | pngwtran.obj \ | ||
67 | pngwutil.obj | ||
68 | |||
69 | LIBOBJS = \ | ||
70 | +png.obj \ | ||
71 | +pngerror.obj \ | ||
72 | +pngget.obj \ | ||
73 | +pngmem.obj \ | ||
74 | +pngpread.obj \ | ||
75 | +pngread.obj \ | ||
76 | +pngrio.obj \ | ||
77 | +pngrtran.obj \ | ||
78 | +pngrutil.obj \ | ||
79 | +pngset.obj \ | ||
80 | +pngtrans.obj \ | ||
81 | +pngwio.obj \ | ||
82 | +pngwrite.obj \ | ||
83 | +pngwtran.obj \ | ||
84 | +pngwutil.obj | ||
85 | |||
86 | LIBNAME=libpng.lib | ||
87 | |||
88 | ## Implicit rules | ||
89 | # Braces let make "batch" calls to the compiler, | ||
90 | # 2 calls instead of 12; space is important. | ||
91 | .c.obj: | ||
92 | $(CC) $(CFLAGS) -c {$*.c } | ||
93 | |||
94 | .c.exe: | ||
95 | $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBNAME) zlib.lib $(NOEHLIB) | ||
96 | |||
97 | .obj.exe: | ||
98 | $(LD) $(LDFLAGS) $*.obj $(LIBNAME) zlib.lib $(NOEHLIB) | ||
99 | |||
100 | ## Major targets | ||
101 | all: libpng pngtest | ||
102 | |||
103 | libpng: $(LIBNAME) | ||
104 | |||
105 | pngtest: pngtest.exe | ||
106 | |||
107 | test: pngtest.exe | ||
108 | pngtest | ||
109 | |||
110 | ## Minor Targets | ||
111 | |||
112 | # see scripts\pnglibconf.mak for how to make this file | ||
113 | # with different options | ||
114 | pnglibconf.h: scripts\pnglibconf.h.prebuilt | ||
115 | copy scripts\pnglibconf.h.prebuilt $@ | ||
116 | |||
117 | png.obj: png.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
118 | pngerror.obj: pngerror.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
119 | pngget.obj: pngget.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
120 | pngmem.obj: pngmem.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
121 | pngpread.obj: pngpread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
122 | pngread.obj: pngread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
123 | pngrio.obj: pngrio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
124 | pngrtran.obj: pngrtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
125 | pngrutil.obj: pngrutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
126 | pngset.obj: pngset.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
127 | pngtrans.obj: pngtrans.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
128 | pngwio.obj: pngwio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
129 | pngwrite.obj: pngwrite.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
130 | pngwtran.obj: pngwtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
131 | pngwutil.obj: pngwutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
132 | pngtest.obj: pngtest.c png.h pngconf.h pnglibconf.h | ||
133 | |||
134 | $(LIBNAME): $(OBJS) | ||
135 | -del $(LIBNAME) | ||
136 | $(LIB) $(LIBNAME) @&&| | ||
137 | $(LIBOBJS), libpng | ||
138 | | | ||
139 | |||
140 | # Cleanup | ||
141 | clean: | ||
142 | -del pnglibconf.h | ||
143 | -del *.obj | ||
144 | -del $(LIBNAME) | ||
145 | -del pngtest.exe | ||
146 | -del *.lst | ||
147 | -del *.map | ||
148 | -del *.tds | ||
149 | -del pngout.png | ||
150 | |||
151 | # End of makefile for libpng | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.beos b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.beos new file mode 100644 index 0000000..ff1743c --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.beos | |||
@@ -0,0 +1,215 @@ | |||
1 | # makefile for libpng on BeOS x86 ELF with gcc | ||
2 | # modified from makefile.linux by Sander Stoks | ||
3 | # Copyright (C) 2002, 2006, 2008, 2010-2011 Glenn Randers-Pehrson | ||
4 | # Copyright (C) 1999 Greg Roelofs | ||
5 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
6 | # | ||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # Library name: | ||
12 | LIBNAME=libpng15 | ||
13 | PNGMAJ = 15 | ||
14 | |||
15 | # Shared library names: | ||
16 | LIBSO=$(LIBNAME).so | ||
17 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
18 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
19 | OLDSO=libpng.so | ||
20 | |||
21 | # Utilities: | ||
22 | CC=gcc | ||
23 | AR_RC=ar rc | ||
24 | MKDIR_P=mkdir -p | ||
25 | LN_SF=ln -sf | ||
26 | RANLIB=ranlib | ||
27 | RM_F=/bin/rm -f | ||
28 | |||
29 | # Where the zlib library and include files are located | ||
30 | ZLIBLIB=/usr/local/lib | ||
31 | ZLIBINC=/usr/local/include | ||
32 | |||
33 | ALIGN= | ||
34 | # For i386: | ||
35 | # ALIGN=-malign-loops=2 -malign-functions=2 | ||
36 | |||
37 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
38 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
39 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
40 | |||
41 | # On BeOS, -O1 is actually better than -O3. This is a known bug but it's | ||
42 | # still here in R4.5 | ||
43 | CFLAGS=-I$(ZLIBINC) -W -Wall -O1 -funroll-loops \ | ||
44 | $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 | ||
45 | # LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz | ||
46 | LDFLAGS=-L. -Wl,-soname=$(LIBSOMAJ) -L$(ZLIBLIB) -lz | ||
47 | |||
48 | # where make install puts libpng.a, libpng15.so*, and png.h | ||
49 | prefix=/usr/local | ||
50 | exec_prefix=$(prefix) | ||
51 | INCPATH=$(prefix)/include | ||
52 | LIBPATH=$(exec_prefix)/lib | ||
53 | MANPATH=$(prefix)/man | ||
54 | BINPATH=$(exec_prefix)/bin | ||
55 | |||
56 | # override DESTDIR= on the make install command line to easily support | ||
57 | # installing into a temporary location. Example: | ||
58 | # | ||
59 | # make install DESTDIR=/tmp/build/libpng | ||
60 | # | ||
61 | # If you're going to install into a temporary location | ||
62 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
63 | # you execute make install. | ||
64 | DESTDIR= | ||
65 | |||
66 | DB=$(DESTDIR)$(BINPATH) | ||
67 | DI=$(DESTDIR)$(INCPATH) | ||
68 | DL=$(DESTDIR)$(LIBPATH) | ||
69 | DM=$(DESTDIR)$(MANPATH) | ||
70 | |||
71 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
72 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
73 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
74 | |||
75 | OBJSDLL = $(OBJS) | ||
76 | |||
77 | .SUFFIXES: .c .o | ||
78 | |||
79 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
80 | |||
81 | # try include scripts/pnglibconf.mak for more options | ||
82 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
83 | cp scripts/pnglibconf.h.prebuilt $@ | ||
84 | |||
85 | libpng.a: $(OBJS) | ||
86 | $(AR_RC) $@ $(OBJS) | ||
87 | $(RANLIB) $@ | ||
88 | |||
89 | libpng.pc: | ||
90 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
91 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
92 | -e s!@libdir@!$(LIBPATH)! \ | ||
93 | -e s!@includedir@!$(INCPATH)! \ | ||
94 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
95 | |||
96 | libpng-config: | ||
97 | ( cat scripts/libpng-config-head.in; \ | ||
98 | echo prefix=\"$(prefix)\"; \ | ||
99 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
100 | echo libs=\"-lpng15 -lz \"; \ | ||
101 | cat scripts/libpng-config-body.in ) > libpng-config | ||
102 | chmod +x libpng-config | ||
103 | |||
104 | $(LIBSO): $(LIBSOMAJ) | ||
105 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
106 | cp $(LIBSO)* /boot/home/config/lib | ||
107 | |||
108 | $(LIBSOMAJ): $(OBJSDLL) | ||
109 | $(CC) -nostart -Wl,-soname,$(LIBSOMAJ) -o \ | ||
110 | $(LIBSOMAJ) $(OBJSDLL) $(LDFLAGS) | ||
111 | |||
112 | pngtest: pngtest.o $(LIBSO) | ||
113 | $(CC) -L$(ZLIBLIB) -L. -lz -lpng15 -o pngtest pngtest.o | ||
114 | |||
115 | test: pngtest | ||
116 | ./pngtest | ||
117 | |||
118 | install-headers: png.h pngconf.h pnglibconf.h | ||
119 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
120 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
121 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
122 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
123 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
124 | -@$(RM_F) $(DI)/libpng | ||
125 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
126 | |||
127 | install-static: install-headers libpng.a | ||
128 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
129 | cp libpng.a $(DL)/$(LIBNAME).a | ||
130 | chmod 644 $(DL)/$(LIBNAME).a | ||
131 | -@$(RM_F) $(DL)/libpng.a | ||
132 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
133 | |||
134 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
135 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
136 | -@$(RM_F) $(DL)/$(LIBSO) | ||
137 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
138 | -@$(RM_F) $(DL)/$(OLDSO) | ||
139 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
140 | chmod 755 $(DL)/$(LIBSOREL) | ||
141 | (cd $(DL); \ | ||
142 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
143 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
144 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
145 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
146 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
147 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
148 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
149 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
150 | |||
151 | install-man: libpng.3 libpngpf.3 png.5 | ||
152 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
153 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
154 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
155 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
156 | cp libpng.3 $(DM)/man3 | ||
157 | cp libpngpf.3 $(DM)/man3 | ||
158 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
159 | -@$(RM_F) $(DM)/man5/png.5 | ||
160 | cp png.5 $(DM)/man5 | ||
161 | |||
162 | install-config: libpng-config | ||
163 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
164 | -@$(RM_F) $(DB)/libpng-config | ||
165 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
166 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
167 | chmod 755 $(DB)/$(LIBNAME)-config | ||
168 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
169 | |||
170 | install: install-static install-shared install-man install-config | ||
171 | |||
172 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
173 | # move the library to its final location. Use test-dd to test it | ||
174 | # before then. | ||
175 | |||
176 | test-dd: | ||
177 | echo | ||
178 | echo Testing installed dynamic shared library in $(DL). | ||
179 | $(CC) -I$(DI) $(CFLAGS) \ | ||
180 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
181 | -L$(DL) -L$(ZLIBLIB) -Wl,-rpath $(ZLIBLIB):$(DL) \ | ||
182 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
183 | ./pngtestd pngtest.png | ||
184 | |||
185 | test-installed: | ||
186 | $(CC) $(CFLAGS) \ | ||
187 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
188 | -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ | ||
189 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
190 | ./pngtesti pngtest.png | ||
191 | |||
192 | clean: | ||
193 | $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ | ||
194 | $(LIBSO) $(LIBSOMAJ)* pngtesti \ | ||
195 | pnglibconf.h libpng.pc | ||
196 | |||
197 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
198 | |||
199 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
200 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
201 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
202 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
203 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
204 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
205 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
206 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
207 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
208 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
209 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
210 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
211 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
212 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
213 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
214 | |||
215 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.bor b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.bor new file mode 100644 index 0000000..8251503 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.bor | |||
@@ -0,0 +1,161 @@ | |||
1 | # Makefile for libpng | ||
2 | # 16-bit Borland C++ (Note: All modules are compiled in C mode) | ||
3 | # To build the library, do: | ||
4 | # "make -fmakefile.bor -DMODEL=c" | ||
5 | # or: "make -fmakefile.bor -DMODEL=l" | ||
6 | # | ||
7 | # ------------ Borland C++ ------------ | ||
8 | |||
9 | ### Absolutely necessary for this makefile to work | ||
10 | .AUTODEPEND | ||
11 | |||
12 | ## Where zlib.h, zconf.h and zlib_MODEL.lib are | ||
13 | ZLIB_DIR=..\zlib | ||
14 | |||
15 | ## Compiler, linker and lib stuff | ||
16 | CC=bcc | ||
17 | LD=bcc | ||
18 | LIB=tlib | ||
19 | |||
20 | !ifndef MODEL | ||
21 | MODEL=l | ||
22 | !endif | ||
23 | |||
24 | MODEL_ARG=-m$(MODEL) | ||
25 | |||
26 | #TARGET_CPU=3 | ||
27 | # 2 = 286, 3 = 386, etc. | ||
28 | !ifndef TARGET_CPU | ||
29 | TARGET_CPU=2 | ||
30 | !endif | ||
31 | |||
32 | # Use this if you don't want Borland's fancy exception handling | ||
33 | # (for Borland C++ 4.0 or later) | ||
34 | #NOEHLIB=noeh$(MODEL).lib | ||
35 | |||
36 | !ifdef DEBUG | ||
37 | CDEBUG=-v | ||
38 | LDEBUG=-v | ||
39 | !else | ||
40 | CDEBUG= | ||
41 | LDEBUG= | ||
42 | !endif | ||
43 | |||
44 | # STACKOFLOW=1 | ||
45 | !ifdef STACKOFLOW | ||
46 | CDEBUG=$(CDEBUG) -N | ||
47 | LDEBUG=$(LDEBUG) -N | ||
48 | !endif | ||
49 | |||
50 | # -X- turn on dependency generation in the object file | ||
51 | # -w set all warnings on | ||
52 | # -O2 optimize for speed | ||
53 | # -Z global optimization | ||
54 | CFLAGS=-O2 -Z -X- -w -I$(ZLIB_DIR) -$(TARGET_CPU) $(MODEL_ARG) $(CDEBUG) | ||
55 | |||
56 | # -M generate map file | ||
57 | LDFLAGS=-M -L$(ZLIB_DIR) $(MODEL_ARG) $(LDEBUG) | ||
58 | |||
59 | ## Variables | ||
60 | |||
61 | OBJS = \ | ||
62 | png.obj \ | ||
63 | pngerror.obj \ | ||
64 | pngget.obj \ | ||
65 | pngmem.obj \ | ||
66 | pngpread.obj \ | ||
67 | pngread.obj \ | ||
68 | pngrio.obj \ | ||
69 | pngrtran.obj \ | ||
70 | pngrutil.obj \ | ||
71 | pngset.obj \ | ||
72 | pngtrans.obj \ | ||
73 | pngwio.obj \ | ||
74 | pngwrite.obj \ | ||
75 | pngwtran.obj \ | ||
76 | pngwutil.obj | ||
77 | |||
78 | LIBOBJS = \ | ||
79 | +png.obj \ | ||
80 | +pngerror.obj \ | ||
81 | +pngget.obj \ | ||
82 | +pngmem.obj \ | ||
83 | +pngpread.obj \ | ||
84 | +pngread.obj \ | ||
85 | +pngrio.obj \ | ||
86 | +pngrtran.obj \ | ||
87 | +pngrutil.obj \ | ||
88 | +pngset.obj \ | ||
89 | +pngtrans.obj \ | ||
90 | +pngwio.obj \ | ||
91 | +pngwrite.obj \ | ||
92 | +pngwtran.obj \ | ||
93 | +pngwutil.obj | ||
94 | |||
95 | LIBNAME=libpng$(MODEL).lib | ||
96 | |||
97 | ## Implicit rules | ||
98 | |||
99 | # Braces let make "batch" calls to the compiler, | ||
100 | # 2 calls instead of 12; space is important. | ||
101 | .c.obj: | ||
102 | $(CC) $(CFLAGS) -c {$*.c } | ||
103 | |||
104 | .c.exe: | ||
105 | $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBNAME) zlib_$(MODEL).lib $(NOEHLIB) | ||
106 | |||
107 | ## Major targets | ||
108 | |||
109 | all: libpng pngtest | ||
110 | |||
111 | # try !inlude scripts\pnglibconf.mak for more options | ||
112 | pnglibconf.h: scripts\pnglibconf.h.prebuilt | ||
113 | copy scripts\pnglibconf.h.prebuilt $@ | ||
114 | |||
115 | libpng: $(LIBNAME) | ||
116 | |||
117 | pngtest: pngtest$(MODEL).exe | ||
118 | |||
119 | test: pngtest$(MODEL).exe | ||
120 | pngtest$(MODEL) | ||
121 | |||
122 | ## Minor Targets | ||
123 | |||
124 | png.obj: png.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
125 | pngerror.obj: pngerror.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
126 | pngget.obj: pngget.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
127 | pngmem.obj: pngmem.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
128 | pngpread.obj: pngpread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
129 | pngread.obj: pngread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
130 | pngrio.obj: pngrio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
131 | pngrtran.obj: pngrtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
132 | pngrutil.obj: pngrutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
133 | pngset.obj: pngset.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
134 | pngtrans.obj: pngtrans.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
135 | pngwio.obj: pngwio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
136 | pngwrite.obj: pngwrite.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
137 | pngwtran.obj: pngwtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
138 | pngwutil.obj: pngwutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
139 | |||
140 | $(LIBNAME): $(OBJS) | ||
141 | -del $(LIBNAME) | ||
142 | $(LIB) $(LIBNAME) @&&| | ||
143 | $(LIBOBJS), libpng$(MODEL) | ||
144 | | | ||
145 | |||
146 | pngtest$(MODEL).obj: pngtest.c png.h pngconf.h pnglibconf.h | ||
147 | $(CC) $(CFLAGS) -opngtest$(MODEL) -c pngtest.c | ||
148 | |||
149 | pngtest$(MODEL).exe: pngtest$(MODEL).obj | ||
150 | $(LD) $(LDFLAGS) pngtest$(MODEL).obj $(LIBNAME) zlib_$(MODEL).lib $(NOEHLIB) | ||
151 | |||
152 | # Clean up anything else you want | ||
153 | clean: | ||
154 | -del pnglibconf.h | ||
155 | -del *.obj | ||
156 | -del *.exe | ||
157 | -del *.lib | ||
158 | -del *.lst | ||
159 | -del *.map | ||
160 | |||
161 | # End of makefile for libpng | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.cegcc b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.cegcc new file mode 100644 index 0000000..6d4f6ef --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.cegcc | |||
@@ -0,0 +1,116 @@ | |||
1 | # Makefile for creating Windows CE release archives, with the | ||
2 | # mingw32ce compiler. | ||
3 | |||
4 | # Last updated: 22-Jul-2008 | ||
5 | |||
6 | # Copyright (C) 2008 Vincent Torri | ||
7 | |||
8 | # This code is released under the libpng license. | ||
9 | # For conditions of distribution and use, see the disclaimer | ||
10 | # and license in png.h | ||
11 | |||
12 | # To get some help, type | ||
13 | # | ||
14 | # make help | ||
15 | # | ||
16 | # To create the archives | ||
17 | # | ||
18 | # make | ||
19 | # | ||
20 | # To remove everything, type: | ||
21 | # | ||
22 | # make clean | ||
23 | |||
24 | VERMAJ = 1 | ||
25 | VERMIN = 5 | ||
26 | VERMIC = 9 | ||
27 | VER = $(VERMAJ).$(VERMIN).$(VERMIC) | ||
28 | NAME = libpng | ||
29 | PACKAGE = $(NAME)-$(VER) | ||
30 | |||
31 | BIN = libpng15-0.dll | ||
32 | LIB = libpng15.a libpng15.dll.a libpng.a libpng.dll.a | ||
33 | INCLUDE = png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
34 | PC = libpng15.pc libpng.pc | ||
35 | |||
36 | MANIFESTVERBIN = "Libpng-$(VER): Binary files" | ||
37 | MANIFESTVERDEV = "Libpng-$(VER): Developer files" | ||
38 | MANIFESTVERDESC = "Libpng: the official PNG reference library" | ||
39 | |||
40 | all: $(NAME) | ||
41 | |||
42 | $(NAME): remove-old copy-src compilation copy manifest archive | ||
43 | @echo " * Removal of the directories" | ||
44 | @rm -rf $(PACKAGE)/ $(PACKAGE)-bin/ $(PACKAGE)-dev/ | ||
45 | |||
46 | remove-old: | ||
47 | @echo " * Removal of the old files" | ||
48 | @rm -rf $(PACKAGE)-bin* | ||
49 | @rm -rf $(PACKAGE)-dev* | ||
50 | |||
51 | copy-src: | ||
52 | @echo " * Copy of source files" | ||
53 | @cp -R ../src/$(PACKAGE) . | ||
54 | @echo " * Creation of directories and files" | ||
55 | @mkdir -p $(PACKAGE)-bin/bin | ||
56 | @mkdir -p $(PACKAGE)-bin/manifest | ||
57 | @mkdir -p $(PACKAGE)-dev/lib/pkgconfig | ||
58 | @mkdir -p $(PACKAGE)-dev/include/$(NAME)$(VERMAJ)$(VERMIN) | ||
59 | @mkdir -p $(PACKAGE)-dev/manifest | ||
60 | @touch $(PACKAGE)-bin/manifest/$(PACKAGE)-bin.mft | ||
61 | @touch $(PACKAGE)-bin/manifest/$(PACKAGE)-bin.ver | ||
62 | @touch $(PACKAGE)-dev/manifest/$(PACKAGE)-dev.mft | ||
63 | @touch $(PACKAGE)-dev/manifest/$(PACKAGE)-dev.ver | ||
64 | |||
65 | compilation: | ||
66 | @echo " * Compilation of $(PACKAGE)" | ||
67 | cd $(PACKAGE) && CPPFLAGS="$(CPPFLAGS) -DPNG_CONSOLE_IO_SUPPORTED -D_WIN32_WCE=0x0420" \ | ||
68 | CFLAGS="$(CFLAGS) -mms-bitfields -O3 -pipe -fomit-frame-pointer" \ | ||
69 | LDFLAGS="$(LDFLAGS) -Wl,--enable-auto-import -Wl,-s" \ | ||
70 | ./configure --prefix=/opt/wince --host=arm-mingw32ce && make | ||
71 | |||
72 | copy: | ||
73 | @echo " * Copy of binary and development files" | ||
74 | @for i in $(BIN); do \ | ||
75 | cp $(PACKAGE)/.libs/$$i $(PACKAGE)-bin/bin; \ | ||
76 | done | ||
77 | @for i in $(LIB); do \ | ||
78 | cp $(PACKAGE)/.libs/$$i $(PACKAGE)-dev/lib; \ | ||
79 | done | ||
80 | @for i in $(INCLUDE); do \ | ||
81 | cp $(PACKAGE)/$$i $(PACKAGE)-dev/include/$(NAME)$(VERMAJ)$(VERMIN); \ | ||
82 | done | ||
83 | @for i in $(PC); do \ | ||
84 | cp $(PACKAGE)/$$i $(PACKAGE)-dev/lib/pkgconfig; \ | ||
85 | done | ||
86 | |||
87 | manifest: | ||
88 | @echo " * Creation of the manifest" | ||
89 | @cd $(PACKAGE)-bin && find * >> manifest/$(PACKAGE)-bin.mft | ||
90 | @cd $(PACKAGE)-bin && \ | ||
91 | echo $(MANIFESTVERBIN) >> manifest/$(PACKAGE)-bin.ver && \ | ||
92 | echo $(MANIFESTVERDESC) >> manifest/$(PACKAGE)-bin.ver | ||
93 | @cd $(PACKAGE)-dev && find * >> manifest/$(PACKAGE)-dev.mft | ||
94 | @cd $(PACKAGE)-dev && \ | ||
95 | echo $(MANIFESTVERDEV) >> manifest/$(PACKAGE)-dev.ver && \ | ||
96 | echo $(MANIFESTVERDESC) >> manifest/$(PACKAGE)-dev.ver | ||
97 | |||
98 | archive: | ||
99 | @echo " * Creation of the archives" | ||
100 | @tar cf $(PACKAGE)-bin.tar $(PACKAGE)-bin | ||
101 | @bzip2 -9 $(PACKAGE)-bin.tar | ||
102 | @tar cf $(PACKAGE)-dev.tar $(PACKAGE)-dev | ||
103 | @bzip2 -9 $(PACKAGE)-dev.tar | ||
104 | |||
105 | clean: | ||
106 | @echo " * Cleaning" | ||
107 | @rm -rf $(PACKAGE)* | ||
108 | |||
109 | help: | ||
110 | @echo | ||
111 | @echo "To create the archives, type:" | ||
112 | @echo " make" | ||
113 | @echo | ||
114 | @echo "To remove everything, type:" | ||
115 | @echo " make clean" | ||
116 | @echo | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.darwin b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.darwin new file mode 100644 index 0000000..bb62b09 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.darwin | |||
@@ -0,0 +1,220 @@ | |||
1 | # makefile for libpng on Darwin / Mac OS X | ||
2 | # Copyright (C) 2002, 2004, 2006, 2008, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 2001 Christoph Pfisterer | ||
4 | # derived from makefile.linux: | ||
5 | # Copyright (C) 1998, 1999 Greg Roelofs | ||
6 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
7 | # | ||
8 | # This code is released under the libpng license. | ||
9 | # For conditions of distribution and use, see the disclaimer | ||
10 | # and license in png.h | ||
11 | |||
12 | # where "make install" puts libpng.a, libpng15.dylib, png.h, pngconf.h, | ||
13 | # and pnglibconf.h | ||
14 | prefix=/usr/local | ||
15 | exec_prefix=$(prefix) | ||
16 | |||
17 | # Where the zlib library and include files are located | ||
18 | #ZLIBLIB=/usr/local/lib | ||
19 | #ZLIBINC=/usr/local/include | ||
20 | ZLIBLIB=../zlib | ||
21 | ZLIBINC=../zlib | ||
22 | |||
23 | # Library name: | ||
24 | LIBNAME = libpng15 | ||
25 | PNGMAJ = 15 | ||
26 | |||
27 | # Shared library names: | ||
28 | LIBSO=$(LIBNAME).dylib | ||
29 | LIBSOMAJ=$(LIBNAME).$(PNGMAJ).dylib | ||
30 | LIBSOREL=$(LIBNAME).$(PNGMAJ).$(RELEASE).dylib | ||
31 | OLDSO=libpng.dylib | ||
32 | |||
33 | # Utilities: | ||
34 | CC=cc | ||
35 | AR_RC=ar rc | ||
36 | MKDIR_P=mkdir -p | ||
37 | LN_SF=ln -sf | ||
38 | RANLIB=ranlib | ||
39 | RM_F=/bin/rm -f | ||
40 | ARCH="-arch i386 -arch x86_64" | ||
41 | |||
42 | # CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops | ||
43 | CFLAGS=-I$(ZLIBINC) -W -Wall -O -funroll-loops $(ARCH) | ||
44 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng15 -lz $(ARCH) | ||
45 | |||
46 | INCPATH=$(prefix)/include | ||
47 | LIBPATH=$(exec_prefix)/lib | ||
48 | MANPATH=$(prefix)/man | ||
49 | BINPATH=$(exec_prefix)/bin | ||
50 | |||
51 | # override DESTDIR= on the make install command line to easily support | ||
52 | # installing into a temporary location. Example: | ||
53 | # | ||
54 | # make install DESTDIR=/tmp/build/libpng | ||
55 | # | ||
56 | # If you're going to install into a temporary location | ||
57 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
58 | # you execute make install. | ||
59 | DESTDIR= | ||
60 | |||
61 | DB=$(DESTDIR)$(BINPATH) | ||
62 | DI=$(DESTDIR)$(INCPATH) | ||
63 | DL=$(DESTDIR)$(LIBPATH) | ||
64 | DM=$(DESTDIR)$(MANPATH) | ||
65 | |||
66 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
67 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
68 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
69 | |||
70 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
71 | |||
72 | .SUFFIXES: .c .o .pic.o | ||
73 | |||
74 | .c.pic.o: | ||
75 | $(CC) -c $(CFLAGS) -fno-common -o $@ $*.c | ||
76 | |||
77 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
78 | |||
79 | # see scripts/pnglibconf.mak for more options | ||
80 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
81 | cp scripts/pnglibconf.h.prebuilt $@ | ||
82 | |||
83 | libpng.a: $(OBJS) | ||
84 | $(AR_RC) $@ $(OBJS) | ||
85 | $(RANLIB) $@ | ||
86 | |||
87 | libpng.pc: | ||
88 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
89 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
90 | -e s!@libdir@!$(LIBPATH)! \ | ||
91 | -e s!@includedir@!$(INCPATH)! \ | ||
92 | -e s!-lpng15!-lpng15\ -lz! > libpng.pc | ||
93 | |||
94 | libpng-config: | ||
95 | ( cat scripts/libpng-config-head.in; \ | ||
96 | echo prefix=\"$(prefix)\"; \ | ||
97 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
98 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
99 | echo libs=\"-lpng15 -lz\"; \ | ||
100 | cat scripts/libpng-config-body.in ) > libpng-config | ||
101 | chmod +x libpng-config | ||
102 | |||
103 | $(LIBSO): $(LIBSOMAJ) | ||
104 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
105 | |||
106 | $(LIBSOMAJ): $(OBJSDLL) | ||
107 | $(CC) -dynamiclib \ | ||
108 | -install_name $(LIBPATH)/$(LIBSOMAJ) \ | ||
109 | -current_version 15 -compatibility_version 15 \ | ||
110 | -o $(LIBSOMAJ) \ | ||
111 | $(OBJSDLL) -L$(ZLIBLIB) -lz | ||
112 | |||
113 | pngtest: pngtest.o $(LIBSO) | ||
114 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
115 | |||
116 | test: pngtest | ||
117 | ./pngtest | ||
118 | |||
119 | install-headers: png.h pngconf.h pnglibconf.h | ||
120 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
121 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
122 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
123 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
124 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
125 | -@$(RM_F) $(DI)/libpng | ||
126 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
127 | |||
128 | install-static: install-headers libpng.a | ||
129 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
130 | cp libpng.a $(DL)/$(LIBNAME).a | ||
131 | chmod 644 $(DL)/$(LIBNAME).a | ||
132 | $(RANLIB) $(DL)/$(LIBNAME).a | ||
133 | -@$(RM_F) $(DL)/libpng.a | ||
134 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
135 | |||
136 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
137 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
138 | -@$(RM_F) $(DL)/$(LIBSO) | ||
139 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
140 | -@$(RM_F) $(DL)/$(OLDSO) | ||
141 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
142 | chmod 755 $(DL)/$(LIBSOREL) | ||
143 | (cd $(DL); \ | ||
144 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
145 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
146 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
147 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
148 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
149 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
150 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
151 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
152 | |||
153 | install-man: libpng.3 libpngpf.3 png.5 | ||
154 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
155 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
156 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
157 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
158 | cp libpng.3 $(DM)/man3 | ||
159 | cp libpngpf.3 $(DM)/man3 | ||
160 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
161 | -@$(RM_F) $(DM)/man5/png.5 | ||
162 | cp png.5 $(DM)/man5 | ||
163 | |||
164 | install-config: libpng-config | ||
165 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
166 | -@$(RM_F) $(DB)/libpng-config | ||
167 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
168 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
169 | chmod 755 $(DB)/$(LIBNAME)-config | ||
170 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
171 | |||
172 | install: install-static install-shared install-man install-config | ||
173 | |||
174 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
175 | # move the library to its final location. Use test-dd to test it | ||
176 | # before then. | ||
177 | |||
178 | test-dd: | ||
179 | echo | ||
180 | echo Testing installed dynamic shared library in $(DL). | ||
181 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
182 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
183 | -L$(DL) -L$(ZLIBLIB) \ | ||
184 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
185 | ./pngtestd pngtest.png | ||
186 | |||
187 | test-installed: | ||
188 | $(CC) $(CFLAGS) \ | ||
189 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
190 | -L$(ZLIBLIB) \ | ||
191 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
192 | ./pngtesti pngtest.png | ||
193 | |||
194 | clean: | ||
195 | $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ | ||
196 | libpng.pc $(LIBNAME).*dylib pngtesti pnglibconf.h | ||
197 | |||
198 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
199 | writelock: | ||
200 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
201 | |||
202 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
203 | |||
204 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
205 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
206 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
207 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
208 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
209 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
210 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
211 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
212 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
213 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
214 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
215 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
216 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
217 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
218 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
219 | |||
220 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec new file mode 100644 index 0000000..5687ca1 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec | |||
@@ -0,0 +1,202 @@ | |||
1 | # makefile for libpng on DEC Alpha Unix | ||
2 | # Copyright (C) 2000-2002, 2006, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | # Library name: | ||
10 | PNGMAJ = 15 | ||
11 | LIBNAME = libpng15 | ||
12 | |||
13 | # Shared library names: | ||
14 | LIBSO=$(LIBNAME).so | ||
15 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
16 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
17 | OLDSO=libpng.so | ||
18 | |||
19 | # Utilities: | ||
20 | AR_RC=ar rc | ||
21 | CC=cc | ||
22 | MKDIR_P=mkdir | ||
23 | LN_SF=ln -f -s | ||
24 | RANLIB=ranlib | ||
25 | RM_F=/bin/rm -f | ||
26 | |||
27 | # where make install puts libpng.a and png.h | ||
28 | prefix=/usr/local | ||
29 | exec_prefix=$(prefix) | ||
30 | INCPATH=$(prefix)/include | ||
31 | LIBPATH=$(exec_prefix)/lib | ||
32 | MANPATH=$(prefix)/man | ||
33 | BINPATH=$(exec_prefix)/bin | ||
34 | |||
35 | # override DESTDIR= on the make install command line to easily support | ||
36 | # installing into a temporary location. Example: | ||
37 | # | ||
38 | # make install DESTDIR=/tmp/build/libpng | ||
39 | # | ||
40 | # If you're going to install into a temporary location | ||
41 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
42 | # you execute make install. | ||
43 | DESTDIR= | ||
44 | |||
45 | DB=$(DESTDIR)$(BINPATH) | ||
46 | DI=$(DESTDIR)$(INCPATH) | ||
47 | DL=$(DESTDIR)$(LIBPATH) | ||
48 | DM=$(DESTDIR)$(MANPATH) | ||
49 | |||
50 | # Where the zlib library and include files are located | ||
51 | #ZLIBLIB=/usr/local/lib | ||
52 | #ZLIBINC=/usr/local/include | ||
53 | ZLIBLIB=../zlib | ||
54 | ZLIBINC=../zlib | ||
55 | |||
56 | CFLAGS=-std -w1 -I$(ZLIBINC) -O # -g -DPNG_DEBUG=1 | ||
57 | LDFLAGS=-L$(ZLIBLIB) -rpath $(ZLIBLIB) libpng.a -lz -lm | ||
58 | |||
59 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
60 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
61 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
62 | |||
63 | all: $(LIBSO) libpng.a pngtest libpng.pc libpng-config | ||
64 | |||
65 | # see scripts/pnglibconf.mak for more options | ||
66 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
67 | cp scripts/pnglibconf.h.prebuilt $@ | ||
68 | |||
69 | libpng.a: $(OBJS) | ||
70 | $(AR_RC) $@ $(OBJS) | ||
71 | $(RANLIB) $@ | ||
72 | |||
73 | libpng.pc: | ||
74 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
75 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
76 | -e s!@libdir@!$(LIBPATH)! \ | ||
77 | -e s!@includedir@!$(INCPATH)! \ | ||
78 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
79 | |||
80 | libpng-config: | ||
81 | ( cat scripts/libpng-config-head.in; \ | ||
82 | echo prefix=\"$(prefix)\"; \ | ||
83 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
84 | echo ccopts=\"-std\"; \ | ||
85 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
86 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
87 | cat scripts/libpng-config-body.in ) > libpng-config | ||
88 | chmod +x libpng-config | ||
89 | |||
90 | $(LIBSO): $(LIBSOMAJ) | ||
91 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
92 | |||
93 | $(LIBSOMAJ): $(OBJS) | ||
94 | $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB) \ | ||
95 | -soname $(LIBSOMAJ) | ||
96 | |||
97 | pngtest: pngtest.o libpng.a | ||
98 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
99 | |||
100 | test: pngtest | ||
101 | ./pngtest | ||
102 | |||
103 | install-headers: png.h pngconf.h pnglibconf.h | ||
104 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
105 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
106 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
107 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
108 | -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
109 | -@/bin/rm -f $(DI)/libpng | ||
110 | (cd $(DI); $(LN_SF)(LIBNAME) libpng; $(LN_SF)(LIBNAME)/* .) | ||
111 | |||
112 | install-static: install-headers libpng.a | ||
113 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
114 | cp libpng.a $(DL)/$(LIBNAME).a | ||
115 | chmod 644 $(DL)/$(LIBNAME).a | ||
116 | -@/bin/rm -f $(DL)/libpng.a | ||
117 | (cd $(DL); $(LN_SF)(LIBNAME).a libpng.a) | ||
118 | |||
119 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
120 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
121 | -@$(RM_F) $(DL)/$(LIBSO) | ||
122 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
123 | -@$(RM_F) $(DL)/$(OLDSO) | ||
124 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
125 | chmod 755 $(DL)/$(LIBSOREL) | ||
126 | (cd $(DL); \ | ||
127 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
128 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
129 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
130 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
131 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
132 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
133 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
134 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
135 | |||
136 | install-man: libpng.3 libpngpf.3 png.5 | ||
137 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
138 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
139 | -@/bin/rm -f $(DM)/man3/libpng.3 | ||
140 | -@/bin/rm -f $(DM)/man3/libpngpf.3 | ||
141 | cp libpng.3 $(DM)/man3 | ||
142 | cp libpngpf.3 $(DM)/man3 | ||
143 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
144 | -@/bin/rm -f $(DM)/man5/png.5 | ||
145 | cp png.5 $(DM)/man5 | ||
146 | |||
147 | install-config: libpng-config | ||
148 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
149 | -@/bin/rm -f $(DB)/libpng-config | ||
150 | -@/bin/rm -f $(DB)/$(LIBNAME)-config | ||
151 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
152 | chmod 755 $(DB)/$(LIBNAME)-config | ||
153 | (cd $(DB); $(LN_SF)(LIBNAME)-config libpng-config) | ||
154 | |||
155 | install: install-static install-shared install-man install-config | ||
156 | |||
157 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
158 | # move the library to its final location. Use test-dd to test it | ||
159 | # before then. | ||
160 | |||
161 | test-dd: | ||
162 | echo | ||
163 | echo Testing installed dynamic shared library in $(DL). | ||
164 | $(CC) -w1 -I$(DI) -I$(ZLIBINC) \ | ||
165 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
166 | -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) \ | ||
167 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
168 | ./pngtestd pngtest.png | ||
169 | |||
170 | test-installed: | ||
171 | echo | ||
172 | echo Testing installed dynamic shared library. | ||
173 | $(CC) -w1 -I$(ZLIBINC) \ | ||
174 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
175 | -L$(ZLIBLIB) -R$(ZLIBLIB) \ | ||
176 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
177 | ./pngtesti pngtest.png | ||
178 | |||
179 | clean: | ||
180 | /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \ | ||
181 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
182 | libpng.pc pnglibconf.h | ||
183 | |||
184 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
185 | |||
186 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
187 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
188 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
189 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
190 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
191 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
192 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
193 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
194 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
195 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
196 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
197 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
198 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
199 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
200 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
201 | |||
202 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dj2 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dj2 new file mode 100644 index 0000000..48fea81 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dj2 | |||
@@ -0,0 +1,62 @@ | |||
1 | # DJGPP (DOS gcc) makefile for libpng | ||
2 | # Copyright (C) 2002, 2006, 2009-2010-2011 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | # where make install will put libpng.a and png.h | ||
10 | #prefix=/usr/local | ||
11 | prefix=. | ||
12 | INCPATH=$(prefix)/include | ||
13 | LIBPATH=$(prefix)/lib | ||
14 | |||
15 | CC=gcc | ||
16 | CFLAGS=-I../zlib -O -DPNG_NO_SNPRINTF | ||
17 | LDFLAGS=-L. -L../zlib/ -lpng -lz -lm | ||
18 | |||
19 | RANLIB=ranlib | ||
20 | |||
21 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
22 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o \ | ||
23 | pngmem.o pngerror.o pngpread.o | ||
24 | |||
25 | all: libpng.a pngtest | ||
26 | |||
27 | # see scripts/pnglibconf.mak for more options | ||
28 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
29 | cp scripts/pnglibconf.h.prebuilt $@ | ||
30 | |||
31 | libpng.a: $(OBJS) | ||
32 | ar rc $@ $(OBJS) | ||
33 | $(RANLIB) $@ | ||
34 | |||
35 | pngtest: pngtest.o libpng.a | ||
36 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
37 | coff2exe pngtest | ||
38 | |||
39 | test: pngtest | ||
40 | ./pngtest | ||
41 | clean: | ||
42 | rm -f *.o libpng.a pngtest pngout.png pnglibconf.h | ||
43 | |||
44 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
45 | |||
46 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
47 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
48 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
49 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
50 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
51 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
52 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
53 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
54 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
55 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
56 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
57 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
58 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
59 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
60 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
61 | |||
62 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.elf b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.elf new file mode 100644 index 0000000..ceea7fc --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.elf | |||
@@ -0,0 +1,263 @@ | |||
1 | # makefile for libpng.a and libpng15.so on Linux ELF with gcc | ||
2 | # Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2011 Greg Roelofs | ||
3 | # and Glenn Randers-Pehrson | ||
4 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
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 | # Modified for Debian by Junichi Uekawa and Josselin Mouette | ||
11 | # Major modifications are: | ||
12 | # * link libpng explicitly with libz and libm | ||
13 | # * $(OLDSO).15 is a symlink rather than a different library | ||
14 | # * versioned symbols | ||
15 | |||
16 | # Library name: | ||
17 | LIBNAME = libpng15 | ||
18 | PNGMAJ = 15 | ||
19 | |||
20 | # Shared library names: | ||
21 | LIBSO=$(LIBNAME).so | ||
22 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
23 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
24 | OLDSO=libpng.so | ||
25 | OLDSOMAJ=libpng.so.15 | ||
26 | |||
27 | # Utilities: | ||
28 | AR_RC=ar rc | ||
29 | CC=gcc | ||
30 | MKDIR_P=mkdir -p | ||
31 | LN_SF=ln -sf | ||
32 | RANLIB=ranlib | ||
33 | RM_F=/bin/rm -f | ||
34 | |||
35 | # where "make install" puts libpng15.a, libpng15.so*, | ||
36 | # libpng15/png.h, libpng15/pngconf.h, and libpng15/pnglibconf.h | ||
37 | # Prefix must be a full pathname. | ||
38 | prefix=/usr/local | ||
39 | exec_prefix=$(prefix) | ||
40 | |||
41 | # Where the zlib library and include files are located. | ||
42 | ZLIBLIB=/usr/local/lib | ||
43 | ZLIBINC=/usr/local/include | ||
44 | # ZLIBLIB=../zlib | ||
45 | # ZLIBINC=../zlib | ||
46 | |||
47 | ALIGN= | ||
48 | # for i386: | ||
49 | #ALIGN=-malign-loops=2 -malign-functions=2 | ||
50 | |||
51 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
52 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
53 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
54 | |||
55 | # for pgcc version 2.95.1, -O3 is buggy; don't use it. | ||
56 | |||
57 | CFLAGS=-W -Wall -D_REENTRANT -O2 \ | ||
58 | $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 | ||
59 | |||
60 | LDFLAGS=-L. -lpng15 | ||
61 | LDFLAGS_A=libpng.a -lz -lm | ||
62 | LIBADDFLAGS=-lz -lm | ||
63 | |||
64 | |||
65 | INCPATH=$(prefix)/include | ||
66 | LIBPATH=$(exec_prefix)/lib | ||
67 | MANPATH=$(prefix)/man | ||
68 | BINPATH=$(exec_prefix)/bin | ||
69 | |||
70 | # override DESTDIR= on the make install command line to easily support | ||
71 | # installing into a temporary location. Example: | ||
72 | # | ||
73 | # make install DESTDIR=/tmp/build/libpng | ||
74 | # | ||
75 | # If you're going to install into a temporary location | ||
76 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
77 | # you execute make install. | ||
78 | DESTDIR= | ||
79 | |||
80 | DB=$(DESTDIR)$(BINPATH) | ||
81 | DI=$(DESTDIR)$(INCPATH) | ||
82 | DL=$(DESTDIR)$(LIBPATH) | ||
83 | DM=$(DESTDIR)$(MANPATH) | ||
84 | |||
85 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
86 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
87 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
88 | |||
89 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
90 | |||
91 | .SUFFIXES: .c .o .pic.o | ||
92 | |||
93 | .c.pic.o: | ||
94 | $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c | ||
95 | |||
96 | all: libpng.a $(LIBSO) pngtest pngtest-static libpng.pc libpng-config | ||
97 | |||
98 | # see scripts/pnglibconf.mak for more options | ||
99 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
100 | cp scripts/pnglibconf.h.prebuilt $@ | ||
101 | |||
102 | libpng.a: $(OBJS) | ||
103 | $(AR_RC) $@ $(OBJS) | ||
104 | $(RANLIB) $@ | ||
105 | |||
106 | libpng.pc: | ||
107 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
108 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
109 | -e s!@libdir@!$(LIBPATH)! \ | ||
110 | -e s!@includedir@!$(INCPATH)! \ | ||
111 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
112 | |||
113 | libpng.syms: png.h pngconf.h pnglibconf.h | ||
114 | $(CC) $(CFLAGS) -E -DPNG_BUILDSYMS -DPNG_INTERNAL png.h |\ | ||
115 | awk -F '[\t [\\]();]' -v PNGMAJ=$(PNGMAJ) 'BEGIN{printf("PNG15_%s {global:\n",PNGMAJ)}\ | ||
116 | { for (i=1;i+2<=NF;++i)\ | ||
117 | if ($$(i)=="PNG_FUNCTION_EXPORT" && $$(i+2)=="END")\ | ||
118 | print $$(i+1) ";";\ | ||
119 | for (i=1;i+1<=NF;++i)\ | ||
120 | if ($$(i)=="PNG_DATA_EXPORT")\ | ||
121 | print $$(i+1) ";";}\ | ||
122 | END{print "local: *; };"}' >$@.new | ||
123 | $(RM_F) $@ | ||
124 | mv $@.new $@ | ||
125 | |||
126 | libpng-config: | ||
127 | ( cat scripts/libpng-config-head.in; \ | ||
128 | echo prefix=\"$(prefix)\"; \ | ||
129 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
130 | echo L_opts=\"\"; \ | ||
131 | echo R_opts=\"\"; \ | ||
132 | echo libs=\"-lpng15\"; \ | ||
133 | echo all_libs=\"-lpng15 $(LIBADDFLAGS)\"; \ | ||
134 | cat scripts/libpng-config-body.in ) > libpng-config | ||
135 | chmod +x libpng-config | ||
136 | |||
137 | $(LIBSO): $(LIBSOMAJ) | ||
138 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
139 | |||
140 | $(LIBSOMAJ): $(OBJSDLL) libpng.syms | ||
141 | $(CC) -shared -Wl,-soname,$(LIBSOMAJ) \ | ||
142 | -Wl,-version-script,libpng.syms \ | ||
143 | -o $(LIBSOMAJ) \ | ||
144 | $(OBJSDLL) | ||
145 | |||
146 | pngtest: pngtest.o $(LIBSO) | ||
147 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
148 | |||
149 | pngtest-static: pngtest.o libpng.a | ||
150 | $(CC) -o pngtest-static $(CFLAGS) pngtest.o $(LDFLAGS_A) | ||
151 | |||
152 | test: pngtest pngtest-static | ||
153 | @echo "" | ||
154 | @echo " Running pngtest dynamically linked with $(LIBSO):" | ||
155 | @echo "" | ||
156 | LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" ./pngtest | ||
157 | @echo "" | ||
158 | @echo " Running pngtest statically linked with libpng.a:" | ||
159 | @echo "" | ||
160 | ./pngtest-static | ||
161 | |||
162 | install-headers: png.h pngconf.h pnglibconf.h | ||
163 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
164 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
165 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
166 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
167 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
168 | -@$(RM_F) $(DI)/libpng | ||
169 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
170 | |||
171 | install-static: install-headers libpng.a | ||
172 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
173 | cp libpng.a $(DL)/$(LIBNAME).a | ||
174 | chmod 644 $(DL)/$(LIBNAME).a | ||
175 | -@$(RM_F) $(DL)/libpng.a | ||
176 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
177 | |||
178 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
179 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
180 | -@$(RM_F) $(DL)/$(LIBSO) | ||
181 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
182 | -@$(RM_F) $(DL)/$(OLDSO) | ||
183 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
184 | chmod 755 $(DL)/$(LIBSOREL) | ||
185 | (cd $(DL); \ | ||
186 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
187 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
188 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
189 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
190 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
191 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
192 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
193 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
194 | |||
195 | install-man: libpng.3 libpngpf.3 png.5 | ||
196 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
197 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
198 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
199 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
200 | cp libpng.3 $(DM)/man3 | ||
201 | cp libpngpf.3 $(DM)/man3 | ||
202 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
203 | -@$(RM_F) $(DM)/man5/png.5 | ||
204 | cp png.5 $(DM)/man5 | ||
205 | |||
206 | install-config: libpng-config | ||
207 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
208 | -@$(RM_F) $(DB)/libpng-config | ||
209 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
210 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
211 | chmod 755 $(DB)/$(LIBNAME)-config | ||
212 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
213 | |||
214 | install: install-static install-shared install-man install-config | ||
215 | |||
216 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
217 | # move the library to its final location. Use test-dd to test it | ||
218 | # before then. | ||
219 | |||
220 | test-dd: | ||
221 | echo | ||
222 | echo Testing installed dynamic shared library in $(DL). | ||
223 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
224 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
225 | -L$(DL) -L$(ZLIBLIB) -Wl, -rpath,$(DL) -Wl,-rpath,$(ZLIBLIB) \ | ||
226 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
227 | ./pngtestd pngtest.png | ||
228 | |||
229 | test-installed: | ||
230 | $(CC) -I$(ZLIBINC) \ | ||
231 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
232 | -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ | ||
233 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
234 | ./pngtesti pngtest.png | ||
235 | |||
236 | clean: | ||
237 | $(RM_F) *.o libpng.a libpng.syms pngtest pngout.png libpng-config \ | ||
238 | $(LIBSO) $(LIBSOMAJ)* pngtest-static pngtesti \ | ||
239 | libpng.pc pnglibconf.h | ||
240 | |||
241 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
242 | writelock: | ||
243 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
244 | |||
245 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
246 | |||
247 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
248 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
249 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
250 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
251 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
252 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
253 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
254 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
255 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
256 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
257 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
258 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
259 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
260 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
261 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
262 | |||
263 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.freebsd b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.freebsd new file mode 100644 index 0000000..ced7be2 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.freebsd | |||
@@ -0,0 +1,53 @@ | |||
1 | # makefile for libpng under FreeBSD | ||
2 | # Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov | ||
3 | # | ||
4 | # This code is released under the libpng license. | ||
5 | # For conditions of distribution and use, see the disclaimer | ||
6 | # and license in png.h | ||
7 | |||
8 | PREFIX?= /usr/local | ||
9 | SHLIB_VER?= 15 | ||
10 | |||
11 | LIB= png | ||
12 | SHLIB_MAJOR= ${SHLIB_VER} | ||
13 | SHLIB_MINOR= 0 | ||
14 | NOPROFILE= YES | ||
15 | NOOBJ= YES | ||
16 | |||
17 | # where make install puts libpng.a and png.h | ||
18 | DESTDIR= ${PREFIX} | ||
19 | LIBDIR= /lib | ||
20 | INCS= png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
21 | INCSDIR= /include/libpng | ||
22 | INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk | ||
23 | MAN= libpng.3 libpngpf.3 png.5 | ||
24 | MANDIR= /man/man | ||
25 | SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \ | ||
26 | libpng/pngconf.h ${INCSDIR}/../pngconf.h \ | ||
27 | libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h | ||
28 | LDADD+= -lm -lz | ||
29 | DPADD+= ${LIBM} ${LIBZ} | ||
30 | |||
31 | CFLAGS+= -I. | ||
32 | |||
33 | SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ | ||
34 | pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ | ||
35 | pngwtran.c pngmem.c pngerror.c pngpread.c | ||
36 | |||
37 | pngtest: pngtest.o libpng.a | ||
38 | ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm | ||
39 | |||
40 | CLEANFILES= pngtest pngtest.o pngout.png | ||
41 | |||
42 | test: pngtest | ||
43 | ./pngtest | ||
44 | |||
45 | # see scripts/pnglibconf.mak for more options | ||
46 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
47 | cp scripts/pnglibconf.h.prebuilt $@ | ||
48 | |||
49 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
50 | writelock: | ||
51 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
52 | |||
53 | .include <bsd.lib.mk> | ||
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 | ||
11 | ZLIBINC = ../zlib | ||
12 | ZLIBLIB = ../zlib | ||
13 | |||
14 | # Compiler, linker, lib and other tools | ||
15 | CC = gcc | ||
16 | LD = $(CC) | ||
17 | AR_RC = ar rcs | ||
18 | RANLIB = ranlib | ||
19 | RM_F = rm -f | ||
20 | |||
21 | CDEBUG = -g -DPNG_DEBUG=5 | ||
22 | LDDEBUG = | ||
23 | CRELEASE = -O2 | ||
24 | LDRELEASE = -s | ||
25 | #CFLAGS = -W -Wall $(CDEBUG) | ||
26 | CFLAGS = -W -Wall $(CRELEASE) | ||
27 | #LDFLAGS = $(LDDEBUG) | ||
28 | LDFLAGS = $(LDRELEASE) | ||
29 | LIBS = -lz -lm | ||
30 | |||
31 | # File extensions | ||
32 | O=.o | ||
33 | A=.a | ||
34 | EXE= | ||
35 | |||
36 | # Variables | ||
37 | OBJS = 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 | ||
42 | all: static | ||
43 | |||
44 | # see scripts/pnglibconf.mak for more options | ||
45 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
46 | cp scripts/pnglibconf.h.prebuilt $@ | ||
47 | |||
48 | .c$(O): | ||
49 | $(CC) -c $(CFLAGS) -I$(ZLIBINC) $< | ||
50 | |||
51 | static: libpng$(A) pngtest$(EXE) | ||
52 | |||
53 | shared: | ||
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 | |||
58 | libpng$(A): $(OBJS) | ||
59 | $(AR_RC) $@ $(OBJS) | ||
60 | $(RANLIB) $@ | ||
61 | |||
62 | test: pngtest$(EXE) | ||
63 | ./pngtest$(EXE) | ||
64 | |||
65 | pngtest$(EXE): pngtest$(O) libpng$(A) | ||
66 | $(LD) $(LDFLAGS) -L$(ZLIBLIB) -o $@ pngtest$(O) libpng$(A) $(LIBS) | ||
67 | |||
68 | clean: | ||
69 | $(RM_F) *$(O) libpng$(A) pngtest$(EXE) pngout.png pnglibconf.h | ||
70 | |||
71 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
72 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
73 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
74 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
75 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
76 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
77 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
78 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
79 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
80 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
81 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
82 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
83 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
84 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
85 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
86 | |||
87 | pngtest$(O): png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hp64 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hp64 new file mode 100644 index 0000000..0f4f7ac --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hp64 | |||
@@ -0,0 +1,224 @@ | |||
1 | # makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product. | ||
2 | # Copyright (C) 1999-2002, 2006, 2009, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42 | ||
4 | # contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard | ||
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 | # Where the zlib library and include files are located | ||
11 | ZLIBLIB=/opt/zlib/lib | ||
12 | ZLIBINC=/opt/zlib/include | ||
13 | |||
14 | # Note that if you plan to build a libpng shared library, zlib must also | ||
15 | # be a shared library, which zlib's configure does not do. After running | ||
16 | # zlib's configure, edit the appropriate lines of makefile to read: | ||
17 | # CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \ | ||
18 | # LDSHARED=ld -b | ||
19 | # SHAREDLIB=libz.sl | ||
20 | |||
21 | # Library name: | ||
22 | LIBNAME = libpng15 | ||
23 | PNGMAJ = 15 | ||
24 | |||
25 | # Shared library names: | ||
26 | LIBSO=$(LIBNAME).sl | ||
27 | LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ) | ||
28 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
29 | OLDSO=libpng.sl | ||
30 | |||
31 | # Utilities: | ||
32 | AR_RC=ar rc | ||
33 | CC=cc | ||
34 | MKDIR_P=mkdir -p | ||
35 | LN_SF=ln -sf | ||
36 | RANLIB=ranlib | ||
37 | RM_F=/bin/rm -f | ||
38 | |||
39 | CFLAGS=-I$(ZLIBINC) -O -Ae -Wl,+vnocompatwarnings +DD64 \ | ||
40 | -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +Z -DHAVE_UNISTD_H -DUSE_MMAP | ||
41 | # Caution: be sure you have built zlib with the same CFLAGS. | ||
42 | CCFLAGS=-I$(ZLIBINC) -O -Ae -Wl,+vnocompatwarnings +DD64 \ | ||
43 | -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +Z -DHAVE_UNISTD_H -DUSE_MMAP | ||
44 | |||
45 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm | ||
46 | |||
47 | # where make install puts libpng.a, libpng15.sl, and png.h | ||
48 | prefix=/opt/libpng | ||
49 | exec_prefix=$(prefix) | ||
50 | INCPATH=$(prefix)/include | ||
51 | LIBPATH=$(exec_prefix)/lib | ||
52 | MANPATH=$(prefix)/man | ||
53 | BINPATH=$(exec_prefix)/bin | ||
54 | |||
55 | # override DESTDIR= on the make install command line to easily support | ||
56 | # installing into a temporary location. Example: | ||
57 | # | ||
58 | # make install DESTDIR=/tmp/build/libpng | ||
59 | # | ||
60 | # If you're going to install into a temporary location | ||
61 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
62 | # you execute make install. | ||
63 | DESTDIR= | ||
64 | |||
65 | DB=$(DESTDIR)$(BINPATH) | ||
66 | DI=$(DESTDIR)$(INCPATH) | ||
67 | DL=$(DESTDIR)$(LIBPATH) | ||
68 | DM=$(DESTDIR)$(MANPATH) | ||
69 | |||
70 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
71 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
72 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
73 | |||
74 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
75 | |||
76 | .SUFFIXES: .c .o .pic.o | ||
77 | |||
78 | .c.pic.o: | ||
79 | $(CC) -c $(CFLAGS) +z -o $@ $*.c | ||
80 | |||
81 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
82 | |||
83 | # see scripts/pnglibconf.mak for more options | ||
84 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
85 | cp scripts/pnglibconf.h.prebuilt $@ | ||
86 | |||
87 | libpng.a: $(OBJS) | ||
88 | $(AR_RC) $@ $(OBJS) | ||
89 | $(RANLIB) $@ | ||
90 | |||
91 | libpng.pc: | ||
92 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
93 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
94 | -e s!@libdir@!$(LIBPATH)! \ | ||
95 | -e s!@includedir@!$(INCPATH)! \ | ||
96 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
97 | |||
98 | libpng-config: | ||
99 | ( cat scripts/libpng-config-head.in; \ | ||
100 | echo prefix=\"$(prefix)\"; \ | ||
101 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
102 | echo ccopts=\"-Ae +DA1.1 +DS2.0\"; \ | ||
103 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
104 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
105 | cat scripts/libpng-config-body.in ) > libpng-config | ||
106 | chmod +x libpng-config | ||
107 | |||
108 | $(LIBSO): $(LIBSOMAJ) | ||
109 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
110 | |||
111 | $(LIBSOMAJ): $(OBJSDLL) | ||
112 | $(LD) -b +s \ | ||
113 | +h $(LIBSOMAJ) -o $(LIBSOMAJ) $(OBJSDLL) | ||
114 | |||
115 | pngtest: pngtest.o libpng.a | ||
116 | $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS) | ||
117 | |||
118 | test: pngtest | ||
119 | ./pngtest | ||
120 | |||
121 | install-headers: png.h pngconf.h pnglibconf.h | ||
122 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
123 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
124 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
125 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
126 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
127 | -@$(RM_F) $(DI)/libpng | ||
128 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
129 | |||
130 | install-static: install-headers libpng.a | ||
131 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
132 | cp libpng.a $(DL)/$(LIBNAME).a | ||
133 | chmod 644 $(DL)/$(LIBNAME).a | ||
134 | -@$(RM_F) $(DL)/libpng.a | ||
135 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
136 | |||
137 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
138 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
139 | -@$(RM_F) $(DL)/$(LIBSO) | ||
140 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
141 | -@$(RM_F) $(DL)/$(OLDSO) | ||
142 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
143 | chmod 755 $(DL)/$(LIBSOREL) | ||
144 | (cd $(DL); \ | ||
145 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
146 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
147 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
148 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
149 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
150 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
151 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
152 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
153 | |||
154 | install-man: libpng.3 libpngpf.3 png.5 | ||
155 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
156 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
157 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
158 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
159 | cp libpng.3 $(DM)/man3 | ||
160 | cp libpngpf.3 $(DM)/man3 | ||
161 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
162 | -@$(RM_F) $(DM)/man5/png.5 | ||
163 | cp png.5 $(DM)/man5 | ||
164 | |||
165 | install-config: libpng-config | ||
166 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
167 | -@$(RM_F) $(DB)/libpng-config | ||
168 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
169 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
170 | chmod 755 $(DB)/$(LIBNAME)-config | ||
171 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
172 | |||
173 | install: install-static install-shared install-man install-config | ||
174 | |||
175 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
176 | # move the library to its final location. Use test-dd to test it | ||
177 | # before then. | ||
178 | |||
179 | test-dd: | ||
180 | echo | ||
181 | echo Testing installed dynamic shared library in $(DL). | ||
182 | $(CC) -I$(DI) -I$(ZLIBINC) $(CCFLAGS) \ | ||
183 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
184 | -L$(DL) -L$(ZLIBLIB) \ | ||
185 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
186 | ./pngtestd pngtest.png | ||
187 | |||
188 | test-installed: | ||
189 | echo | ||
190 | echo Testing installed dynamic shared library. | ||
191 | $(CC) $(CCFLAGS) \ | ||
192 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
193 | -L$(ZLIBLIB) \ | ||
194 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
195 | ./pngtesti pngtest.png | ||
196 | |||
197 | clean: | ||
198 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ | ||
199 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
200 | libpng.pc pnglibconf.h | ||
201 | |||
202 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
203 | writelock: | ||
204 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
205 | |||
206 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
207 | |||
208 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
209 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
210 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
211 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
212 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
213 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
214 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
215 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
216 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
217 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
218 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
219 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
220 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
221 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
222 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
223 | |||
224 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hpgcc b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hpgcc new file mode 100644 index 0000000..28ca7bb --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hpgcc | |||
@@ -0,0 +1,230 @@ | |||
1 | # makefile for libpng on HP-UX using GCC with the HP ANSI/C linker. | ||
2 | # Copyright (C) 2002, 2006-2008, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 2001, Laurent faillie | ||
4 | # Copyright (C) 1998, 1999 Greg Roelofs | ||
5 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
6 | # | ||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # Library name: | ||
12 | LIBNAME = libpng15 | ||
13 | PNGMAJ = 15 | ||
14 | |||
15 | # Shared library names: | ||
16 | LIBSO=$(LIBNAME).sl | ||
17 | LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ) | ||
18 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
19 | OLDSO=libpng.sl | ||
20 | |||
21 | # Utilities: | ||
22 | CC=gcc | ||
23 | LD=ld | ||
24 | AR_RC=ar rc | ||
25 | MKDIR_P=mkdir -p | ||
26 | LN_SF=ln -sf | ||
27 | RANLIB=ranlib | ||
28 | RM_F=/bin/rm -f | ||
29 | |||
30 | # where "make install" puts libpng.a, $(OLDSO)*, png.h, pngconf.h | ||
31 | # and pnglibconf.h | ||
32 | prefix=/usr/local | ||
33 | exec_prefix=$(prefix) | ||
34 | |||
35 | # Where the zlib library and include files are located | ||
36 | ZLIBLIB=/opt/zlib/lib | ||
37 | ZLIBINC=/opt/zlib/include | ||
38 | |||
39 | # Note that if you plan to build a libpng shared library, zlib must also | ||
40 | # be a shared library, which zlib's configure does not do. After running | ||
41 | # zlib's configure, edit the appropriate lines of makefile to read: | ||
42 | # CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \ | ||
43 | # LDSHARED=ld -b | ||
44 | # SHAREDLIB=libz.sl | ||
45 | |||
46 | ALIGN= | ||
47 | # for i386: | ||
48 | #ALIGN=-malign-loops=2 -malign-functions=2 | ||
49 | |||
50 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
51 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
52 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
53 | |||
54 | # for pgcc version 2.95.1, -O3 is buggy; don't use it. | ||
55 | |||
56 | CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops -DPNG_NO_MMX_CODE \ | ||
57 | $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 | ||
58 | #LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng15 -lz -lm | ||
59 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng15 -lz -lm | ||
60 | |||
61 | INCPATH=$(prefix)/include | ||
62 | LIBPATH=$(exec_prefix)/lib | ||
63 | MANPATH=$(prefix)/man | ||
64 | BINPATH=$(exec_prefix)/bin | ||
65 | |||
66 | # override DESTDIR= on the make install command line to easily support | ||
67 | # installing into a temporary location. Example: | ||
68 | # | ||
69 | # make install DESTDIR=/tmp/build/libpng | ||
70 | # | ||
71 | # If you're going to install into a temporary location | ||
72 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
73 | # you execute make install. | ||
74 | DESTDIR= | ||
75 | |||
76 | DB=$(DESTDIR)$(BINPATH) | ||
77 | DI=$(DESTDIR)$(INCPATH) | ||
78 | DL=$(DESTDIR)$(LIBPATH) | ||
79 | DM=$(DESTDIR)$(MANPATH) | ||
80 | |||
81 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
82 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
83 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
84 | |||
85 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
86 | |||
87 | .SUFFIXES: .c .o .pic.o | ||
88 | |||
89 | .c.pic.o: | ||
90 | $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c | ||
91 | |||
92 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
93 | |||
94 | libpng.a: $(OBJS) | ||
95 | $(AR_RC) $@ $(OBJS) | ||
96 | $(RANLIB) $@ | ||
97 | |||
98 | libpng.pc: | ||
99 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
100 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
101 | -e s!@libdir@!$(LIBPATH)! \ | ||
102 | -e s!@includedir@!$(INCPATH)! \ | ||
103 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
104 | |||
105 | libpng-config: | ||
106 | ( cat scripts/libpng-config-head.in; \ | ||
107 | echo prefix=\"$(prefix)\"; \ | ||
108 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
109 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
110 | cat scripts/libpng-config-body.in ) > libpng-config | ||
111 | chmod +x libpng-config | ||
112 | |||
113 | $(LIBSO): $(LIBSOMAJ) | ||
114 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
115 | |||
116 | $(LIBSOMAJ): $(OBJSDLL) | ||
117 | $(LD) -b +s \ | ||
118 | +h $(LIBSOMAJ) -o $(LIBSOMAJ) $(OBJSDLL) | ||
119 | |||
120 | pngtest: pngtest.o $(LIBSO) | ||
121 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
122 | |||
123 | test: pngtest | ||
124 | ./pngtest | ||
125 | |||
126 | |||
127 | install-headers: png.h pngconf.h pnglibconf.h | ||
128 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
129 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
130 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
131 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
132 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
133 | -@$(RM_F) $(DI)/libpng | ||
134 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
135 | |||
136 | install-static: install-headers libpng.a | ||
137 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
138 | cp libpng.a $(DL)/$(LIBNAME).a | ||
139 | chmod 644 $(DL)/$(LIBNAME).a | ||
140 | -@$(RM_F) $(DL)/libpng.a | ||
141 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
142 | |||
143 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
144 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
145 | -@$(RM_F) $(DL)/$(LIBSO) | ||
146 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
147 | -@$(RM_F) $(DL)/$(OLDSO) | ||
148 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
149 | chmod 755 $(DL)/$(LIBSOREL) | ||
150 | (cd $(DL); \ | ||
151 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
152 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
153 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
154 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
155 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
156 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
157 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
158 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
159 | |||
160 | install-man: libpng.3 libpngpf.3 png.5 | ||
161 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
162 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
163 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
164 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
165 | cp libpng.3 $(DM)/man3 | ||
166 | cp libpngpf.3 $(DM)/man3 | ||
167 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
168 | -@$(RM_F) $(DM)/man5/png.5 | ||
169 | cp png.5 $(DM)/man5 | ||
170 | |||
171 | install-config: libpng-config | ||
172 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
173 | -@$(RM_F) $(DB)/libpng-config | ||
174 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
175 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
176 | chmod 755 $(DB)/$(LIBNAME)-config | ||
177 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
178 | |||
179 | install: install-static install-shared install-man install-config | ||
180 | |||
181 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
182 | # move the library to its final location. Use test-dd to test it | ||
183 | # before then. | ||
184 | |||
185 | test-dd: | ||
186 | echo | ||
187 | echo Testing installed dynamic shared library in $(DL). | ||
188 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
189 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
190 | -L$(DL) -L$(ZLIBLIB) -Wl,-rpath,$(DL) -Wl,-rpath,$(ZLIBLIB) \ | ||
191 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
192 | ./pngtestd pngtest.png | ||
193 | |||
194 | test-installed: | ||
195 | echo | ||
196 | echo Testing installed dynamic shared library. | ||
197 | $(CC) -I$(ZLIBINC) \ | ||
198 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
199 | -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ | ||
200 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
201 | ./pngtesti pngtest.png | ||
202 | |||
203 | clean: | ||
204 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ | ||
205 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
206 | libpng.pc pnglibconf.h | ||
207 | |||
208 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
209 | writelock: | ||
210 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
211 | |||
212 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
213 | |||
214 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
215 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
216 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
217 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
218 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
219 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
220 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
221 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
222 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
223 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
224 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
225 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
228 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
229 | |||
230 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hpux b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hpux new file mode 100644 index 0000000..fd3a20d --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.hpux | |||
@@ -0,0 +1,221 @@ | |||
1 | # makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product. | ||
2 | # Copyright (C) 1999-2002, 2006, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42 | ||
4 | # contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard | ||
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 | # Where the zlib library and include files are located | ||
11 | ZLIBLIB=/opt/zlib/lib | ||
12 | ZLIBINC=/opt/zlib/include | ||
13 | |||
14 | # Note that if you plan to build a libpng shared library, zlib must also | ||
15 | # be a shared library, which zlib's configure does not do. After running | ||
16 | # zlib's configure, edit the appropriate lines of makefile to read: | ||
17 | # CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \ | ||
18 | # LDSHARED=ld -b | ||
19 | # SHAREDLIB=libz.sl | ||
20 | |||
21 | # Library name: | ||
22 | LIBNAME = libpng15 | ||
23 | PNGMAJ = 15 | ||
24 | |||
25 | # Shared library names: | ||
26 | LIBSO=$(LIBNAME).sl | ||
27 | LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ) | ||
28 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
29 | OLDSO=libpng.sl | ||
30 | |||
31 | # Utilities: | ||
32 | AR_RC=ar rc | ||
33 | CC=cc | ||
34 | MKDIR_P=mkdir -p | ||
35 | LN_SF=ln -sf | ||
36 | RANLIB=ranlib | ||
37 | RM_F=/bin/rm -f | ||
38 | |||
39 | # where make install puts libpng.a, libpng15.sl, and png.h | ||
40 | prefix=/opt/libpng | ||
41 | exec_prefix=$(prefix) | ||
42 | INCPATH=$(prefix)/include | ||
43 | LIBPATH=$(exec_prefix)/lib | ||
44 | MANPATH=$(prefix)/man | ||
45 | BINPATH=$(exec_prefix)/bin | ||
46 | |||
47 | CFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0 | ||
48 | # Caution: be sure you have built zlib with the same CFLAGS. | ||
49 | CCFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0 | ||
50 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm | ||
51 | |||
52 | # override DESTDIR= on the make install command line to easily support | ||
53 | # installing into a temporary location. Example: | ||
54 | # | ||
55 | # make install DESTDIR=/tmp/build/libpng | ||
56 | # | ||
57 | # If you're going to install into a temporary location | ||
58 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
59 | # you execute make install. | ||
60 | DESTDIR= | ||
61 | |||
62 | DB=$(DESTDIR)$(BINPATH) | ||
63 | DI=$(DESTDIR)$(INCPATH) | ||
64 | DL=$(DESTDIR)$(LIBPATH) | ||
65 | DM=$(DESTDIR)$(MANPATH) | ||
66 | |||
67 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
68 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
69 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
70 | |||
71 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
72 | |||
73 | .SUFFIXES: .c .o .pic.o | ||
74 | |||
75 | .c.pic.o: | ||
76 | $(CC) -c $(CFLAGS) +z -o $@ $*.c | ||
77 | |||
78 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
79 | |||
80 | # see scripts/pnglibconf.mak for more options | ||
81 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
82 | cp scripts/pnglibconf.h.prebuilt $@ | ||
83 | |||
84 | libpng.a: $(OBJS) | ||
85 | $(AR_RC) $@ $(OBJS) | ||
86 | $(RANLIB) $@ | ||
87 | |||
88 | libpng.pc: | ||
89 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
90 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
91 | -e s!@libdir@!$(LIBPATH)! \ | ||
92 | -e s!@includedir@!$(INCPATH)! \ | ||
93 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
94 | |||
95 | libpng-config: | ||
96 | ( cat scripts/libpng-config-head.in; \ | ||
97 | echo prefix=\"$(prefix)\"; \ | ||
98 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
99 | echo ccopts=\"-Ae +DA1.1 +DS2.0\"; \ | ||
100 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
101 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
102 | cat scripts/libpng-config-body.in ) > libpng-config | ||
103 | chmod +x libpng-config | ||
104 | |||
105 | $(LIBSO): $(LIBSOMAJ) | ||
106 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
107 | |||
108 | $(LIBSOMAJ): $(OBJSDLL) | ||
109 | $(LD) -b +s \ | ||
110 | +h $(LIBSOMAJ) -o $(LIBSOMAJ) $(OBJSDLL) | ||
111 | |||
112 | pngtest: pngtest.o libpng.a | ||
113 | $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS) | ||
114 | |||
115 | test: pngtest | ||
116 | ./pngtest | ||
117 | |||
118 | install-headers: png.h pngconf.h pnglibconf.h | ||
119 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
120 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
121 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
122 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
123 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
124 | -@$(RM_F) $(DI)/libpng | ||
125 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
126 | |||
127 | install-static: install-headers libpng.a | ||
128 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
129 | cp libpng.a $(DL)/$(LIBNAME).a | ||
130 | chmod 644 $(DL)/$(LIBNAME).a | ||
131 | -@$(RM_F) $(DL)/libpng.a | ||
132 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
133 | |||
134 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
135 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
136 | -@$(RM_F) $(DL)/$(LIBSO) | ||
137 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
138 | -@$(RM_F) $(DL)/$(OLDSO) | ||
139 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
140 | chmod 755 $(DL)/$(LIBSOREL) | ||
141 | (cd $(DL); \ | ||
142 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
143 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
144 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
145 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
146 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
147 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
148 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
149 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
150 | |||
151 | install-man: libpng.3 libpngpf.3 png.5 | ||
152 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
153 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
154 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
155 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
156 | cp libpng.3 $(DM)/man3 | ||
157 | cp libpngpf.3 $(DM)/man3 | ||
158 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
159 | -@$(RM_F) $(DM)/man5/png.5 | ||
160 | cp png.5 $(DM)/man5 | ||
161 | |||
162 | install-config: libpng-config | ||
163 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
164 | -@$(RM_F) $(DB)/libpng-config | ||
165 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
166 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
167 | chmod 755 $(DB)/$(LIBNAME)-config | ||
168 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
169 | |||
170 | install: install-static install-shared install-man install-config | ||
171 | |||
172 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
173 | # move the library to its final location. Use test-dd to test it | ||
174 | # before then. | ||
175 | |||
176 | test-dd: | ||
177 | echo | ||
178 | echo Testing installed dynamic shared library in $(DL). | ||
179 | $(CC) -I$(DI) -I$(ZLIBINC) $(CCFLAGS) \ | ||
180 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
181 | -L$(DL) -L$(ZLIBLIB) \ | ||
182 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
183 | ./pngtestd pngtest.png | ||
184 | |||
185 | test-installed: | ||
186 | echo | ||
187 | echo Testing installed dynamic shared library. | ||
188 | $(CC) $(CCFLAGS) \ | ||
189 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
190 | -L$(ZLIBLIB) \ | ||
191 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
192 | ./pngtesti pngtest.png | ||
193 | |||
194 | clean: | ||
195 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ | ||
196 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
197 | libpng.pc pnglibconf.h | ||
198 | |||
199 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
200 | writelock: | ||
201 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
202 | |||
203 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
204 | |||
205 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
206 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
207 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
208 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
209 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
210 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
211 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
212 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
213 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
214 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
215 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
216 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
217 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
218 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
219 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
220 | |||
221 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.ibmc b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.ibmc new file mode 100644 index 0000000..8c9440a --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.ibmc | |||
@@ -0,0 +1,82 @@ | |||
1 | # Makefile for libpng (static) | ||
2 | # IBM C version 3.x for Win32 and OS/2 | ||
3 | # Copyright (C) 2006 Glenn Randers-Pehrson | ||
4 | # Copyright (C) 2000 Cosmin Truta | ||
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 | # Notes: | ||
11 | # Derived from makefile.std | ||
12 | # All modules are compiled in C mode | ||
13 | # Tested under Win32, expected to work under OS/2 | ||
14 | # Can be easily adapted for IBM VisualAge/C++ for AIX | ||
15 | |||
16 | # Location of the zlib library and include files | ||
17 | ZLIBINC = ../zlib | ||
18 | ZLIBLIB = ../zlib | ||
19 | |||
20 | # Compiler, linker, lib and other tools | ||
21 | CC = icc | ||
22 | LD = ilink | ||
23 | AR = ilib | ||
24 | RM = del | ||
25 | |||
26 | CFLAGS = -I$(ZLIBINC) -Mc -O2 -W3 | ||
27 | LDFLAGS = | ||
28 | |||
29 | # File extensions | ||
30 | O=.obj | ||
31 | A=.lib | ||
32 | E=.exe | ||
33 | |||
34 | # Variables | ||
35 | OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \ | ||
36 | pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \ | ||
37 | pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O) | ||
38 | |||
39 | LIBS = libpng$(A) $(ZLIBLIB)/zlib$(A) | ||
40 | |||
41 | # Targets | ||
42 | all: libpng$(A) pngtest$(E) | ||
43 | |||
44 | # see scripts/pnglibconf.mak for more options | ||
45 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
46 | cp scripts/pnglibconf.h.prebuilt $@ | ||
47 | |||
48 | libpng$(A): $(OBJS) | ||
49 | $(AR) -out:$@ $(OBJS) | ||
50 | |||
51 | test: pngtest$(E) | ||
52 | pngtest$(E) | ||
53 | |||
54 | pngtest: pngtest$(E) | ||
55 | |||
56 | pngtest$(E): pngtest$(O) libpng$(A) | ||
57 | $(LD) $(LDFLAGS) pngtest$(O) $(LIBS) | ||
58 | |||
59 | clean: | ||
60 | $(RM) *$(O) | ||
61 | $(RM) libpng$(A) | ||
62 | $(RM) pnglibconf.h | ||
63 | $(RM) pngtest$(E) | ||
64 | $(RM) pngout.png | ||
65 | |||
66 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
67 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
68 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
69 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
70 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
71 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
72 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
73 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
74 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
75 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
76 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
77 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
78 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
79 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
80 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
81 | |||
82 | pngtest$(O): png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.intel b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.intel new file mode 100644 index 0000000..4231078 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.intel | |||
@@ -0,0 +1,110 @@ | |||
1 | # Makefile for libpng | ||
2 | # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later | ||
3 | |||
4 | # Copyright (C) 2006 Glenn Randers-Pehrson | ||
5 | # Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is | ||
6 | # copyright 1995 Guy Eric Schalnat, Group 42, Inc. | ||
7 | # | ||
8 | # This code is released under the libpng license. | ||
9 | # For conditions of distribution and use, see the disclaimer | ||
10 | # and license in png.h | ||
11 | # | ||
12 | # To use, do "nmake /f scripts\makefile.intel" | ||
13 | # | ||
14 | # ------------------- Intel C/C++ Compiler 4.0 and later ------------------- | ||
15 | |||
16 | # Where the zlib library and include files are located | ||
17 | ZLIBLIB=..\zlib | ||
18 | ZLIBINC=..\zlib | ||
19 | |||
20 | # Target CPU | ||
21 | CPU=6 # Pentium II | ||
22 | #CPU=5 # Pentium | ||
23 | |||
24 | # Calling convention | ||
25 | CALLING=r # __fastcall | ||
26 | #CALLING=z # __stdcall | ||
27 | #CALLING=d # __cdecl | ||
28 | |||
29 | # Uncomment next to put error messages in a file | ||
30 | #ERRFILE=>>pngerrs | ||
31 | |||
32 | # -------------------------------------------------------------------------- | ||
33 | |||
34 | CC=icl -c | ||
35 | CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo | ||
36 | LD=link | ||
37 | LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO | ||
38 | |||
39 | O=.obj | ||
40 | |||
41 | OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \ | ||
42 | pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \ | ||
43 | pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) | ||
44 | |||
45 | all: test | ||
46 | |||
47 | # see scripts/pnglibconf.mak for more options | ||
48 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
49 | cp scripts/pnglibconf.h.prebuilt $@ | ||
50 | |||
51 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
52 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
53 | |||
54 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
55 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
56 | |||
57 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
58 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
59 | |||
60 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
61 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
62 | |||
63 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
64 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
65 | |||
66 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
67 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
68 | |||
69 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
70 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
71 | |||
72 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
73 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
74 | |||
75 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
76 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
77 | |||
78 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
79 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
80 | |||
81 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
82 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
83 | |||
84 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
85 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
86 | |||
87 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
88 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
89 | |||
90 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
91 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
92 | |||
93 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
94 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
95 | |||
96 | libpng.lib: $(OBJS) | ||
97 | if exist libpng.lib del libpng.lib | ||
98 | lib /NOLOGO /OUT:libpng.lib $(OBJS) | ||
99 | |||
100 | pngtest.exe: pngtest.obj libpng.lib | ||
101 | $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib | ||
102 | |||
103 | pngtest$(O): png.h pngconf.h pnglibconf.h | ||
104 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | ||
105 | |||
106 | test: pngtest.exe | ||
107 | pngtest.exe | ||
108 | |||
109 | |||
110 | # End of makefile for libpng | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr new file mode 100644 index 0000000..912c542 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr | |||
@@ -0,0 +1,109 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) 2002, 2006, 2009 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | # | ||
9 | # This makefile requires the file ansi2knr.c, which you can get | ||
10 | # from the Ghostscript ftp site at ftp://ftp.cs.wisc.edu/ghost/ | ||
11 | # If you have libjpeg, you probably already have ansi2knr.c in the jpeg | ||
12 | # source distribution. | ||
13 | |||
14 | # where make install puts libpng.a and png.h | ||
15 | prefix=/usr/local | ||
16 | INCPATH=$(prefix)/include | ||
17 | LIBPATH=$(prefix)/lib | ||
18 | |||
19 | # override DESTDIR= on the make install command line to easily support | ||
20 | # installing into a temporary location. Example: | ||
21 | # | ||
22 | # make install DESTDIR=/tmp/build/libpng | ||
23 | # | ||
24 | # If you're going to install into a temporary location | ||
25 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
26 | # you execute make install. | ||
27 | DESTDIR= | ||
28 | |||
29 | CC=cc | ||
30 | CFLAGS=-I../zlib -O | ||
31 | LDFLAGS=-L. -L../zlib/ -lpng -lz -lm | ||
32 | # flags for ansi2knr | ||
33 | ANSI2KNRFLAGS= | ||
34 | |||
35 | RANLIB=ranlib | ||
36 | #RANLIB=echo | ||
37 | |||
38 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
39 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
40 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
41 | |||
42 | all: ansi2knr libpng.a pngtest | ||
43 | |||
44 | # see scripts/pnglibconf.mak for more options | ||
45 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
46 | cp scripts/pnglibconf.h.prebuilt $@ | ||
47 | |||
48 | # general rule to allow ansi2knr to work | ||
49 | .c.o: | ||
50 | ./ansi2knr $*.c T$*.c | ||
51 | $(CC) $(CFLAGS) -c T$*.c | ||
52 | rm -f T$*.c $*.o | ||
53 | mv T$*.o $*.o | ||
54 | |||
55 | ansi2knr: ansi2knr.c | ||
56 | $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c | ||
57 | |||
58 | libpng.a: ansi2knr $(OBJS) | ||
59 | ar rc $@ $(OBJS) | ||
60 | $(RANLIB) $@ | ||
61 | |||
62 | pngtest: pngtest.o libpng.a | ||
63 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
64 | |||
65 | test: pngtest | ||
66 | ./pngtest | ||
67 | |||
68 | install: libpng.a png.h pngconf.h pnglibconf.h | ||
69 | -@mkdir $(DESTDIR)$(INCPATH) | ||
70 | -@mkdir $(DESTDIR)$(INCPATH)/libpng | ||
71 | -@mkdir $(DESTDIR)$(LIBPATH) | ||
72 | -@rm -f $(DESTDIR)$(INCPATH)/png.h | ||
73 | -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h | ||
74 | cp png.h $(DESTDIR)$(INCPATH)/libpng | ||
75 | cp pngconf.h $(DESTDIR)$(INCPATH)/libpng | ||
76 | cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng | ||
77 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h | ||
78 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h | ||
79 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h | ||
80 | (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .) | ||
81 | cp libpng.a $(DESTDIR)$(LIBPATH) | ||
82 | chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a | ||
83 | |||
84 | clean: | ||
85 | rm -f *.o libpng.a pngtest pngout.png ansi2knr pnglibconf.h | ||
86 | |||
87 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
88 | writelock: | ||
89 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
90 | |||
91 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
92 | |||
93 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
94 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
95 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
96 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
97 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
98 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
99 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
100 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
101 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
102 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
103 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
104 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
105 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
106 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
107 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
108 | |||
109 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.linux b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.linux new file mode 100644 index 0000000..95680f6 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.linux | |||
@@ -0,0 +1,239 @@ | |||
1 | # makefile for libpng.a and libpng15.so on Linux ELF with gcc | ||
2 | # Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2011 Greg Roelofs and | ||
3 | # Glenn Randers-Pehrson | ||
4 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
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 | # Library name: | ||
11 | LIBNAME = libpng15 | ||
12 | PNGMAJ = 15 | ||
13 | RELEASE = 9 | ||
14 | |||
15 | # Shared library names: | ||
16 | LIBSO=$(LIBNAME).so | ||
17 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
18 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
19 | OLDSO=libpng.so | ||
20 | |||
21 | # Utilities: | ||
22 | AR_RC=ar rc | ||
23 | CC=gcc | ||
24 | MKDIR_P=mkdir -p | ||
25 | LN_SF=ln -sf | ||
26 | RANLIB=ranlib | ||
27 | RM_F=/bin/rm -f | ||
28 | |||
29 | # where "make install" puts libpng15.a, libpng15.so*, | ||
30 | # libpng15/png.h, libpng15/pngconf.h, and libpng15/pnglibconf.h | ||
31 | # Prefix must be a full pathname. | ||
32 | prefix=/usr/local | ||
33 | exec_prefix=$(prefix) | ||
34 | |||
35 | # Where the zlib library and include files are located. | ||
36 | #ZLIBLIB=/usr/local/lib | ||
37 | #ZLIBINC=/usr/local/include | ||
38 | ZLIBLIB=../zlib | ||
39 | ZLIBINC=../zlib | ||
40 | |||
41 | ALIGN= | ||
42 | # for i386: | ||
43 | #ALIGN=-malign-loops=2 -malign-functions=2 | ||
44 | |||
45 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
46 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
47 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
48 | |||
49 | # for pgcc version 2.95.1, -O3 is buggy; don't use it. | ||
50 | |||
51 | CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops \ | ||
52 | $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 | ||
53 | |||
54 | LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng15 -lz -lm | ||
55 | LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm | ||
56 | |||
57 | INCPATH=$(prefix)/include | ||
58 | LIBPATH=$(exec_prefix)/lib | ||
59 | MANPATH=$(prefix)/man | ||
60 | BINPATH=$(exec_prefix)/bin | ||
61 | |||
62 | # override DESTDIR= on the make install command line to easily support | ||
63 | # installing into a temporary location. Example: | ||
64 | # | ||
65 | # make install DESTDIR=/tmp/build/libpng | ||
66 | # | ||
67 | # If you're going to install into a temporary location | ||
68 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
69 | # you execute make install. | ||
70 | DESTDIR= | ||
71 | |||
72 | DB=$(DESTDIR)$(BINPATH) | ||
73 | DI=$(DESTDIR)$(INCPATH) | ||
74 | DL=$(DESTDIR)$(LIBPATH) | ||
75 | DM=$(DESTDIR)$(MANPATH) | ||
76 | |||
77 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
78 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
79 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
80 | |||
81 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
82 | |||
83 | .SUFFIXES: .c .o .pic.o | ||
84 | |||
85 | .c.pic.o: | ||
86 | $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c | ||
87 | |||
88 | all: libpng.a $(LIBSO) pngtest pngtest-static libpng.pc libpng-config | ||
89 | |||
90 | # see scripts/pnglibconf.mak for more options | ||
91 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
92 | cp scripts/pnglibconf.h.prebuilt $@ | ||
93 | |||
94 | libpng.a: $(OBJS) | ||
95 | $(AR_RC) $@ $(OBJS) | ||
96 | $(RANLIB) $@ | ||
97 | |||
98 | libpng.pc: | ||
99 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
100 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
101 | -e s!@libdir@!$(LIBPATH)! \ | ||
102 | -e s!@includedir@!$(INCPATH)! \ | ||
103 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
104 | |||
105 | libpng-config: | ||
106 | ( cat scripts/libpng-config-head.in; \ | ||
107 | echo prefix=\"$(prefix)\"; \ | ||
108 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
109 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
110 | echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \ | ||
111 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
112 | cat scripts/libpng-config-body.in ) > libpng-config | ||
113 | chmod +x libpng-config | ||
114 | |||
115 | $(LIBSO): $(LIBSOMAJ) | ||
116 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
117 | |||
118 | $(LIBSOMAJ): $(OBJSDLL) | ||
119 | $(CC) -shared -Wl,-soname,$(LIBSOMAJ) -o $(LIBSOMAJ) $(OBJSDLL) | ||
120 | |||
121 | pngtest: pngtest.o $(LIBSO) | ||
122 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
123 | |||
124 | pngtest-static: pngtest.o libpng.a | ||
125 | $(CC) -o pngtest-static $(CFLAGS) pngtest.o $(LDFLAGS_A) | ||
126 | |||
127 | test: pngtest pngtest-static | ||
128 | @echo "" | ||
129 | @echo " Running pngtest dynamically linked with $(LIBSO):" | ||
130 | @echo "" | ||
131 | ./pngtest | ||
132 | @echo "" | ||
133 | @echo " Running pngtest statically linked with libpng.a:" | ||
134 | @echo "" | ||
135 | ./pngtest-static | ||
136 | |||
137 | install-headers: png.h pngconf.h pnglibconf.h | ||
138 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
139 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
140 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
141 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
142 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
143 | -@$(RM_F) $(DI)/libpng | ||
144 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
145 | |||
146 | install-static: install-headers libpng.a | ||
147 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
148 | cp libpng.a $(DL)/$(LIBNAME).a | ||
149 | chmod 644 $(DL)/$(LIBNAME).a | ||
150 | -@$(RM_F) $(DL)/libpng.a | ||
151 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
152 | |||
153 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
154 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
155 | -@$(RM_F) $(DL)/$(LIBSO) | ||
156 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
157 | -@$(RM_F) $(DL)/$(OLDSO) | ||
158 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
159 | chmod 755 $(DL)/$(LIBSOREL) | ||
160 | (cd $(DL); \ | ||
161 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
162 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
163 | |||
164 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
165 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
166 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
167 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
168 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
169 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
170 | |||
171 | install-man: libpng.3 libpngpf.3 png.5 | ||
172 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
173 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
174 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
175 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
176 | cp libpng.3 $(DM)/man3 | ||
177 | cp libpngpf.3 $(DM)/man3 | ||
178 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
179 | -@$(RM_F) $(DM)/man5/png.5 | ||
180 | cp png.5 $(DM)/man5 | ||
181 | |||
182 | install-config: libpng-config | ||
183 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
184 | -@$(RM_F) $(DB)/libpng-config | ||
185 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
186 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
187 | chmod 755 $(DB)/$(LIBNAME)-config | ||
188 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
189 | |||
190 | install: install-static install-shared install-man install-config | ||
191 | |||
192 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
193 | # move the library to its final location. Use test-dd to test it | ||
194 | # before then. | ||
195 | |||
196 | test-dd: | ||
197 | echo | ||
198 | echo Testing installed dynamic shared library in $(DL). | ||
199 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
200 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
201 | -L$(DL) -L$(ZLIBLIB) -Wl, -rpath,$(DL) -Wl,-rpath,$(ZLIBLIB) \ | ||
202 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
203 | ./pngtestd pngtest.png | ||
204 | |||
205 | test-installed: | ||
206 | $(CC) -I$(ZLIBINC) \ | ||
207 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
208 | -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ | ||
209 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
210 | ./pngtesti pngtest.png | ||
211 | |||
212 | clean: | ||
213 | $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ | ||
214 | $(LIBSO) $(LIBSOMAJ)* pngtest-static pngtesti \ | ||
215 | libpng.pc pnglibconf.h | ||
216 | |||
217 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
218 | writelock: | ||
219 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
220 | |||
221 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
222 | |||
223 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
224 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
225 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
228 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
229 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
230 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
231 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
232 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
233 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
234 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
235 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
236 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
237 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
238 | |||
239 | pngtest.o: png.h pngconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.mips b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.mips new file mode 100644 index 0000000..bd254fc --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.mips | |||
@@ -0,0 +1,94 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | # where make install puts libpng.a and png.h | ||
10 | prefix=/usr/local | ||
11 | INCPATH=$(prefix)/include | ||
12 | LIBPATH=$(prefix)/lib | ||
13 | |||
14 | # override DESTDIR= on the make install command line to easily support | ||
15 | # installing into a temporary location. Example: | ||
16 | # | ||
17 | # make install DESTDIR=/tmp/build/libpng | ||
18 | # | ||
19 | # If you're going to install into a temporary location | ||
20 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
21 | # you execute make install. | ||
22 | DESTDIR= | ||
23 | |||
24 | CC=cc | ||
25 | CFLAGS=-I../zlib -O -systype sysv -DSYSV -w -Dmips | ||
26 | #CFLAGS=-O | ||
27 | LDFLAGS=-L. -L../zlib/ -lpng -lz -lm | ||
28 | |||
29 | #RANLIB=ranlib | ||
30 | RANLIB=echo | ||
31 | |||
32 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
33 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
34 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
35 | |||
36 | all: libpng.a pngtest | ||
37 | |||
38 | # see scripts/pnglibconf.mak for more options | ||
39 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
40 | cp scripts/pnglibconf.h.prebuilt $@ | ||
41 | |||
42 | libpng.a: $(OBJS) | ||
43 | ar rc $@ $(OBJS) | ||
44 | $(RANLIB) $@ | ||
45 | |||
46 | pngtest: pngtest.o libpng.a | ||
47 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
48 | |||
49 | test: pngtest | ||
50 | ./pngtest | ||
51 | |||
52 | install: libpng.a | ||
53 | -@mkdir $(DESTDIR)$(INCPATH) | ||
54 | -@mkdir $(DESTDIR)$(INCPATH)/libpng | ||
55 | -@mkdir $(DESTDIR)$(LIBPATH) | ||
56 | -@rm -f $(DESTDIR)$(INCPATH)/png.h | ||
57 | -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h | ||
58 | -@rm -f $(DESTDIR)$(INCPATH)/pnglibconf.h | ||
59 | cp png.h $(DESTDIR)$(INCPATH)/libpng | ||
60 | cp pngconf.h $(DESTDIR)$(INCPATH)/libpng | ||
61 | cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng | ||
62 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h | ||
63 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h | ||
64 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h | ||
65 | (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .) | ||
66 | cp libpng.a $(DESTDIR)$(LIBPATH) | ||
67 | chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a | ||
68 | |||
69 | clean: | ||
70 | rm -f *.o libpng.a pngtest pngout.png pnglibconf.h | ||
71 | |||
72 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
73 | writelock: | ||
74 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
75 | |||
76 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
77 | |||
78 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
79 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
80 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
81 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
82 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
83 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
84 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
85 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
86 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
87 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
88 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
89 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
90 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
91 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
92 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
93 | |||
94 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.msc b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.msc new file mode 100644 index 0000000..25adbb4 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.msc | |||
@@ -0,0 +1,95 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
3 | # Copyright (C) 2006, 2009 Glenn Randers-Pehrson | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | # | ||
9 | # Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib | ||
10 | |||
11 | # -------- Microsoft C 5.1 and later, does not use assembler code -------- | ||
12 | MODEL=L | ||
13 | CFLAGS=-Oait -Gs -nologo -W3 -A$(MODEL) -I..\zlib | ||
14 | #-Ox generates bad code with MSC 5.1 | ||
15 | CC=cl | ||
16 | LD=link | ||
17 | LDFLAGS=/e/st:0x1500/noe | ||
18 | O=.obj | ||
19 | |||
20 | #uncomment next to put error messages in a file | ||
21 | ERRFILE= >> pngerrs | ||
22 | |||
23 | # variables | ||
24 | OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) | ||
25 | OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) | ||
26 | OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) | ||
27 | |||
28 | all: libpng.lib | ||
29 | |||
30 | # see scripts/pnglibconf.mak for more options | ||
31 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
32 | cp scripts/pnglibconf.h.prebuilt $@ | ||
33 | |||
34 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
35 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
36 | |||
37 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
38 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
39 | |||
40 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
41 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
42 | |||
43 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
44 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
45 | |||
46 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
47 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
48 | |||
49 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
50 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
51 | |||
52 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
53 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
54 | |||
55 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
56 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
57 | |||
58 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
59 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
60 | |||
61 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
62 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
63 | |||
64 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
65 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
66 | |||
67 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
68 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
69 | |||
70 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
71 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
72 | |||
73 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
74 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
75 | |||
76 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
77 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
78 | |||
79 | libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3) | ||
80 | del libpng.lib | ||
81 | lib libpng $(OBJS1); | ||
82 | lib libpng $(OBJS2); | ||
83 | lib libpng $(OBJS3); | ||
84 | |||
85 | pngtest$(O): png.h pngconf.h pnglibconf.h | ||
86 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
87 | |||
88 | pngtest.exe: pngtest.obj libpng.lib | ||
89 | $(LD) $(LDFLAGS) pngtest.obj,,,libpng.lib ..\zlib\zlib.lib ; | ||
90 | |||
91 | test: pngtest.exe | ||
92 | pngtest | ||
93 | |||
94 | # End of makefile for libpng | ||
95 | |||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.ne12bsd b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.ne12bsd new file mode 100644 index 0000000..526284f --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.ne12bsd | |||
@@ -0,0 +1,50 @@ | |||
1 | # makefile for libpng for NetBSD for the standard | ||
2 | # make obj && make depend && make && make test | ||
3 | # make includes && make install | ||
4 | # Copyright (C) 2002 Patrick R.L. Welche | ||
5 | # Copyright (C) 2007, 2009 Glenn Randers-Pehrson | ||
6 | # | ||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # You should also run makefile.netbsd | ||
12 | |||
13 | LOCALBASE?=/usr/local | ||
14 | LIBDIR= ${LOCALBASE}/lib | ||
15 | MANDIR= ${LOCALBASE}/man | ||
16 | INCSDIR=${LOCALBASE}/include/libpng15 | ||
17 | |||
18 | LIB= png15 | ||
19 | SHLIB_MAJOR= 0 | ||
20 | SHLIB_MINOR= 1.5.9 | ||
21 | SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ | ||
22 | pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ | ||
23 | pngwtran.c pngmem.c pngerror.c pngpread.c | ||
24 | INCS= png.h pngconf.h pnglibconf.h | ||
25 | MAN= libpng.3 libpngpf.3 png.5 | ||
26 | |||
27 | CPPFLAGS+=-I${.CURDIR} | ||
28 | |||
29 | # We should be able to do something like this instead of the manual | ||
30 | # uncommenting, but it core dumps for me at the moment: | ||
31 | # .if ${MACHINE_ARCH} == "i386" | ||
32 | # MKLINT= no | ||
33 | # .endif | ||
34 | |||
35 | CLEANFILES+=pngtest.o pngtest pnglibconf.h | ||
36 | |||
37 | # see scripts/pnglibconf.mak for more options | ||
38 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
39 | cp scripts/pnglibconf.h.prebuilt $@ | ||
40 | |||
41 | pngtest.o: pngtest.c | ||
42 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} | ||
43 | |||
44 | pngtest: pngtest.o libpng.a | ||
45 | ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm | ||
46 | |||
47 | test: pngtest | ||
48 | cd ${.CURDIR} && ${.OBJDIR}/pngtest | ||
49 | |||
50 | .include <bsd.lib.mk> | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.netbsd b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.netbsd new file mode 100644 index 0000000..5dec277 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.netbsd | |||
@@ -0,0 +1,50 @@ | |||
1 | # makefile for libpng for NetBSD for the standard | ||
2 | # make obj && make depend && make && make test | ||
3 | # make includes && make install | ||
4 | # Copyright (C) 2002 Patrick R.L. Welche | ||
5 | # Copyright (C) 2007-2009 Glenn Randers-Pehrson | ||
6 | # | ||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # You should also run makefile.ne15bsd | ||
12 | |||
13 | LOCALBASE?=/usr/local | ||
14 | LIBDIR= ${LOCALBASE}/lib | ||
15 | MANDIR= ${LOCALBASE}/man | ||
16 | INCSDIR=${LOCALBASE}/include | ||
17 | |||
18 | LIB= png | ||
19 | SHLIB_MAJOR= 15 | ||
20 | SHLIB_MINOR= 1.5.9 | ||
21 | SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ | ||
22 | pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ | ||
23 | pngwtran.c pngmem.c pngerror.c pngpread.c | ||
24 | INCS= png.h pngconf.h pnglibconf.h | ||
25 | MAN= libpng.3 libpngpf.3 png.5 | ||
26 | |||
27 | CPPFLAGS+=-I${.CURDIR} | ||
28 | |||
29 | # We should be able to do something like this instead of the manual | ||
30 | # uncommenting, but it core dumps for me at the moment: | ||
31 | # .if ${MACHINE_ARCH} == "i386" | ||
32 | # MKLINT= no | ||
33 | # .endif | ||
34 | |||
35 | CLEANFILES+=pngtest.o pngtest pnglibconf.h | ||
36 | |||
37 | # see scripts/pnglibconf.mak for more options | ||
38 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
39 | cp scripts/pnglibconf.h.prebuilt $@ | ||
40 | |||
41 | pngtest.o: pngtest.c | ||
42 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} | ||
43 | |||
44 | pngtest: pngtest.o libpng.a | ||
45 | ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm | ||
46 | |||
47 | test: pngtest | ||
48 | cd ${.CURDIR} && ${.OBJDIR}/pngtest | ||
49 | |||
50 | .include <bsd.lib.mk> | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.openbsd b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.openbsd new file mode 100644 index 0000000..c4e7e07 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.openbsd | |||
@@ -0,0 +1,82 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
3 | # Copyright (C) 2007-2009 Glenn Randers-Pehrson | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | PREFIX?= /usr/local | ||
10 | LIBDIR= ${PREFIX}/lib | ||
11 | MANDIR= ${PREFIX}/man/cat | ||
12 | |||
13 | SHLIB_MAJOR= 15 | ||
14 | SHLIB_MINOR= 1.5.9 | ||
15 | |||
16 | LIB= png | ||
17 | SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \ | ||
18 | pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c \ | ||
19 | pngwio.c pngwrite.c pngwtran.c pngwutil.c | ||
20 | |||
21 | HDRS= png.h pngconf.h pnglibconf.h | ||
22 | |||
23 | CFLAGS+= -W -Wall | ||
24 | CPPFLAGS+= -I${.CURDIR} | ||
25 | |||
26 | NOPROFILE= Yes | ||
27 | |||
28 | CLEANFILES+= pngtest.o pngtest pnglibconf.h | ||
29 | |||
30 | MAN= libpng.3 libpngpf.3 png.5 | ||
31 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO \ | ||
32 | libpng-manual.txt | ||
33 | |||
34 | # see scripts/pnglibconf.mak for more options | ||
35 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
36 | cp scripts/pnglibconf.h.prebuilt $@ | ||
37 | |||
38 | pngtest.o: pngtest.c | ||
39 | ${CC} ${CPPFLAGS} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET} | ||
40 | |||
41 | pngtest: pngtest.o | ||
42 | ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} -L${.OBJDIR} -lpng -lz -lm | ||
43 | |||
44 | test: pngtest | ||
45 | cd ${.OBJDIR} && env \ | ||
46 | LD_LIBRARY_PATH="${.OBJDIR}" ${.OBJDIR}/pngtest | ||
47 | |||
48 | beforeinstall: | ||
49 | if [ ! -d ${DESTDIR}${PREFIX}/include/libpng ]; then \ | ||
50 | ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/include; \ | ||
51 | fi | ||
52 | if [ ! -d ${DESTDIR}${LIBDIR} ]; then \ | ||
53 | ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \ | ||
54 | fi | ||
55 | if [ ! -d ${DESTDIR}${LIBDIR}/debug ]; then \ | ||
56 | ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}/debug; \ | ||
57 | fi | ||
58 | if [ ! -d ${DESTDIR}${MANDIR}3 ]; then \ | ||
59 | ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}3; \ | ||
60 | fi | ||
61 | if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \ | ||
62 | ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \ | ||
63 | fi | ||
64 | if [ ! -d ${DESTDIR}${PREFIX}/share/doc/png ]; then \ | ||
65 | ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/share/doc/png; \ | ||
66 | fi | ||
67 | |||
68 | afterinstall: | ||
69 | @rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a | ||
70 | @rm -f ${DESTDIR}${LIBDIR}/debug/libpng.a | ||
71 | @rm -f ${DESTDIR}${PREFIX}/include/png.h | ||
72 | @rm -f ${DESTDIR}${PREFIX}/include/pngconf.h | ||
73 | @rm -f ${DESTDIR}${PREFIX}/include/pnglibconf.h | ||
74 | @rmdir ${DESTDIR}${LIBDIR}/debug 2>/dev/null || true | ||
75 | ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \ | ||
76 | -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include | ||
77 | ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \ | ||
78 | -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include | ||
79 | ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \ | ||
80 | -m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png | ||
81 | |||
82 | .include <bsd.lib.mk> | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sco b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sco new file mode 100644 index 0000000..9841e89 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sco | |||
@@ -0,0 +1,218 @@ | |||
1 | # makefile for SCO OSr5 ELF and Unixware 7 with Native cc | ||
2 | # Contributed by Mike Hopkirk (hops@sco.com) modified from Makefile.lnx | ||
3 | # force ELF build dynamic linking, SONAME setting in lib and RPATH in app | ||
4 | # Copyright (C) 2002, 2006, 2010-2011 Glenn Randers-Pehrson | ||
5 | # Copyright (C) 1998 Greg Roelofs | ||
6 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
7 | # | ||
8 | # This code is released under the libpng license. | ||
9 | # For conditions of distribution and use, see the disclaimer | ||
10 | # and license in png.h | ||
11 | |||
12 | # Library name: | ||
13 | LIBNAME = libpng15 | ||
14 | PNGMAJ = 15 | ||
15 | |||
16 | # Shared library names: | ||
17 | LIBSO=$(LIBNAME).so | ||
18 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
19 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
20 | OLDSO=libpng.so | ||
21 | |||
22 | # Utilities: | ||
23 | CC=cc | ||
24 | AR_RC=ar rc | ||
25 | MKDIR_P=mkdir | ||
26 | LN_SF=ln -f -s | ||
27 | RANLIB=echo | ||
28 | RM_F=/bin/rm -f | ||
29 | |||
30 | # where make install puts libpng.a, $(OLDSO)*, and png.h | ||
31 | prefix=/usr/local | ||
32 | exec_prefix=$(prefix) | ||
33 | |||
34 | # Where the zlib library and include files are located | ||
35 | #ZLIBLIB=/usr/local/lib | ||
36 | #ZLIBINC=/usr/local/include | ||
37 | ZLIBLIB=../zlib | ||
38 | ZLIBINC=../zlib | ||
39 | |||
40 | CFLAGS= -dy -belf -I$(ZLIBINC) -O3 | ||
41 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng15 -lz -lm | ||
42 | |||
43 | INCPATH=$(prefix)/include | ||
44 | LIBPATH=$(exec_prefix)/lib | ||
45 | MANPATH=$(prefix)/man | ||
46 | BINPATH=$(exec_prefix)/bin | ||
47 | |||
48 | # override DESTDIR= on the make install command line to easily support | ||
49 | # installing into a temporary location. Example: | ||
50 | # | ||
51 | # make install DESTDIR=/tmp/build/libpng | ||
52 | # | ||
53 | # If you're going to install into a temporary location | ||
54 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
55 | # you execute make install. | ||
56 | DESTDIR= | ||
57 | |||
58 | DB=$(DESTDIR)$(BINPATH) | ||
59 | DI=$(DESTDIR)$(INCPATH) | ||
60 | DL=$(DESTDIR)$(LIBPATH) | ||
61 | DM=$(DESTDIR)$(MANPATH) | ||
62 | |||
63 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
64 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
65 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
66 | |||
67 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
68 | |||
69 | .SUFFIXES: .c .o .pic.o | ||
70 | |||
71 | .c.pic.o: | ||
72 | $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c | ||
73 | |||
74 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
75 | |||
76 | # see scripts/pnglibconf.mak for more options | ||
77 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
78 | cp scripts/pnglibconf.h.prebuilt $@ | ||
79 | |||
80 | libpng.a: $(OBJS) | ||
81 | $(AR_RC) $@ $(OBJS) | ||
82 | $(RANLIB) $@ | ||
83 | |||
84 | libpng.pc: | ||
85 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
86 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
87 | -e s!@libdir@!$(LIBPATH)! \ | ||
88 | -e s!@includedir@!$(INCPATH)! \ | ||
89 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
90 | |||
91 | libpng-config: | ||
92 | ( cat scripts/libpng-config-head.in; \ | ||
93 | echo prefix=\"$(prefix)\"; \ | ||
94 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
95 | echo ccopts=\"-belf\"; \ | ||
96 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
97 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
98 | cat scripts/libpng-config-body.in ) > libpng-config | ||
99 | chmod +x libpng-config | ||
100 | |||
101 | $(LIBSO): $(LIBSOMAJ) | ||
102 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
103 | |||
104 | $(LIBSOMAJ): $(OBJSDLL) | ||
105 | $(CC) -G -Wl,-h,$(LIBSOMAJ) -o $(LIBSOMAJ) \ | ||
106 | $(OBJSDLL) | ||
107 | |||
108 | pngtest: pngtest.o $(LIBSO) | ||
109 | LD_RUN_PATH=.:$(ZLIBLIB) $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
110 | |||
111 | test: pngtest | ||
112 | ./pngtest | ||
113 | |||
114 | install-headers: png.h pngconf.h pnglibconf.h | ||
115 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
116 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
117 | -@$(RM_F) $(DI)/png.h | ||
118 | -@$(RM_F) $(DI)/pngconf.h | ||
119 | -@$(RM_F) $(DI)/pnglibconf.h | ||
120 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
121 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
122 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
123 | -@$(RM_F) $(DI)/libpng | ||
124 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
125 | |||
126 | install-static: install-headers libpng.a | ||
127 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
128 | cp libpng.a $(DL)/$(LIBNAME).a | ||
129 | chmod 644 $(DL)/$(LIBNAME).a | ||
130 | -@$(RM_F) $(DL)/libpng.a | ||
131 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
132 | |||
133 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
134 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
135 | -@$(RM_F) $(DL)/$(LIBSO) | ||
136 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
137 | -@$(RM_F) $(DL)/$(OLDSO) | ||
138 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
139 | chmod 755 $(DL)/$(LIBSOREL) | ||
140 | (cd $(DL); \ | ||
141 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
142 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
143 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
144 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
145 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
146 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
147 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
148 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
149 | |||
150 | install-man: libpng.3 libpngpf.3 png.5 | ||
151 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
152 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
153 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
154 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
155 | cp libpng.3 $(DM)/man3 | ||
156 | cp libpngpf.3 $(DM)/man3 | ||
157 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
158 | -@$(RM_F) $(DM)/man5/png.5 | ||
159 | cp png.5 $(DM)/man5 | ||
160 | |||
161 | install-config: libpng-config | ||
162 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
163 | -@$(RM_F) $(DB)/libpng-config | ||
164 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
165 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
166 | chmod 755 $(DB)/$(LIBNAME)-config | ||
167 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
168 | |||
169 | install: install-static install-shared install-man install-config | ||
170 | |||
171 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
172 | # move the library to its final location. Use test-dd to test it | ||
173 | # before then. | ||
174 | |||
175 | test-dd: | ||
176 | echo | ||
177 | echo Testing installed dynamic shared library in $(DL). | ||
178 | $(CC) -I$(DI) $(CFLAGS) \ | ||
179 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
180 | -L$(DL) -L$(ZLIBLIB) \ | ||
181 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
182 | ./pngtestd pngtest.png | ||
183 | |||
184 | test-installed: | ||
185 | $(CC) $(CFLAGS) \ | ||
186 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
187 | -L$(ZLIBLIB) \ | ||
188 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
189 | ./pngtesti pngtest.png | ||
190 | |||
191 | clean: | ||
192 | $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ | ||
193 | $(LIBSO) $(LIBSOMAJ)* pngtest-static pngtesti \ | ||
194 | pnglibconf.h libpng.pc | ||
195 | |||
196 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
197 | writelock: | ||
198 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
199 | |||
200 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
201 | |||
202 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
203 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
204 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
205 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
206 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
207 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
208 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
209 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
210 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
211 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
212 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
213 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
214 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
215 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
216 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
217 | |||
218 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sggcc b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sggcc new file mode 100644 index 0000000..acc1006 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sggcc | |||
@@ -0,0 +1,228 @@ | |||
1 | # makefile for libpng.a and libpng15.so, SGI IRIX with 'cc' | ||
2 | # Copyright (C) 2001-2002, 2006, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | # Library name: | ||
10 | LIBNAME=libpng15 | ||
11 | PNGMAJ = 15 | ||
12 | |||
13 | # Shared library names: | ||
14 | LIBSO=$(LIBNAME).so | ||
15 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
16 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
17 | OLDSO=libpng.so | ||
18 | |||
19 | # Utilities: | ||
20 | AR_RC=ar rc | ||
21 | CC=gcc | ||
22 | MKDIR_P=mkdir -p | ||
23 | LN_SF=ln -sf | ||
24 | RANLIB=echo | ||
25 | RM_F=/bin/rm -f | ||
26 | |||
27 | # Where make install puts libpng.a, libpng15.so, and libpng15/png.h | ||
28 | # Prefix must be a full pathname. | ||
29 | |||
30 | prefix=/usr/local | ||
31 | exec_prefix=$(prefix) | ||
32 | |||
33 | # Where the zlib library and include files are located | ||
34 | #ZLIBLIB=/usr/local/lib32 | ||
35 | #ZLIBINC=/usr/local/include | ||
36 | #ZLIBLIB=/usr/local/lib | ||
37 | #ZLIBINC=/usr/local/include | ||
38 | ZLIBLIB=../zlib | ||
39 | ZLIBINC=../zlib | ||
40 | |||
41 | # ABI can be blank to use default for your system, -32, -o32, -n32, or -64 | ||
42 | # See "man abi". zlib must be built with the same ABI. | ||
43 | ABI= | ||
44 | |||
45 | WARNMORE= # -g -DPNG_DEBUG=5 | ||
46 | CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) -fPIC -mabi=n32 | ||
47 | LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm | ||
48 | LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \ | ||
49 | -set_version sgi$(PNGMAJ).0 | ||
50 | # See "man dso" for info about shared objects | ||
51 | |||
52 | INCPATH=$(prefix)/include | ||
53 | LIBPATH=$(exec_prefix)/lib | ||
54 | #LIBPATH=$(exec_prefix)/lib32 | ||
55 | MANPATH=$(prefix)/man | ||
56 | BINPATH=$(exec_prefix)/bin | ||
57 | |||
58 | # override DESTDIR= on the make install command line to easily support | ||
59 | # installing into a temporary location. Example: | ||
60 | # | ||
61 | # make install DESTDIR=/tmp/build/libpng | ||
62 | # | ||
63 | # If you're going to install into a temporary location | ||
64 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
65 | # you execute make install. | ||
66 | DESTDIR= | ||
67 | |||
68 | DB=$(DESTDIR)$(BINPATH) | ||
69 | DI=$(DESTDIR)$(INCPATH) | ||
70 | DL=$(DESTDIR)$(LIBPATH) | ||
71 | DM=$(DESTDIR)$(MANPATH) | ||
72 | |||
73 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
74 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
75 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
76 | |||
77 | all: libpng.a pngtest shared libpng.pc libpng-config | ||
78 | |||
79 | # see scripts/pnglibconf.mak for more options | ||
80 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
81 | cp scripts/pnglibconf.h.prebuilt $@ | ||
82 | |||
83 | libpng.a: $(OBJS) | ||
84 | $(AR_RC) $@ $(OBJS) | ||
85 | $(RANLIB) $@ | ||
86 | |||
87 | shared: $(LIBSOMAJ) | ||
88 | |||
89 | libpng.pc: | ||
90 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
91 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
92 | -e s!@libdir@!$(LIBPATH)! \ | ||
93 | -e s!@includedir@!$(INCPATH)! \ | ||
94 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
95 | |||
96 | libpng-config: | ||
97 | ( cat scripts/libpng-config-head.in; \ | ||
98 | echo prefix=\"$(prefix)\"; \ | ||
99 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
100 | echo ccopts=\"$(ABI)\"; \ | ||
101 | echo cppflags=\"\"; \ | ||
102 | echo ldopts=\"$(ABI)\"; \ | ||
103 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
104 | echo libdir=\"$(LIBPATH)\"; \ | ||
105 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
106 | cat scripts/libpng-config-body.in ) > libpng-config | ||
107 | chmod +x libpng-config | ||
108 | |||
109 | $(LIBSO): $(LIBSOMAJ) | ||
110 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
111 | |||
112 | $(LIBSOMAJ): $(OBJS) | ||
113 | $(LDSHARED) -o $@ $(OBJS) | ||
114 | $(RM_F) $(LIBSO) $(LIBSOMAJ) | ||
115 | |||
116 | pngtest: pngtest.o libpng.a | ||
117 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
118 | |||
119 | test: pngtest | ||
120 | echo | ||
121 | echo Testing local static library. | ||
122 | ./pngtest | ||
123 | |||
124 | install-headers: png.h pngconf.h pnglibconf.h | ||
125 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
126 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
127 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
128 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
129 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
130 | -@$(RM_F) $(DI)/libpng | ||
131 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
132 | |||
133 | install-static: install-headers libpng.a | ||
134 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
135 | cp libpng.a $(DL)/$(LIBNAME).a | ||
136 | chmod 644 $(DL)/$(LIBNAME).a | ||
137 | -@$(RM_F) $(DL)/libpng.a | ||
138 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
139 | |||
140 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
141 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
142 | -@$(RM_F) $(DL)/$(LIBSO) | ||
143 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
144 | -@$(RM_F) $(DL)/$(OLDSO) | ||
145 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
146 | chmod 755 $(DL)/$(LIBSOREL) | ||
147 | (cd $(DL); \ | ||
148 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
149 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
150 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
151 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
152 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
153 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
154 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
155 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
156 | |||
157 | install-man: libpng.3 libpngpf.3 png.5 | ||
158 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
159 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
160 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
161 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
162 | cp libpng.3 $(DM)/man3 | ||
163 | cp libpngpf.3 $(DM)/man3 | ||
164 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
165 | -@$(RM_F) $(DM)/man5/png.5 | ||
166 | cp png.5 $(DM)/man5 | ||
167 | |||
168 | install-config: libpng-config | ||
169 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
170 | -@$(RM_F) $(DB)/libpng-config | ||
171 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
172 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
173 | chmod 755 $(DB)/$(LIBNAME)-config | ||
174 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
175 | |||
176 | install: install-static install-shared install-man install-config | ||
177 | |||
178 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
179 | # move the library to its final location. Use test-dd to test it | ||
180 | # before then. | ||
181 | |||
182 | test-dd: | ||
183 | echo | ||
184 | echo Testing installed dynamic shared library in $(DL). | ||
185 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
186 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
187 | -L$(DL) -L$(ZLIBLIB) \ | ||
188 | -rpath $(ZLIBLIB):$(DL) \ | ||
189 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
190 | ./pngtestd pngtest.png | ||
191 | |||
192 | test-installed: | ||
193 | echo | ||
194 | echo Testing installed dynamic shared library. | ||
195 | $(CC) -I$(ZLIBINC) \ | ||
196 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
197 | -L$(ZLIBLIB) \ | ||
198 | -rpath $(ZLIBLIB):`$(BINPATH)/$(LIBNAME)-config --libdir` \ | ||
199 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
200 | ./pngtesti pngtest.png | ||
201 | |||
202 | clean: | ||
203 | $(RM_F) libpng.a pngtest pngtesti pngout.png libpng.pc \ | ||
204 | so_locations libpng-config $(LIBSO) $(LIBSOMAJ)* pnglibconf.h | ||
205 | |||
206 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
207 | writelock: | ||
208 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
209 | |||
210 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
211 | |||
212 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
213 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
214 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
215 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
216 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
217 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
218 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
219 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
220 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
221 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
222 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
223 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
224 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
225 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | |||
228 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sgi b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sgi new file mode 100644 index 0000000..ab44f2d --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sgi | |||
@@ -0,0 +1,229 @@ | |||
1 | # makefile for libpng.a and libpng15.so, SGI IRIX with 'cc' | ||
2 | # Copyright (C) 2001-2002, 2006, 2007, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | # Library name: | ||
10 | LIBNAME=libpng15 | ||
11 | PNGMAJ = 15 | ||
12 | |||
13 | # Shared library names: | ||
14 | LIBSO=$(LIBNAME).so | ||
15 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
16 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
17 | OLDSO=libpng.so | ||
18 | |||
19 | # Utilities: | ||
20 | AR_RC=ar rc | ||
21 | CC=cc | ||
22 | MKDIR_P=mkdir -p | ||
23 | LN_SF=ln -sf | ||
24 | RANLIB=echo | ||
25 | RM_F=/bin/rm -f | ||
26 | |||
27 | # Where make install puts libpng.a, libpng15.so, and libpng15/png.h | ||
28 | # Prefix must be a full pathname. | ||
29 | |||
30 | prefix=/usr/local | ||
31 | exec_prefix=$(prefix) | ||
32 | |||
33 | # Where the zlib library and include files are located | ||
34 | #ZLIBLIB=/usr/local/lib32 | ||
35 | #ZLIBINC=/usr/local/include | ||
36 | #ZLIBLIB=/usr/local/lib | ||
37 | #ZLIBINC=/usr/local/include | ||
38 | ZLIBLIB=../zlib | ||
39 | ZLIBINC=../zlib | ||
40 | |||
41 | # ABI can be blank to use default for your system, -32, -o32, -n32, or -64 | ||
42 | # See "man abi". zlib must be built with the same ABI. | ||
43 | ABI= | ||
44 | |||
45 | WARNMORE=-fullwarn | ||
46 | # Note: -KPIC is the default anyhow | ||
47 | #CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC # -g -DPNG_DEBUG=5 | ||
48 | CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) | ||
49 | LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng15 -lz -lm | ||
50 | LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm | ||
51 | LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \ | ||
52 | -set_version sgi$(PNGMAJ).0 | ||
53 | # See "man dso" for info about shared objects | ||
54 | |||
55 | INCPATH=$(prefix)/include | ||
56 | LIBPATH=$(exec_prefix)/lib | ||
57 | #LIBPATH=$(exec_prefix)/lib32 | ||
58 | MANPATH=$(prefix)/man | ||
59 | BINPATH=$(exec_prefix)/bin | ||
60 | |||
61 | # override DESTDIR= on the make install command line to easily support | ||
62 | # installing into a temporary location. Example: | ||
63 | # | ||
64 | # make install DESTDIR=/tmp/build/libpng | ||
65 | # | ||
66 | # If you're going to install into a temporary location | ||
67 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
68 | # you execute make install. | ||
69 | DESTDIR= | ||
70 | |||
71 | DB=$(DESTDIR)$(BINPATH) | ||
72 | DI=$(DESTDIR)$(INCPATH) | ||
73 | DL=$(DESTDIR)$(LIBPATH) | ||
74 | DM=$(DESTDIR)$(MANPATH) | ||
75 | |||
76 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
77 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
78 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
79 | |||
80 | all: libpng.a pngtest shared libpng.pc libpng-config | ||
81 | |||
82 | # see scripts/pnglibconf.mak for more options | ||
83 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
84 | cp scripts/pnglibconf.h.prebuilt $@ | ||
85 | |||
86 | libpng.a: $(OBJS) | ||
87 | $(AR_RC) $@ $(OBJS) | ||
88 | $(RANLIB) $@ | ||
89 | |||
90 | libpng.pc: | ||
91 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
92 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
93 | -e s!@libdir@!$(LIBPATH)! \ | ||
94 | -e s!@includedir@!$(INCPATH)! \ | ||
95 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
96 | |||
97 | libpng-config: | ||
98 | ( cat scripts/libpng-config-head.in; \ | ||
99 | echo prefix=\"$(prefix)\"; \ | ||
100 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
101 | echo ccopts=\"$(ABI)\"; \ | ||
102 | echo ldopts=\"$(ABI)\"; \ | ||
103 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
104 | echo libdir=\"$(LIBPATH)\"; \ | ||
105 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
106 | cat scripts/libpng-config-body.in ) > libpng-config | ||
107 | chmod +x libpng-config | ||
108 | |||
109 | $(LIBSO): $(LIBSOMAJ) | ||
110 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
111 | |||
112 | $(LIBSOMAJ): $(OBJS) | ||
113 | $(LDSHARED) -o $@ $(OBJS) | ||
114 | $(RM_F) $(LIBSO) $(LIBSOMAJ) | ||
115 | |||
116 | pngtest: pngtest.o libpng.a | ||
117 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
118 | |||
119 | test: pngtest | ||
120 | echo | ||
121 | echo Testing local static library. | ||
122 | ./pngtest | ||
123 | |||
124 | install-headers: png.h pngconf.h pnglibconf.h | ||
125 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
126 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
127 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
128 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
129 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
130 | -@$(RM_F) $(DI)/libpng | ||
131 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
132 | |||
133 | install-static: install-headers libpng.a | ||
134 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
135 | cp libpng.a $(DL)/$(LIBNAME).a | ||
136 | chmod 644 $(DL)/$(LIBNAME).a | ||
137 | -@$(RM_F) $(DL)/libpng.a | ||
138 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
139 | |||
140 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
141 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
142 | -@$(RM_F) $(DL)/$(LIBSO) | ||
143 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
144 | -@$(RM_F) $(DL)/$(OLDSO) | ||
145 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
146 | chmod 755 $(DL)/$(LIBSOREL) | ||
147 | (cd $(DL); \ | ||
148 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
149 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
150 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
151 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
152 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
153 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
154 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
155 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
156 | |||
157 | install-man: libpng.3 libpngpf.3 png.5 | ||
158 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
159 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
160 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
161 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
162 | cp libpng.3 $(DM)/man3 | ||
163 | cp libpngpf.3 $(DM)/man3 | ||
164 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
165 | -@$(RM_F) $(DM)/man5/png.5 | ||
166 | cp png.5 $(DM)/man5 | ||
167 | |||
168 | install-config: libpng-config | ||
169 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
170 | -@$(RM_F) $(DB)/libpng-config | ||
171 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
172 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
173 | chmod 755 $(DB)/$(LIBNAME)-config | ||
174 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
175 | |||
176 | install: install-static install-shared install-man install-config | ||
177 | |||
178 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
179 | # move the library to its final location. Use test-dd to test it | ||
180 | # before then. | ||
181 | |||
182 | test-dd: | ||
183 | echo | ||
184 | echo Testing installed dynamic shared library in $(DL). | ||
185 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
186 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
187 | -L$(DL) -L$(ZLIBLIB) \ | ||
188 | -rpath $(ZLIBLIB):$(DL) \ | ||
189 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
190 | ./pngtestd pngtest.png | ||
191 | |||
192 | test-installed: | ||
193 | echo | ||
194 | echo Testing installed dynamic shared library. | ||
195 | $(CC) -I$(ZLIBINC) \ | ||
196 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
197 | -L$(ZLIBLIB) \ | ||
198 | -rpath $(ZLIBLIB):`$(BINPATH)/$(LIBNAME)-config --libdir` \ | ||
199 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` | ||
200 | ./pngtesti pngtest.png | ||
201 | |||
202 | clean: | ||
203 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png libpng.pc libpng-config \ | ||
204 | $(LIBSO) $(LIBSOMAJ)* \ | ||
205 | so_locations pnglibconf.h | ||
206 | |||
207 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
208 | writelock: | ||
209 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
210 | |||
211 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
212 | |||
213 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
214 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
215 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
216 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
217 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
218 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
219 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
220 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
221 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
222 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
223 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
224 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
225 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
228 | |||
229 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.so9 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.so9 new file mode 100644 index 0000000..967b342 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.so9 | |||
@@ -0,0 +1,239 @@ | |||
1 | # makefile for libpng on Solaris 9 (beta) with Forte cc | ||
2 | # Updated by Chad Schrock for Solaris 9 | ||
3 | # Contributed by William L. Sebok, based on makefile.linux | ||
4 | # Copyright (C) 2002, 2006, 2008, 2010-2011 Glenn Randers-Pehrson | ||
5 | # Copyright (C) 1998-2001 Greg Roelofs | ||
6 | # Copyright (C) 1996-1997 Andreas Dilger | ||
7 | # | ||
8 | # This code is released under the libpng license. | ||
9 | # For conditions of distribution and use, see the disclaimer | ||
10 | # and license in png.h | ||
11 | |||
12 | # Library name: | ||
13 | PNGMAJ = 15 | ||
14 | LIBNAME = libpng15 | ||
15 | |||
16 | # Shared library names: | ||
17 | LIBSO=$(LIBNAME).so | ||
18 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
19 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
20 | OLDSO=libpng.so | ||
21 | |||
22 | # Utilities: | ||
23 | # gcc 2.95 doesn't work. | ||
24 | CC=cc | ||
25 | AR_RC=ar rc | ||
26 | MKDIR_P=mkdir -p | ||
27 | LN_SF=ln -f -s | ||
28 | RANLIB=echo | ||
29 | RM_F=/bin/rm -f | ||
30 | |||
31 | # Where make install puts libpng.a, $(OLDSO)*, and png.h | ||
32 | prefix=/usr/local | ||
33 | exec_prefix=$(prefix) | ||
34 | |||
35 | # Where the zlib library and include files are located | ||
36 | # Changing these to ../zlib poses a security risk. If you want | ||
37 | # to have zlib in an adjacent directory, specify the full path instead of "..". | ||
38 | #ZLIBLIB=../zlib | ||
39 | #ZLIBINC=../zlib | ||
40 | #ZLIBLIB=/usr/local/lib | ||
41 | #ZLIBINC=/usr/local/include | ||
42 | #Use the preinstalled zlib that comes with Solaris 9: | ||
43 | ZLIBLIB=/usr/lib | ||
44 | ZLIBINC=/usr/include | ||
45 | |||
46 | #WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
47 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
48 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
49 | #CFLAGS=-I$(ZLIBINC) -W -Wall -O3 $(WARNMORE) -g -DPNG_DEBUG=5 -DPNG_NO_MMX_CODE | ||
50 | CFLAGS=-I$(ZLIBINC) -O3 -DPNG_NO_MMX_CODE | ||
51 | LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng15 -lz -lm | ||
52 | |||
53 | INCPATH=$(prefix)/include | ||
54 | LIBPATH=$(exec_prefix)/lib | ||
55 | MANPATH=$(prefix)/man | ||
56 | BINPATH=$(exec_prefix)/bin | ||
57 | |||
58 | # override DESTDIR= on the make install command line to easily support | ||
59 | # installing into a temporary location. Example: | ||
60 | # | ||
61 | # make install DESTDIR=/tmp/build/libpng | ||
62 | # | ||
63 | # If you're going to install into a temporary location | ||
64 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
65 | # you execute make install. | ||
66 | DESTDIR= | ||
67 | |||
68 | DB=$(DESTDIR)$(BINPATH) | ||
69 | DI=$(DESTDIR)$(INCPATH) | ||
70 | DL=$(DESTDIR)$(LIBPATH) | ||
71 | DM=$(DESTDIR)$(MANPATH) | ||
72 | |||
73 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
74 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
75 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
76 | |||
77 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
78 | |||
79 | .SUFFIXES: .c .o .pic.o | ||
80 | |||
81 | .c.pic.o: | ||
82 | $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c | ||
83 | |||
84 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
85 | |||
86 | # see scripts/pnglibconf.mak for more options | ||
87 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
88 | cp scripts/pnglibconf.h.prebuilt $@ | ||
89 | |||
90 | libpng.a: $(OBJS) | ||
91 | $(AR_RC) $@ $(OBJS) | ||
92 | $(RANLIB) $@ | ||
93 | |||
94 | libpng.pc: | ||
95 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
96 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
97 | -e s!@libdir@!$(LIBPATH)! \ | ||
98 | -e s!@includedir@!$(INCPATH)! \ | ||
99 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
100 | |||
101 | libpng-config: | ||
102 | ( cat scripts/libpng-config-head.in; \ | ||
103 | echo prefix=\"$(prefix)\"; \ | ||
104 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
105 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
106 | echo R_opts=\"-R$(LIBPATH)\"; \ | ||
107 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
108 | cat scripts/libpng-config-body.in ) > libpng-config | ||
109 | chmod +x libpng-config | ||
110 | |||
111 | $(LIBSO): $(LIBSOMAJ) | ||
112 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
113 | |||
114 | $(LIBSOMAJ): $(OBJSDLL) | ||
115 | @case "`type ld`" in *ucb*) \ | ||
116 | echo; \ | ||
117 | echo '## WARNING:'; \ | ||
118 | echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \ | ||
119 | echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \ | ||
120 | echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \ | ||
121 | echo '## The environment variable LD_LIBRARY_PATH should not be set'; \ | ||
122 | echo '## at all. If it is, things are likely to break because of'; \ | ||
123 | echo '## the libucb dependency that is created.'; \ | ||
124 | echo; \ | ||
125 | ;; \ | ||
126 | esac | ||
127 | $(LD) -G -h $(LIBSOMAJ) \ | ||
128 | -o $(LIBSOMAJ) $(OBJSDLL) | ||
129 | |||
130 | pngtest: pngtest.o $(LIBSO) | ||
131 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
132 | |||
133 | test: pngtest | ||
134 | ./pngtest | ||
135 | |||
136 | install-headers: png.h pngconf.h pnglibconf.h | ||
137 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
138 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
139 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
140 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
141 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
142 | -@$(RM_F) $(DI)/libpng | ||
143 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
144 | |||
145 | install-static: install-headers libpng.a | ||
146 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
147 | cp libpng.a $(DL)/$(LIBNAME).a | ||
148 | chmod 644 $(DL)/$(LIBNAME).a | ||
149 | -@$(RM_F) $(DL)/libpng.a | ||
150 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
151 | |||
152 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
153 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
154 | -@$(RM_F) $(DL)/$(LIBSO) | ||
155 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
156 | -@$(RM_F) $(DL)/$(OLDSO) | ||
157 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
158 | chmod 755 $(DL)/$(LIBSOREL) | ||
159 | (cd $(DL); \ | ||
160 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
161 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
162 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
163 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
164 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
165 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
166 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
167 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
168 | |||
169 | install-man: libpng.3 libpngpf.3 png.5 | ||
170 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
171 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
172 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
173 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
174 | cp libpng.3 $(DM)/man3 | ||
175 | cp libpngpf.3 $(DM)/man3 | ||
176 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
177 | -@$(RM_F) $(DM)/man5/png.5 | ||
178 | cp png.5 $(DM)/man5 | ||
179 | |||
180 | install-config: libpng-config | ||
181 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
182 | -@$(RM_F) $(DB)/libpng-config | ||
183 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
184 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
185 | chmod 755 $(DB)/$(LIBNAME)-config | ||
186 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
187 | |||
188 | install: install-static install-shared install-man install-config | ||
189 | |||
190 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
191 | # move the library to its final location. Use test-dd to test it | ||
192 | # before then. | ||
193 | |||
194 | test-dd: | ||
195 | echo | ||
196 | echo Testing installed dynamic shared library in $(DL). | ||
197 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
198 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
199 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
200 | -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) | ||
201 | ./pngtestd pngtest.png | ||
202 | |||
203 | test-installed: | ||
204 | echo | ||
205 | echo Testing installed dynamic shared library. | ||
206 | $(CC) -I$(ZLIBINC) \ | ||
207 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
208 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
209 | -L$(ZLIBLIB) -R$(ZLIBLIB) | ||
210 | ./pngtesti pngtest.png | ||
211 | |||
212 | clean: | ||
213 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ | ||
214 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
215 | libpng.pc pnglibconf.h | ||
216 | |||
217 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
218 | writelock: | ||
219 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
220 | |||
221 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
222 | |||
223 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
224 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
225 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
228 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
229 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
230 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
231 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
232 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
233 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
234 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
235 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
236 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
237 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
238 | |||
239 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.solaris b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.solaris new file mode 100644 index 0000000..03fb314 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.solaris | |||
@@ -0,0 +1,236 @@ | |||
1 | # makefile for libpng on Solaris 2.x with gcc | ||
2 | # Copyright (C) 2004, 2006-2008, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Contributed by William L. Sebok, based on makefile.linux | ||
4 | # Copyright (C) 1998 Greg Roelofs | ||
5 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
6 | # | ||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # Library name: | ||
12 | LIBNAME = libpng15 | ||
13 | PNGMAJ = 15 | ||
14 | |||
15 | # Shared library names: | ||
16 | LIBSO=$(LIBNAME).so | ||
17 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
18 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
19 | OLDSO=libpng.so | ||
20 | |||
21 | # Utilities: | ||
22 | AR_RC=ar rc | ||
23 | CC=gcc | ||
24 | MKDIR_P=mkdir -p | ||
25 | LN_SF=ln -f -s | ||
26 | RANLIB=echo | ||
27 | RM_F=/bin/rm -f | ||
28 | |||
29 | # Where make install puts libpng.a, libpng15.so*, and png.h | ||
30 | prefix=/usr/local | ||
31 | exec_prefix=$(prefix) | ||
32 | |||
33 | # Where the zlib library and include files are located | ||
34 | # Changing these to ../zlib poses a security risk. If you want | ||
35 | # to have zlib in an adjacent directory, specify the full path instead of "..". | ||
36 | #ZLIBLIB=../zlib | ||
37 | #ZLIBINC=../zlib | ||
38 | |||
39 | ZLIBLIB=/usr/local/lib | ||
40 | ZLIBINC=/usr/local/include | ||
41 | |||
42 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
43 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
44 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
45 | CFLAGS=-I$(ZLIBINC) -W -Wall -O \ | ||
46 | # $(WARNMORE) -g -DPNG_DEBUG=5 | ||
47 | LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng15 -lz -lm | ||
48 | |||
49 | INCPATH=$(prefix)/include | ||
50 | LIBPATH=$(exec_prefix)/lib | ||
51 | MANPATH=$(prefix)/man | ||
52 | BINPATH=$(exec_prefix)/bin | ||
53 | |||
54 | # override DESTDIR= on the make install command line to easily support | ||
55 | # installing into a temporary location. Example: | ||
56 | # | ||
57 | # make install DESTDIR=/tmp/build/libpng | ||
58 | # | ||
59 | # If you're going to install into a temporary location | ||
60 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
61 | # you execute make install. | ||
62 | DESTDIR= | ||
63 | |||
64 | DB=$(DESTDIR)$(BINPATH) | ||
65 | DI=$(DESTDIR)$(INCPATH) | ||
66 | DL=$(DESTDIR)$(LIBPATH) | ||
67 | DM=$(DESTDIR)$(MANPATH) | ||
68 | |||
69 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
70 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
71 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
72 | |||
73 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
74 | |||
75 | .SUFFIXES: .c .o .pic.o | ||
76 | |||
77 | .c.pic.o: | ||
78 | $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c | ||
79 | |||
80 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
81 | |||
82 | # see scripts/pnglibconf.mak for more options | ||
83 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
84 | cp scripts/pnglibconf.h.prebuilt $@ | ||
85 | |||
86 | libpng.a: $(OBJS) | ||
87 | $(AR_RC) $@ $(OBJS) | ||
88 | $(RANLIB) $@ | ||
89 | |||
90 | libpng.pc: | ||
91 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
92 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
93 | -e s!@libdir@!$(LIBPATH)! \ | ||
94 | -e s!@includedir@!$(INCPATH)! \ | ||
95 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
96 | |||
97 | libpng-config: | ||
98 | ( cat scripts/libpng-config-head.in; \ | ||
99 | echo prefix=\"$(prefix)\"; \ | ||
100 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
101 | echo cppflags=\"\"; \ | ||
102 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
103 | echo R_opts=\"-R$(LIBPATH)\"; \ | ||
104 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
105 | cat scripts/libpng-config-body.in ) > libpng-config | ||
106 | chmod +x libpng-config | ||
107 | |||
108 | $(LIBSO): $(LIBSOMAJ) | ||
109 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
110 | |||
111 | $(LIBSOMAJ): $(OBJSDLL) | ||
112 | @case "`type ld`" in *ucb*) \ | ||
113 | echo; \ | ||
114 | echo '## WARNING:'; \ | ||
115 | echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \ | ||
116 | echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \ | ||
117 | echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \ | ||
118 | echo '## The environment variable LD_LIBRARY_PATH should not be set'; \ | ||
119 | echo '## at all. If it is, things are likely to break because of'; \ | ||
120 | echo '## the libucb dependency that is created.'; \ | ||
121 | echo; \ | ||
122 | ;; \ | ||
123 | esac | ||
124 | $(LD) -G -h $(LIBSOMAJ) \ | ||
125 | -o $(LIBSOMAJ) $(OBJSDLL) | ||
126 | |||
127 | pngtest: pngtest.o $(LIBSO) | ||
128 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
129 | |||
130 | test: pngtest | ||
131 | ./pngtest | ||
132 | |||
133 | install-headers: png.h pngconf.h pnglibconf.h | ||
134 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
135 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
136 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
137 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
138 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
139 | -@$(RM_F) $(DI)/libpng | ||
140 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
141 | |||
142 | install-static: install-headers libpng.a | ||
143 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
144 | cp libpng.a $(DL)/$(LIBNAME).a | ||
145 | chmod 644 $(DL)/$(LIBNAME).a | ||
146 | -@$(RM_F) $(DL)/libpng.a | ||
147 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
148 | |||
149 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
150 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
151 | -@$(RM_F) $(DL)/$(LIBSO) | ||
152 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
153 | -@$(RM_F) $(DL)/$(OLDSO) | ||
154 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
155 | chmod 755 $(DL)/$(LIBSOREL) | ||
156 | (cd $(DL); \ | ||
157 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
158 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
159 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
160 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
161 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
162 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
163 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
164 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
165 | |||
166 | install-man: libpng.3 libpngpf.3 png.5 | ||
167 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
168 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
169 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
170 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
171 | cp libpng.3 $(DM)/man3 | ||
172 | cp libpngpf.3 $(DM)/man3 | ||
173 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
174 | -@$(RM_F) $(DM)/man5/png.5 | ||
175 | cp png.5 $(DM)/man5 | ||
176 | |||
177 | install-config: libpng-config | ||
178 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
179 | -@$(RM_F) $(DB)/libpng-config | ||
180 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
181 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
182 | chmod 755 $(DB)/$(LIBNAME)-config | ||
183 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
184 | |||
185 | install: install-static install-shared install-man install-config | ||
186 | |||
187 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
188 | # move the library to its final location. Use test-dd to test it | ||
189 | # before then. | ||
190 | |||
191 | test-dd: | ||
192 | echo | ||
193 | echo Testing installed dynamic shared library in $(DL). | ||
194 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
195 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
196 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
197 | -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) | ||
198 | ./pngtestd pngtest.png | ||
199 | |||
200 | test-installed: | ||
201 | echo | ||
202 | echo Testing installed dynamic shared library. | ||
203 | $(CC) -I$(ZLIBINC) \ | ||
204 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
205 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
206 | -L$(ZLIBLIB) -R$(ZLIBLIB) | ||
207 | ./pngtesti pngtest.png | ||
208 | |||
209 | clean: | ||
210 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ | ||
211 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
212 | libpng.pc pnglibconf.h | ||
213 | |||
214 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
215 | writelock: | ||
216 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
217 | |||
218 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
219 | |||
220 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
221 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
222 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
223 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
224 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
225 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
228 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
229 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
230 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
231 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
232 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
233 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
234 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
235 | |||
236 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.solaris-x86 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.solaris-x86 new file mode 100644 index 0000000..4a43e53 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.solaris-x86 | |||
@@ -0,0 +1,236 @@ | |||
1 | # makefile for libpng on Solaris 2.x with gcc | ||
2 | # Copyright (C) 2004, 2006-2008, 2010-2011 Glenn Randers-Pehrson | ||
3 | # Contributed by William L. Sebok, based on makefile.linux | ||
4 | # Copyright (C) 1998 Greg Roelofs | ||
5 | # Copyright (C) 1996, 1997 Andreas Dilger | ||
6 | |||
7 | # This code is released under the libpng license. | ||
8 | # For conditions of distribution and use, see the disclaimer | ||
9 | # and license in png.h | ||
10 | |||
11 | # Library name: | ||
12 | LIBNAME = libpng15 | ||
13 | PNGMAJ = 15 | ||
14 | |||
15 | # Shared library names: | ||
16 | LIBSO=$(LIBNAME).so | ||
17 | LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) | ||
18 | LIBSOREL=$(LIBSOMAJ).$(RELEASE) | ||
19 | OLDSO=libpng.so | ||
20 | |||
21 | # Utilities: | ||
22 | AR_RC=ar rc | ||
23 | CC=gcc | ||
24 | MKDIR_P=mkdir -p | ||
25 | LN_SF=ln -f -s | ||
26 | RANLIB=echo | ||
27 | RM_F=/bin/rm -f | ||
28 | |||
29 | # Where make install puts libpng.a, libpng15.so*, and png.h | ||
30 | prefix=/usr/local | ||
31 | exec_prefix=$(prefix) | ||
32 | |||
33 | # Where the zlib library and include files are located | ||
34 | # Changing these to ../zlib poses a security risk. If you want | ||
35 | # to have zlib in an adjacent directory, specify the full path instead of "..". | ||
36 | #ZLIBLIB=../zlib | ||
37 | #ZLIBINC=../zlib | ||
38 | |||
39 | ZLIBLIB=/usr/local/lib | ||
40 | ZLIBINC=/usr/local/include | ||
41 | |||
42 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ | ||
43 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
44 | -Wstrict-prototypes -Wmissing-prototypes #-Wconversion | ||
45 | CFLAGS=-I$(ZLIBINC) -W -Wall -O \ | ||
46 | # $(WARNMORE) -g -DPNG_DEBUG=5 | ||
47 | LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng15 -lz -lm | ||
48 | |||
49 | INCPATH=$(prefix)/include | ||
50 | LIBPATH=$(exec_prefix)/lib | ||
51 | MANPATH=$(prefix)/man | ||
52 | BINPATH=$(exec_prefix)/bin | ||
53 | |||
54 | # override DESTDIR= on the make install command line to easily support | ||
55 | # installing into a temporary location. Example: | ||
56 | # | ||
57 | # make install DESTDIR=/tmp/build/libpng | ||
58 | # | ||
59 | # If you're going to install into a temporary location | ||
60 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
61 | # you execute make install. | ||
62 | DESTDIR= | ||
63 | |||
64 | DB=$(DESTDIR)$(BINPATH) | ||
65 | DI=$(DESTDIR)$(INCPATH) | ||
66 | DL=$(DESTDIR)$(LIBPATH) | ||
67 | DM=$(DESTDIR)$(MANPATH) | ||
68 | |||
69 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
70 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
71 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
72 | |||
73 | OBJSDLL = $(OBJS:.o=.pic.o) | ||
74 | |||
75 | .SUFFIXES: .c .o .pic.o | ||
76 | |||
77 | .c.pic.o: | ||
78 | $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c | ||
79 | |||
80 | all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config | ||
81 | |||
82 | # see scripts/pnglibconf.mak for more options | ||
83 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
84 | cp scripts/pnglibconf.h.prebuilt $@ | ||
85 | |||
86 | libpng.a: $(OBJS) | ||
87 | $(AR_RC) $@ $(OBJS) | ||
88 | $(RANLIB) $@ | ||
89 | |||
90 | libpng.pc: | ||
91 | cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ | ||
92 | -e s!@exec_prefix@!$(exec_prefix)! \ | ||
93 | -e s!@libdir@!$(LIBPATH)! \ | ||
94 | -e s!@includedir@!$(INCPATH)! \ | ||
95 | -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc | ||
96 | |||
97 | libpng-config: | ||
98 | ( cat scripts/libpng-config-head.in; \ | ||
99 | echo prefix=\"$(prefix)\"; \ | ||
100 | echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ | ||
101 | echo cppflags=\""; \ | ||
102 | echo L_opts=\"-L$(LIBPATH)\"; \ | ||
103 | echo R_opts=\"-R$(LIBPATH)\"; \ | ||
104 | echo libs=\"-lpng15 -lz -lm\"; \ | ||
105 | cat scripts/libpng-config-body.in ) > libpng-config | ||
106 | chmod +x libpng-config | ||
107 | |||
108 | $(LIBSO): $(LIBSOMAJ) | ||
109 | $(LN_SF) $(LIBSOMAJ) $(LIBSO) | ||
110 | |||
111 | $(LIBSOMAJ): $(OBJSDLL) | ||
112 | @case "`type ld`" in *ucb*) \ | ||
113 | echo; \ | ||
114 | echo '## WARNING:'; \ | ||
115 | echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \ | ||
116 | echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \ | ||
117 | echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \ | ||
118 | echo '## The environment variable LD_LIBRARY_PATH should not be set'; \ | ||
119 | echo '## at all. If it is, things are likely to break because of'; \ | ||
120 | echo '## the libucb dependency that is created.'; \ | ||
121 | echo; \ | ||
122 | ;; \ | ||
123 | esac | ||
124 | $(LD) -G -h $(LIBSOMAJ) \ | ||
125 | -o $(LIBSOMAJ) $(OBJSDLL) | ||
126 | |||
127 | pngtest: pngtest.o $(LIBSO) | ||
128 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
129 | |||
130 | test: pngtest | ||
131 | ./pngtest | ||
132 | |||
133 | install-headers: png.h pngconf.h pnglibconf.h | ||
134 | -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi | ||
135 | -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi | ||
136 | cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) | ||
137 | chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h | ||
138 | -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h | ||
139 | -@$(RM_F) $(DI)/libpng | ||
140 | (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) | ||
141 | |||
142 | install-static: install-headers libpng.a | ||
143 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
144 | cp libpng.a $(DL)/$(LIBNAME).a | ||
145 | chmod 644 $(DL)/$(LIBNAME).a | ||
146 | -@$(RM_F) $(DL)/libpng.a | ||
147 | (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) | ||
148 | |||
149 | install-shared: install-headers $(LIBSOMAJ) libpng.pc | ||
150 | -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi | ||
151 | -@$(RM_F) $(DL)/$(LIBSO) | ||
152 | -@$(RM_F) $(DL)/$(LIBSOREL) | ||
153 | -@$(RM_F) $(DL)/$(OLDSO) | ||
154 | cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) | ||
155 | chmod 755 $(DL)/$(LIBSOREL) | ||
156 | (cd $(DL); \ | ||
157 | $(LN_SF) $(LIBSOREL) $(LIBSO); \ | ||
158 | $(LN_SF) $(LIBSO) $(OLDSO)) | ||
159 | -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi | ||
160 | -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc | ||
161 | -@$(RM_F) $(DL)/pkgconfig/libpng.pc | ||
162 | cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc | ||
163 | chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc | ||
164 | (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) | ||
165 | |||
166 | install-man: libpng.3 libpngpf.3 png.5 | ||
167 | -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi | ||
168 | -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi | ||
169 | -@$(RM_F) $(DM)/man3/libpng.3 | ||
170 | -@$(RM_F) $(DM)/man3/libpngpf.3 | ||
171 | cp libpng.3 $(DM)/man3 | ||
172 | cp libpngpf.3 $(DM)/man3 | ||
173 | -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi | ||
174 | -@$(RM_F) $(DM)/man5/png.5 | ||
175 | cp png.5 $(DM)/man5 | ||
176 | |||
177 | install-config: libpng-config | ||
178 | -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi | ||
179 | -@$(RM_F) $(DB)/libpng-config | ||
180 | -@$(RM_F) $(DB)/$(LIBNAME)-config | ||
181 | cp libpng-config $(DB)/$(LIBNAME)-config | ||
182 | chmod 755 $(DB)/$(LIBNAME)-config | ||
183 | (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) | ||
184 | |||
185 | install: install-static install-shared install-man install-config | ||
186 | |||
187 | # If you installed in $(DESTDIR), test-installed won't work until you | ||
188 | # move the library to its final location. Use test-dd to test it | ||
189 | # before then. | ||
190 | |||
191 | test-dd: | ||
192 | echo | ||
193 | echo Testing installed dynamic shared library in $(DL). | ||
194 | $(CC) -I$(DI) -I$(ZLIBINC) \ | ||
195 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
196 | -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
197 | -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) | ||
198 | ./pngtestd pngtest.png | ||
199 | |||
200 | test-installed: | ||
201 | echo | ||
202 | echo Testing installed dynamic shared library. | ||
203 | $(CC) -I$(ZLIBINC) \ | ||
204 | `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ | ||
205 | -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ | ||
206 | -L$(ZLIBLIB) -R$(ZLIBLIB) | ||
207 | ./pngtesti pngtest.png | ||
208 | |||
209 | clean: | ||
210 | $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ | ||
211 | libpng-config $(LIBSO) $(LIBSOMAJ)* \ | ||
212 | libpng.pc pnglibconf.h | ||
213 | |||
214 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
215 | writelock: | ||
216 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
217 | |||
218 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
219 | |||
220 | png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
221 | pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
222 | pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
223 | pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
224 | pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
225 | pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
226 | pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
227 | pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
228 | pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
229 | pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
230 | pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
231 | pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
232 | pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
233 | pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
234 | pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
235 | |||
236 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.std b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.std new file mode 100644 index 0000000..d394f96 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.std | |||
@@ -0,0 +1,123 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) 2002, 2006 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | # where make install puts libpng.a and png.h | ||
10 | prefix=/usr/local | ||
11 | INCPATH=$(prefix)/include | ||
12 | LIBPATH=$(prefix)/lib | ||
13 | |||
14 | # override DESTDIR= on the make install command line to easily support | ||
15 | # installing into a temporary location. Example: | ||
16 | # | ||
17 | # make install DESTDIR=/tmp/build/libpng | ||
18 | # | ||
19 | # If you're going to install into a temporary location | ||
20 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
21 | # you execute make install. | ||
22 | DESTDIR= | ||
23 | |||
24 | # Where the zlib library and include files are located | ||
25 | #ZLIBLIB=/usr/local/lib | ||
26 | #ZLIBINC=/usr/local/include | ||
27 | ZLIBLIB=../zlib | ||
28 | ZLIBINC=../zlib | ||
29 | |||
30 | CC=cc | ||
31 | AR_RC=ar rc | ||
32 | MKDIR_P=mkdir | ||
33 | LN_SF=ln -sf | ||
34 | RANLIB=ranlib | ||
35 | RM_F=rm -f | ||
36 | AWK = awk | ||
37 | SED = sed | ||
38 | CPP = $(CC) -E | ||
39 | ECHO = echo | ||
40 | |||
41 | DFNFLAGS = # DFNFLAGS contains -D options to use in the libpng build | ||
42 | CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5 | ||
43 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm | ||
44 | |||
45 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
46 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
47 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
48 | |||
49 | all: libpng.a pngtest | ||
50 | |||
51 | # The standard pnglibconf.h exists as scripts/pnglibconf.h.prebuilt, | ||
52 | # copy this if the following doesn't work. | ||
53 | pnglibconf.dfn: scripts/pnglibconf.dfa scripts/options.awk pngconf.h | ||
54 | $(RM_F) $@ dfn?.out | ||
55 | $(AWK) -f scripts/options.awk out=dfn1.out version=search pngconf.h\ | ||
56 | scripts/pnglibconf.dfa $(DFA_XTRA) 1>&2 | ||
57 | $(AWK) -f scripts/options.awk out=dfn2.out dfn1.out 1>&2 | ||
58 | cp dfn2.out $@ | ||
59 | $(RM_F) dfn?.out | ||
60 | |||
61 | pnglibconf.h: pnglibconf.dfn | ||
62 | $(RM_F) $@ dfn.c dfn?.out | ||
63 | $(ECHO) '#include "pnglibconf.dfn"' >dfn.c | ||
64 | $(CPP) $(DFNFLAGS) dfn.c >dfn1.out | ||
65 | $(SED) -n -e 's|^.*PNG_DEFN_MAGIC *-\(.*\)- *PNG_DEFN_END.*$$|\1|p'\ | ||
66 | dfn1.out >dfn2.out | ||
67 | $(SED) -e 's| *PNG_JOIN *||g' -e 's| *$$||' dfn2.out >dfn3.out | ||
68 | cp dfn3.out $@ | ||
69 | $(RM_F) dfn.c dfn?.out | ||
70 | |||
71 | libpng.a: $(OBJS) | ||
72 | $(AR_RC) $@ $(OBJS) | ||
73 | $(RANLIB) $@ | ||
74 | |||
75 | pngtest: pngtest.o libpng.a | ||
76 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
77 | |||
78 | test: pngtest | ||
79 | ./pngtest | ||
80 | |||
81 | install: libpng.a pnglibconf.h | ||
82 | -@$(MKDIR_P) $(DESTDIR)$(INCPATH) | ||
83 | -@$(MKDIR_P) $(DESTDIR)$(INCPATH)/libpng | ||
84 | -@$(MKDIR_P) $(DESTDIR)$(LIBPATH) | ||
85 | -@$(RM_F) $(DESTDIR)$(INCPATH)/png.h | ||
86 | -@$(RM_F) $(DESTDIR)$(INCPATH)/pngconf.h | ||
87 | -@$(RM_F) $(DESTDIR)$(INCPATH)/pnglibconf.h | ||
88 | cp png.h $(DESTDIR)$(INCPATH)/libpng | ||
89 | cp pngconf.h $(DESTDIR)$(INCPATH)/libpng | ||
90 | cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng | ||
91 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h | ||
92 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h | ||
93 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h | ||
94 | (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .) | ||
95 | cp libpng.a $(DESTDIR)$(LIBPATH) | ||
96 | chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a | ||
97 | |||
98 | clean: | ||
99 | $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.* dfn.c dfn?.out | ||
100 | |||
101 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
102 | writelock: | ||
103 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
104 | |||
105 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
106 | |||
107 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
108 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
109 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
110 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
111 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
112 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
113 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
114 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
115 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
116 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
117 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
118 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
119 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
120 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
121 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
122 | |||
123 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sunos b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sunos new file mode 100644 index 0000000..52cd4d4 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.sunos | |||
@@ -0,0 +1,107 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) 2002, 2006 Glenn Randers-Pehrson | ||
3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | # where make install puts libpng.a and png.h | ||
10 | prefix=/usr/local | ||
11 | INCPATH=$(prefix)/include | ||
12 | LIBPATH=$(prefix)/lib | ||
13 | |||
14 | # override DESTDIR= on the make install command line to easily support | ||
15 | # installing into a temporary location. Example: | ||
16 | # | ||
17 | # make install DESTDIR=/tmp/build/libpng | ||
18 | # | ||
19 | # If you're going to install into a temporary location | ||
20 | # via DESTDIR, $(DESTDIR)$(prefix) must already exist before | ||
21 | # you execute make install. | ||
22 | DESTDIR= | ||
23 | |||
24 | # Where the zlib library and include files are located | ||
25 | #ZLIBLIB=/usr/local/lib | ||
26 | #ZLIBINC=/usr/local/include | ||
27 | ZLIBLIB=../zlib | ||
28 | ZLIBINC=../zlib | ||
29 | |||
30 | |||
31 | WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow -Wconversion \ | ||
32 | -Wmissing-declarations -Wtraditional -Wcast-align \ | ||
33 | -Wstrict-prototypes -Wmissing-prototypes | ||
34 | |||
35 | CC=gcc | ||
36 | AR_RC=ar rc | ||
37 | MKDIR_P=mkdir -p | ||
38 | LN_SF=ln -f -s | ||
39 | RANLIB=ranlib | ||
40 | RM_F=/bin/rm -f | ||
41 | |||
42 | CFLAGS=-I$(ZLIBINC) -O # $(WARNMORE) -DPNG_DEBUG=5 | ||
43 | LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm | ||
44 | |||
45 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ | ||
46 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ | ||
47 | pngwtran.o pngmem.o pngerror.o pngpread.o | ||
48 | |||
49 | all: libpng.a pngtest | ||
50 | |||
51 | # see scripts/pnglibconf.mak for more options | ||
52 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
53 | cp scripts/pnglibconf.h.prebuilt $@ | ||
54 | |||
55 | libpng.a: $(OBJS) | ||
56 | $(AR_RC) $@ $(OBJS) | ||
57 | $(RANLIB) $@ | ||
58 | |||
59 | pngtest: pngtest.o libpng.a | ||
60 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) | ||
61 | |||
62 | test: pngtest | ||
63 | ./pngtest | ||
64 | |||
65 | install: libpng.a | ||
66 | -@$(MKDIR_P) $(DESTDIR)$(INCPATH) | ||
67 | -@$(MKDIR_P) $(DESTDIR)$(INCPATH)/libpng | ||
68 | -@$(MKDIR_P) $(DESTDIR)$(LIBPATH) | ||
69 | -@$(RM_F) $(DESTDIR)$(INCPATH)/png.h | ||
70 | -@$(RM_F) $(DESTDIR)$(INCPATH)/pngconf.h | ||
71 | -@$(RM_F) $(DESTDIR)$(INCPATH)/pnglibconf.h | ||
72 | cp png.h $(DESTDIR)$(INCPATH)/libpng | ||
73 | cp pngconf.h $(DESTDIR)$(INCPATH)/libpng | ||
74 | cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng | ||
75 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h | ||
76 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h | ||
77 | chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h | ||
78 | (cd $(DESTDIR)$(INCPATH); $(LN_SF) libpng/* .) | ||
79 | cp libpng.a $(DESTDIR)$(LIBPATH) | ||
80 | chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a | ||
81 | |||
82 | clean: | ||
83 | $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h | ||
84 | |||
85 | DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO | ||
86 | writelock: | ||
87 | chmod a-w *.[ch35] $(DOCS) scripts/* | ||
88 | |||
89 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
90 | |||
91 | png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
92 | pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
93 | pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
94 | pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
95 | pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
96 | pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
97 | pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
98 | pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
99 | pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
100 | pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
101 | pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
102 | pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
103 | pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
104 | pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
105 | pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
106 | |||
107 | pngtest.o: png.h pngconf.h pnglibconf.h | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.tc3 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.tc3 new file mode 100644 index 0000000..311acfb --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.tc3 | |||
@@ -0,0 +1,93 @@ | |||
1 | # Makefile for libpng | ||
2 | # TurboC/C++ (Note: All modules are compiled in C mode) | ||
3 | |||
4 | # To use, do "make -fmakefile.tc3" | ||
5 | |||
6 | # ----- Turbo C 3.00 (can be modified to work with earlier versions) ----- | ||
7 | |||
8 | MODEL=l | ||
9 | CFLAGS=-O2 -Z -m$(MODEL) -I..\zlib | ||
10 | #CFLAGS=-D_NO_PROTO -O2 -Z -m$(MODEL) -I..\zlib # Turbo C older than 3.00 | ||
11 | CC=tcc | ||
12 | LD=tcc | ||
13 | LIB=tlib | ||
14 | LDFLAGS=-m$(MODEL) -L..\zlib | ||
15 | O=.obj | ||
16 | E=.exe | ||
17 | |||
18 | # variables | ||
19 | OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) | ||
20 | OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) | ||
21 | OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) | ||
22 | OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O) | ||
23 | OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O) | ||
24 | OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O) | ||
25 | |||
26 | all: libpng$(MODEL).lib pngtest$(E) | ||
27 | |||
28 | # see scripts/pnglibconf.mak for more options | ||
29 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | ||
30 | cp scripts/pnglibconf.h.prebuilt $@ | ||
31 | |||
32 | pngtest: pngtest$(E) | ||
33 | |||
34 | test: pngtest$(E) | ||
35 | pngtest$(E) | ||
36 | |||
37 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
38 | $(CC) -c $(CFLAGS) $*.c | ||
39 | |||
40 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
41 | $(CC) -c $(CFLAGS) $*.c | ||
42 | |||
43 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
44 | $(CC) -c $(CFLAGS) $*.c | ||
45 | |||
46 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
47 | $(CC) -c $(CFLAGS) $*.c | ||
48 | |||
49 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
50 | $(CC) -c $(CFLAGS) $*.c | ||
51 | |||
52 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
53 | $(CC) -c $(CFLAGS) $*.c | ||
54 | |||
55 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
56 | $(CC) -c $(CFLAGS) $*.c | ||
57 | |||
58 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
59 | $(CC) -c $(CFLAGS) $*.c | ||
60 | |||
61 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
62 | $(CC) -c $(CFLAGS) $*.c | ||
63 | |||
64 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
65 | $(CC) -c $(CFLAGS) $*.c | ||
66 | |||
67 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
68 | $(CC) -c $(CFLAGS) $*.c | ||
69 | |||
70 | pngtest$(O): png.h pngconf.h pnglibconf.h | ||
71 | $(CC) -c $(CFLAGS) $*.c | ||
72 | |||
73 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
74 | $(CC) -c $(CFLAGS) $*.c | ||
75 | |||
76 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
77 | $(CC) -c $(CFLAGS) $*.c | ||
78 | |||
79 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
80 | $(CC) -c $(CFLAGS) $*.c | ||
81 | |||
82 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
83 | $(CC) -c $(CFLAGS) $*.c | ||
84 | |||
85 | libpng$(MODEL).lib: $(OBJS1) $(OBJS2) $(OBJS3) | ||
86 | $(LIB) libpng$(MODEL) +$(OBJSL1) | ||
87 | $(LIB) libpng$(MODEL) +$(OBJSL2) | ||
88 | $(LIB) libpng$(MODEL) +$(OBJSL3) | ||
89 | |||
90 | pngtest$(E): pngtest$(O) libpng$(MODEL).lib | ||
91 | $(LD) $(LDFLAGS) pngtest.obj libpng$(MODEL).lib zlib_$(MODEL).lib | ||
92 | |||
93 | # End of makefile for libpng | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.vcwin32 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.vcwin32 new file mode 100644 index 0000000..bdcc508 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.vcwin32 | |||
@@ -0,0 +1,108 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) 1998 Tim Wegner | ||
3 | # Copyright (C) 2006,2009,2011 Glenn Randers-Pehrson | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | # | ||
9 | # Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib | ||
10 | # To use, do "nmake /f scripts\makefile.vcwin32" | ||
11 | |||
12 | # -------- Microsoft Visual C++ 2.0 and later, no assembler code -------- | ||
13 | |||
14 | # Compiler, linker, librarian, and other tools | ||
15 | CC = cl | ||
16 | LD = link | ||
17 | AR = lib | ||
18 | CFLAGS = -nologo -D_CRT_SECURE_NO_DEPRECATE -MD -O2 -W3 -I..\zlib | ||
19 | LDFLAGS = -nologo | ||
20 | ARFLAGS = -nologo | ||
21 | RM = del | ||
22 | |||
23 | # File extensions | ||
24 | O=.obj | ||
25 | |||
26 | #uncomment next to put error messages in a file | ||
27 | #ERRFILE= >> pngerrs.log | ||
28 | |||
29 | # Variables | ||
30 | OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) | ||
31 | OBJS2 = pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) | ||
32 | OBJS3 = pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O) | ||
33 | OBJS = $(OBJS1) $(OBJS2) $(OBJS3) | ||
34 | |||
35 | # Targets | ||
36 | all: libpng.lib | ||
37 | |||
38 | # see scripts/pnglibconf.mak for more options | ||
39 | pnglibconf.h: scripts\pnglibconf.h.prebuilt | ||
40 | copy scripts\pnglibconf.h.prebuilt $@ | ||
41 | |||
42 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
43 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
44 | |||
45 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
46 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
47 | |||
48 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
49 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
50 | |||
51 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
52 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
53 | |||
54 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
55 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
56 | |||
57 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
58 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
59 | |||
60 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
61 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
62 | |||
63 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
64 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
65 | |||
66 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
67 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
68 | |||
69 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
70 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
71 | |||
72 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
73 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
74 | |||
75 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
76 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
77 | |||
78 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
79 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
80 | |||
81 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
82 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
83 | |||
84 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
85 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
86 | |||
87 | libpng.lib: $(OBJS) | ||
88 | -$(RM) $@ | ||
89 | $(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE) | ||
90 | |||
91 | pngtest$(O): png.h pngconf.h pnglibconf.h | ||
92 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
93 | |||
94 | pngtest.exe: pngtest$(O) libpng.lib | ||
95 | $(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE) | ||
96 | |||
97 | test: pngtest.exe | ||
98 | pngtest | ||
99 | |||
100 | clean: | ||
101 | -$(RM) *$(O) | ||
102 | -$(RM) libpng.lib | ||
103 | -$(RM) pnglibconf.h | ||
104 | -$(RM) pngtest.exe | ||
105 | -$(RM) pngout.png | ||
106 | |||
107 | # End of makefile for libpng | ||
108 | |||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makevms.com b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makevms.com new file mode 100644 index 0000000..6563684 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makevms.com | |||
@@ -0,0 +1,142 @@ | |||
1 | $! make libpng under VMS | ||
2 | $! | ||
3 | $! | ||
4 | $! Check for MMK/MMS | ||
5 | $! | ||
6 | $! This procedure accepts one parameter (contrib), which causes it to build | ||
7 | $! the programs from the contrib directory instead of libpng. | ||
8 | $! | ||
9 | $ p1 = f$edit(p1,"UPCASE") | ||
10 | $ if p1 .eqs. "CONTRIB" | ||
11 | $ then | ||
12 | $ set def [.contrib.gregbook] | ||
13 | $ @makevms | ||
14 | $ set def [-.pngminus] | ||
15 | $ @makevms | ||
16 | $ set def [--] | ||
17 | $ exit | ||
18 | $ endif | ||
19 | $ Make = "" | ||
20 | $ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS" | ||
21 | $ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK" | ||
22 | $! | ||
23 | $! Look for the compiler used | ||
24 | $! | ||
25 | $ zlibsrc = "[-.zlib]" | ||
26 | $ ccopt="/include=''zlibsrc'" | ||
27 | $ if f$getsyi("HW_MODEL").ge.1024 | ||
28 | $ then | ||
29 | $ ccopt = "/prefix=all"+ccopt | ||
30 | $ comp = "__decc__=1" | ||
31 | $ if f$trnlnm("SYS").eqs."" then define sys sys$library: | ||
32 | $ else | ||
33 | $ if f$search("SYS$SYSTEM:DECC$COMPILER.EXE").eqs."" | ||
34 | $ then | ||
35 | $ if f$trnlnm("SYS").eqs."" then define sys sys$library: | ||
36 | $ if f$search("SYS$SYSTEM:VAXC.EXE").eqs."" | ||
37 | $ then | ||
38 | $ comp = "__gcc__=1" | ||
39 | $ CC :== GCC | ||
40 | $ else | ||
41 | $ comp = "__vaxc__=1" | ||
42 | $ endif | ||
43 | $ else | ||
44 | $ if f$trnlnm("SYS").eqs."" then define sys decc$library_include: | ||
45 | $ ccopt = "/decc/prefix=all"+ccopt | ||
46 | $ comp = "__decc__=1" | ||
47 | $ endif | ||
48 | $ endif | ||
49 | $! | ||
50 | $! Build the thing plain or with mms/mmk | ||
51 | $! | ||
52 | $ write sys$output "Compiling Libpng sources ..." | ||
53 | $ if make.eqs."" | ||
54 | $ then | ||
55 | $ dele pngtest.obj;* | ||
56 | $ CALL MAKE png.OBJ "cc ''CCOPT' png" - | ||
57 | png.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
58 | $ CALL MAKE pngset.OBJ "cc ''CCOPT' pngset" - | ||
59 | pngset.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
60 | $ CALL MAKE pngget.OBJ "cc ''CCOPT' pngget" - | ||
61 | pngget.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
62 | $ CALL MAKE pngread.OBJ "cc ''CCOPT' pngread" - | ||
63 | pngread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
64 | $ CALL MAKE pngpread.OBJ "cc ''CCOPT' pngpread" - | ||
65 | pngpread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
66 | $ CALL MAKE pngrtran.OBJ "cc ''CCOPT' pngrtran" - | ||
67 | pngrtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
68 | $ CALL MAKE pngrutil.OBJ "cc ''CCOPT' pngrutil" - | ||
69 | pngrutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
70 | $ CALL MAKE pngerror.OBJ "cc ''CCOPT' pngerror" - | ||
71 | pngerror.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
72 | $ CALL MAKE pngmem.OBJ "cc ''CCOPT' pngmem" - | ||
73 | pngmem.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
74 | $ CALL MAKE pngrio.OBJ "cc ''CCOPT' pngrio" - | ||
75 | pngrio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
76 | $ CALL MAKE pngwio.OBJ "cc ''CCOPT' pngwio" - | ||
77 | pngwio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
78 | $ CALL MAKE pngtrans.OBJ "cc ''CCOPT' pngtrans" - | ||
79 | pngtrans.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
80 | $ CALL MAKE pngwrite.OBJ "cc ''CCOPT' pngwrite" - | ||
81 | pngwrite.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
82 | $ CALL MAKE pngwtran.OBJ "cc ''CCOPT' pngwtran" - | ||
83 | pngwtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
84 | $ CALL MAKE pngwutil.OBJ "cc ''CCOPT' pngwutil" - | ||
85 | pngwutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
86 | $ write sys$output "Building Libpng ..." | ||
87 | $ CALL MAKE libpng.OLB "lib/crea libpng.olb *.obj" *.OBJ | ||
88 | $ write sys$output "Building pngtest..." | ||
89 | $ CALL MAKE pngtest.OBJ "cc ''CCOPT' pngtest" - | ||
90 | pngtest.c png.h pngconf.h pnglibconf.h | ||
91 | $ call make pngtest.exe - | ||
92 | "LINK pngtest,libpng.olb/lib,''zlibsrc'libz.olb/lib" - | ||
93 | pngtest.obj libpng.olb | ||
94 | $ write sys$output "Testing Libpng..." | ||
95 | $ run pngtest | ||
96 | $ else | ||
97 | $ if f$search("DESCRIP.MMS") .eqs. "" then copy/nolog [.SCRIPTS]DESCRIP.MMS [] | ||
98 | $ 'make'/macro=('comp',zlibsrc='zlibsrc') | ||
99 | $ endif | ||
100 | $ write sys$output "Libpng build completed" | ||
101 | $ exit | ||
102 | $! | ||
103 | $! | ||
104 | $MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES | ||
105 | $ V = 'F$Verify(0) | ||
106 | $! P1 = What we are trying to make | ||
107 | $! P2 = Command to make it | ||
108 | $! P3 - P8 What it depends on | ||
109 | $ | ||
110 | $ If F$Search(P1) .Eqs. "" Then Goto Makeit | ||
111 | $ Time = F$CvTime(F$File(P1,"RDT")) | ||
112 | $arg=3 | ||
113 | $Loop: | ||
114 | $ Argument = P'arg | ||
115 | $ If Argument .Eqs. "" Then Goto Exit | ||
116 | $ El=0 | ||
117 | $Loop2: | ||
118 | $ File = F$Element(El," ",Argument) | ||
119 | $ If File .Eqs. " " Then Goto Endl | ||
120 | $ AFile = "" | ||
121 | $Loop3: | ||
122 | $ OFile = AFile | ||
123 | $ AFile = F$Search(File) | ||
124 | $ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl | ||
125 | $ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit | ||
126 | $ Goto Loop3 | ||
127 | $NextEL: | ||
128 | $ El = El + 1 | ||
129 | $ Goto Loop2 | ||
130 | $EndL: | ||
131 | $ arg=arg+1 | ||
132 | $ If arg .Le. 8 Then Goto Loop | ||
133 | $ Goto Exit | ||
134 | $ | ||
135 | $Makeit: | ||
136 | $ VV=F$VERIFY(0) | ||
137 | $ write sys$output P2 | ||
138 | $ 'P2 | ||
139 | $ VV='F$Verify(VV) | ||
140 | $Exit: | ||
141 | $ If V Then Set Verify | ||
142 | $ENDSUBROUTINE | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/options.awk b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/options.awk new file mode 100644 index 0000000..29ea31d --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/options.awk | |||
@@ -0,0 +1,777 @@ | |||
1 | #!/bin/awk -f | ||
2 | # scripts/options.awk - library build configuration control | ||
3 | # | ||
4 | # last changed in libpng version 1.5.7 - December 15, 2011 | ||
5 | # | ||
6 | # Copyright (c) 1998-2011 Glenn Randers-Pehrson | ||
7 | # | ||
8 | # This code is released under the libpng license. | ||
9 | # For conditions of distribution and use, see the disclaimer | ||
10 | # and license in png.h | ||
11 | |||
12 | # The output of this script is written to the file given by | ||
13 | # the variable 'out'. The script is run twice, once with | ||
14 | # an intermediate output file, 'options.tmp' then again on | ||
15 | # that file to produce the final output: | ||
16 | # | ||
17 | # awk -f scripts/options.awk out=options.tmp scripts/options.dfa 1>&2 | ||
18 | # awk -f scripts/options.awk out=options.dfn options.tmp 1>&2 | ||
19 | # | ||
20 | # Some options may be specified on the command line: | ||
21 | # | ||
22 | # deb=1 Causes debugging to be output | ||
23 | # logunsupported=1 Causes all options to be recorded in the output | ||
24 | # everything=off Causes all options to be disabled by default | ||
25 | # everything=on Causes all options to be enabled by default | ||
26 | # | ||
27 | # If awk fails on your platform, try nawk instead. | ||
28 | # | ||
29 | # These options may also be specified in the original input file (and | ||
30 | # are copied to the preprocessed file). | ||
31 | |||
32 | BEGIN{ | ||
33 | out="/dev/null" # intermediate, preprocessed, file | ||
34 | pre=-1 # preprocess (first line) | ||
35 | version="libpng version unknown" # version information | ||
36 | version_file="" # where to find the version | ||
37 | err=0 # in-line exit sets this | ||
38 | start="PNG_DEFN_MAGIC-" # Arbitrary start | ||
39 | end="-PNG_DEFN_END" # Arbitrary end | ||
40 | ct="PNG_JOIN" # Join two tokens | ||
41 | cx= "/" ct "*" # Open C comment for output file | ||
42 | comment=start cx # Comment start | ||
43 | cend="*/" end # Comment end | ||
44 | def=start "#define PNG_" ct # Arbitrary define | ||
45 | sup=ct "_SUPPORTED" end # end supported option | ||
46 | und=comment "#undef PNG_" ct # Unsupported option | ||
47 | une=ct "_SUPPORTED" cend # end unsupported option | ||
48 | error=start "ERROR:" # error message | ||
49 | |||
50 | # Variables | ||
51 | deb=0 # debug - set on command line | ||
52 | everything="" # do not override defaults | ||
53 | logunsupported=0 # write unsupported options too | ||
54 | |||
55 | # Precreate arrays | ||
56 | option[""] = "" # list of all options: default enabled/disabled | ||
57 | done[""] = 1 # marks option as having been output | ||
58 | requires[""] = "" # requires by option | ||
59 | iffs[""] = "" # if by option | ||
60 | enabledby[""] = "" # options that enable it by option | ||
61 | setting[""] = "" # requires by setting | ||
62 | defaults[""] = "" # used for a defaulted value | ||
63 | doneset[""] = 1 # marks setting as having been output | ||
64 | r[""] = "" # Temporary array | ||
65 | |||
66 | # For decorating the output file | ||
67 | protect = "" | ||
68 | } | ||
69 | |||
70 | # The output file must be specified before any input: | ||
71 | out == "/dev/null" { | ||
72 | print "out=output.file must be given on the command line" | ||
73 | err = 1 | ||
74 | exit 1 | ||
75 | } | ||
76 | |||
77 | # The very first line indicates whether we are reading pre-processed | ||
78 | # input or not, this must come *first* because 'PREPROCESSED' needs | ||
79 | # to be the very first line in the temporary file. | ||
80 | pre == -1{ | ||
81 | if ($0 == "PREPROCESSED") { | ||
82 | pre = 0 | ||
83 | next | ||
84 | } else { | ||
85 | pre = 1 | ||
86 | print "PREPROCESSED" >out | ||
87 | # And fall through to continue processing | ||
88 | } | ||
89 | } | ||
90 | |||
91 | # While pre-processing if version is set to "search" look for a version string | ||
92 | # in the following file. | ||
93 | pre && version == "search" && version_file == ""{ | ||
94 | version_file = FILENAME | ||
95 | } | ||
96 | |||
97 | pre && version == "search" && version_file != FILENAME{ | ||
98 | print "version string not found in", version_file | ||
99 | err = 1 | ||
100 | exit 1 | ||
101 | } | ||
102 | |||
103 | pre && version == "search" && $0 ~ /^ \* libpng version/{ | ||
104 | version = substr($0, 4) | ||
105 | print "version =", version >out | ||
106 | next | ||
107 | } | ||
108 | |||
109 | pre && FILENAME == version_file{ | ||
110 | next | ||
111 | } | ||
112 | |||
113 | # variable=value | ||
114 | # Sets the given variable to the given value (the syntax is fairly | ||
115 | # free form, except for deb (you are expected to understand how to | ||
116 | # set the debug variable...) | ||
117 | # | ||
118 | # This happens before the check on 'pre' below skips most of the | ||
119 | # rest of the actions, so the variable settings happen during | ||
120 | # preprocessing but are recorded in the END action too. This | ||
121 | # allows them to be set on the command line too. | ||
122 | $0 ~ /^[ ]*version[ ]*=/{ | ||
123 | sub(/^[ ]*version[ ]*=[ ]*/, "") | ||
124 | version = $0 | ||
125 | next | ||
126 | } | ||
127 | $0 ~ /^[ ]*everything[ =]*off[ ]*$/{ | ||
128 | everything = "off" | ||
129 | next | ||
130 | } | ||
131 | $0 ~ /^[ ]*everything[ =]*on[ ]*$/{ | ||
132 | everything = "on" | ||
133 | next | ||
134 | } | ||
135 | $0 ~ /^[ ]*logunsupported[ =]*0[ ]*$/{ | ||
136 | logunsupported = 0 | ||
137 | next | ||
138 | } | ||
139 | $0 ~ /^[ ]*logunsupported[ =]*1[ ]*$/{ | ||
140 | logunsupported = 1 | ||
141 | next | ||
142 | } | ||
143 | $1 == "deb" && $2 == "=" && NF == 3{ | ||
144 | deb = $3 | ||
145 | next | ||
146 | } | ||
147 | |||
148 | # Preprocessing - this just copies the input file with lines | ||
149 | # that need preprocessing (just chunk at present) expanded | ||
150 | # The bare "pre" instead of "pre != 0" crashes under Sunos awk | ||
151 | pre && $1 != "chunk"{ | ||
152 | print >out | ||
153 | next | ||
154 | } | ||
155 | |||
156 | # The first characters of the line determine how it is processed, | ||
157 | # leading spaces are ignored. In general tokens that are not | ||
158 | # keywords are the names of options. An option 'name' is | ||
159 | # controlled by the definition of the corresponding macros: | ||
160 | # | ||
161 | # PNG_name_SUPPORTED The option is turned on | ||
162 | # PNG_NO_name | ||
163 | # PNG_NO_name_SUPPORTED If the first macro is not defined | ||
164 | # either of these will turn the option off | ||
165 | # | ||
166 | # If none of these macros are defined the option is turned on, unless | ||
167 | # the keyword 'off' is given in a line relating to the option. The | ||
168 | # keyword 'on' can also be given, but it will be ignored (since it is | ||
169 | # the default.) | ||
170 | # | ||
171 | # In the syntax below a 'name' is indicated by "NAME", other macro | ||
172 | # values are indicated by "MACRO", as with "NAME" the leading "PNG_" | ||
173 | # is omitted, but in this case the "NO_" prefix and the "_SUPPORTED" | ||
174 | # suffix are never used. | ||
175 | # | ||
176 | # Each line is introduced by a keyword - the first non-space characters | ||
177 | # on the line. A line starting with a '#' is a comment - it is totally | ||
178 | # ignored. Keywords are as follows, a NAME, is simply a macro name | ||
179 | # without the leading PNG_, PNG_NO_ or the trailing _SUPPORTED. | ||
180 | |||
181 | $1 ~ /^#/ || $0 ~ /^[ ]*$/{ | ||
182 | next | ||
183 | } | ||
184 | |||
185 | # com <comment> | ||
186 | # The whole line is placed in the output file as a comment with | ||
187 | # the preceding 'com' removed | ||
188 | $1 == "com"{ | ||
189 | if (NF > 1) { | ||
190 | # sub(/^[ ]*com[ ]*/, "") | ||
191 | $1 = "" | ||
192 | print comment, $0, cend >out | ||
193 | } else | ||
194 | print start end >out | ||
195 | next | ||
196 | } | ||
197 | |||
198 | # version | ||
199 | # Inserts a version comment | ||
200 | $1 == "version" && NF == 1{ | ||
201 | if (version == "") { | ||
202 | print "ERROR: no version string set" | ||
203 | err = 1 # prevent END{} running | ||
204 | exit 1 | ||
205 | } | ||
206 | |||
207 | print comment, version, cend >out | ||
208 | next | ||
209 | } | ||
210 | |||
211 | # file output input protect | ||
212 | # Informational: the official name of the input file (without | ||
213 | # make generated local directories), the official name of the | ||
214 | # output file and, if required, a name to use in a protection | ||
215 | # macro for the contents. | ||
216 | $1 == "file" && NF >= 2{ | ||
217 | print comment, $2, cend >out | ||
218 | print comment, "Machine generated file: DO NOT EDIT", cend >out | ||
219 | if (NF >= 3) | ||
220 | print comment, "Derived from:", $3, cend >out | ||
221 | protect = $4 | ||
222 | if (protect != "") { | ||
223 | print start "#ifndef", protect end >out | ||
224 | print start "#define", protect end >out | ||
225 | } | ||
226 | next | ||
227 | } | ||
228 | |||
229 | # option NAME ( (requires|enables|if) NAME* | on | off | disabled )* | ||
230 | # Declares an option 'NAME' and describes its default setting (disabled) | ||
231 | # and its relationship to other options. The option is disabled | ||
232 | # unless *all* the options listed after 'requires' are set and at | ||
233 | # least one of the options listed after 'if' is set. If the | ||
234 | # option is set then it turns on all the options listed after 'enables'. | ||
235 | # | ||
236 | # Note that "enables" takes priority over the required/if/disabled/off | ||
237 | # setting of the target option. | ||
238 | # | ||
239 | # The definition file may list an option as 'disabled': off by default, | ||
240 | # otherwise the option is enabled: on by default. A later (and it must | ||
241 | # be later) entry may turn an option on or off explicitly. | ||
242 | |||
243 | $1 == "option" && NF >= 2{ | ||
244 | onoff = option[$2] # records current (and the default is "", enabled) | ||
245 | key = "" | ||
246 | for (i=3; i<=NF; ++i) { | ||
247 | if ($(i) == "on" || $(i) == "off" || $(i) == "disabled") { | ||
248 | key = "" | ||
249 | if (onoff != $(i)) { | ||
250 | # on or off can zap disabled or enabled: | ||
251 | if (onoff == "" || (onoff == "disabled" || onoff == "enabled") && ($(i) == "on" || $(i) == "off")) { | ||
252 | # It's easy to mis-spell the option when turning it | ||
253 | # on or off, so warn about it here: | ||
254 | if (onoff == "" && ($(i) == "on" || $(i) == "off")) { | ||
255 | print $2 ": ERROR: turning unrecognized option", $(i) | ||
256 | # For the moment error out - it is safer | ||
257 | err = 1 # prevent END{} running | ||
258 | exit 1 | ||
259 | } | ||
260 | onoff = $(i) | ||
261 | } else { | ||
262 | # Print a message, otherwise the error | ||
263 | # below is incomprehensible | ||
264 | print $2 ": currently", onoff ": attempt to turn", $(i) | ||
265 | break | ||
266 | } | ||
267 | } | ||
268 | } else if ($(i) == "requires" || $(i) == "if" || $(i) == "enables") { | ||
269 | key = $(i) | ||
270 | } else if (key == "requires") { | ||
271 | requires[$2] = requires[$2] " " $(i) | ||
272 | } else if (key == "if") { | ||
273 | iffs[$2] = iffs[$2] " " $(i) | ||
274 | } else if (key == "enables") { | ||
275 | enabledby[$(i)] = enabledby[$(i)] " " $2 | ||
276 | } else | ||
277 | break # bad line format | ||
278 | } | ||
279 | |||
280 | if (i > NF) { | ||
281 | # Set the option, defaulting to 'enabled' | ||
282 | if (onoff == "") onoff = "enabled" | ||
283 | option[$2] = onoff | ||
284 | next | ||
285 | } | ||
286 | # Else fall through to the error handler | ||
287 | } | ||
288 | |||
289 | # chunk NAME [requires OPT] [on|off|disabled] | ||
290 | # Expands to the 'option' settings appropriate to the reading and | ||
291 | # writing of an ancilliary PNG chunk 'NAME': | ||
292 | # | ||
293 | # option READ_NAME requires READ_ANCILLARY_CHUNKS [READ_OPT] | ||
294 | # option READ_NAME enables NAME | ||
295 | # [option READ_NAME off] | ||
296 | # option WRITE_NAME requires WRITE_ANCILLARY_CHUNKS [WRITE_OPT] | ||
297 | # option WRITE_NAME enables NAME | ||
298 | # [option WRITE_NAME off] | ||
299 | |||
300 | pre != 0 && $1 == "chunk" && NF >= 2{ | ||
301 | # 'chunk' is handled on the first pass by writing appropriate | ||
302 | # 'option' lines into the intermediate file. | ||
303 | onoff = "" | ||
304 | reqread = "" | ||
305 | reqwrite = "" | ||
306 | i = 3 # indicates format error | ||
307 | if (NF > 2) { | ||
308 | # read the keywords/additional OPTS | ||
309 | req = 0 | ||
310 | for (i=3; i<=NF; ++i) { | ||
311 | if ($(i) == "on" || $(i) == "off" || $(i) == "disabled") { | ||
312 | if (onoff != $(i)) { | ||
313 | if (onoff == "") | ||
314 | onoff = $(i) | ||
315 | else | ||
316 | break # on/off conflict | ||
317 | } | ||
318 | } else if ($(i) == "requires") | ||
319 | req = 1 | ||
320 | else if (req != 1) | ||
321 | break # bad line: handled below | ||
322 | else { | ||
323 | reqread = reqread " READ_" $(i) | ||
324 | reqwrite = reqwrite " WRITE_" $(i) | ||
325 | } | ||
326 | } | ||
327 | } | ||
328 | |||
329 | if (i > NF) { | ||
330 | # Output new 'option' lines to the intermediate file (out) | ||
331 | print "option READ_" $2, "requires READ_ANCILLARY_CHUNKS" reqread, "enables", $2, onoff >out | ||
332 | print "option WRITE_" $2, "requires WRITE_ANCILLARY_CHUNKS" reqwrite, "enables", $2, onoff >out | ||
333 | next | ||
334 | } | ||
335 | # Else hit the error handler below - bad line format! | ||
336 | } | ||
337 | |||
338 | # setting MACRO ( requires MACRO* )* [ default VALUE ] | ||
339 | # Behaves in a similar way to 'option' without looking for NO_ or | ||
340 | # _SUPPORTED; the macro is enabled if it is defined so long as all | ||
341 | # the 'requires' macros are also defined. The definitions may be | ||
342 | # empty, an error will be issued if the 'requires' macros are | ||
343 | # *not* defined. If given the 'default' value is used if the | ||
344 | # macro is not defined. The default value will be re-tokenised. | ||
345 | # (BTW: this is somewhat restrictive, it mainly exists for the | ||
346 | # support of non-standard configurations and numeric parameters, | ||
347 | # see the uses in scripts/options.dat | ||
348 | |||
349 | $1 == "setting" && (NF == 2 || NF >= 3 && ($3 == "requires" || $3 == "default")){ | ||
350 | reqs = "" | ||
351 | deflt = "" | ||
352 | isdef = 0 | ||
353 | key = "" | ||
354 | for (i=3; i<=NF; ++i) | ||
355 | if ($(i) == "requires" || $(i) == "default") { | ||
356 | key = $(i) | ||
357 | if (key == "default") isdef = 1 | ||
358 | } else if (key == "requires") | ||
359 | reqs = reqs " " $(i) | ||
360 | else if (key == "default") | ||
361 | deflt = deflt " " $(i) | ||
362 | else | ||
363 | break # Format error, handled below | ||
364 | |||
365 | setting[$2] = reqs | ||
366 | # NOTE: this overwrites a previous value silently | ||
367 | if (isdef && deflt == "") | ||
368 | deflt = " " # as a flag to force output | ||
369 | defaults[$2] = deflt | ||
370 | next | ||
371 | } | ||
372 | |||
373 | # The order of the dependency lines (option, chunk, setting) is irrelevant | ||
374 | # - the 'enables', 'requires' and 'if' settings will be used to determine | ||
375 | # the correct order in the output and the final values in pnglibconf.h are | ||
376 | # not order dependent. 'requires' and 'if' entries take precedence over | ||
377 | # 'enables' from other options; if an option requires another option it | ||
378 | # won't be set regardless of any options that enable it unless the other | ||
379 | # option is also enabled. | ||
380 | # | ||
381 | # Similarly 'enables' trumps a NO_ definition in CFLAGS or pngusr.h | ||
382 | # | ||
383 | # For simplicity cycles in the definitions are regarded as errors, | ||
384 | # even if they are not ambiguous. | ||
385 | # A given NAME can be specified in as many 'option' lines as required, the | ||
386 | # definitions are additive. | ||
387 | |||
388 | # For backwards compatibility equivalent macros may be listed thus: | ||
389 | # | ||
390 | # = [NO_]NAME MACRO | ||
391 | # Makes -DMACRO equivalent to -DPNG_NO_NAME or -DPNG_NAME_SUPPORTED | ||
392 | # as appropriate. | ||
393 | # | ||
394 | # The definition is injected into the C compiler input when encountered | ||
395 | # in the second pass (so all these definitions appear *after* the @ | ||
396 | # lines!) | ||
397 | # | ||
398 | # 'NAME' is as above, but 'MACRO' is the full text of the equivalent | ||
399 | # old, deprecated, macro. | ||
400 | |||
401 | $1 == "=" && NF == 3{ | ||
402 | print "#ifdef PNG_" $3 >out | ||
403 | if ($2 ~ /^NO_/) | ||
404 | print "# define PNG_" $2 >out | ||
405 | else | ||
406 | print "# define PNG_" $2 "_SUPPORTED" >out | ||
407 | print "#endif" >out | ||
408 | next | ||
409 | } | ||
410 | |||
411 | # Lines may be injected into the C compiler input by preceding them | ||
412 | # with an "@" character. The line is copied with just the leading | ||
413 | # @ removed. | ||
414 | |||
415 | $1 ~ /^@/{ | ||
416 | # sub(/^[ ]*@/, "") | ||
417 | $1 = substr($1, 2) | ||
418 | print >out | ||
419 | next | ||
420 | } | ||
421 | |||
422 | # Check for unreognized lines, because of the preprocessing chunk | ||
423 | # format errors will be detected on the first pass independent of | ||
424 | # any other format errors. | ||
425 | { | ||
426 | print "options.awk: bad line (" NR "):", $0 | ||
427 | err = 1 # prevent END{} running | ||
428 | exit 1 | ||
429 | } | ||
430 | |||
431 | # For checking purposes names that start with "ok_" or "fail_" are | ||
432 | # not output to pnglibconf.h and must be either enabled or disabled | ||
433 | # respectively for the build to succeed. This allows interdependencies | ||
434 | # between options of the form "at least one of" or "at most one of" | ||
435 | # to be checked. For example: | ||
436 | # | ||
437 | # option FLOATING_POINT enables ok_math | ||
438 | # option FIXED_POINT enables ok_math | ||
439 | # This ensures that at least one of FLOATING_POINT and FIXED_POINT | ||
440 | # must be set for the build to succeed. | ||
441 | # | ||
442 | # option fail_math requires FLOATING_POINT FIXED_POINT | ||
443 | # This means the build will fail if *both* FLOATING_POINT and | ||
444 | # FIXED_POINT are set (this is an example; in fact both are allowed.) | ||
445 | # | ||
446 | # If all these options were given the build would require exactly one | ||
447 | # of the names to be enabled. | ||
448 | |||
449 | END{ | ||
450 | # END{} gets run on an exit (a traditional awk feature) | ||
451 | if (err) exit 1 | ||
452 | |||
453 | if (pre) { | ||
454 | # Record the final value of the variables | ||
455 | print "deb =", deb >out | ||
456 | if (everything != "") { | ||
457 | print "everything =", everything >out | ||
458 | } | ||
459 | print "logunsupported =", logunsupported >out | ||
460 | exit 0 | ||
461 | } | ||
462 | |||
463 | # Do the 'setting' values first, the algorithm the standard | ||
464 | # tree walk (O(1)) done in an O(2) while/for loop; interations | ||
465 | # settings x depth, outputing the deepest required macros | ||
466 | # first. | ||
467 | print "" >out | ||
468 | print "/* SETTINGS */" >out | ||
469 | print comment, "settings", cend >out | ||
470 | finished = 0 | ||
471 | while (!finished) { | ||
472 | finished = 1 | ||
473 | movement = 0 # done nothing | ||
474 | for (i in setting) if (!doneset[i]) { | ||
475 | nreqs = split(setting[i], r) | ||
476 | if (nreqs > 0) { | ||
477 | for (j=1; j<=nreqs; ++j) if (!doneset[r[j]]) { | ||
478 | break | ||
479 | } | ||
480 | if (j<=nreqs) { | ||
481 | finished = 0 | ||
482 | continue # try a different setting | ||
483 | } | ||
484 | } | ||
485 | |||
486 | # All the requirements have been processed, output | ||
487 | # this setting. | ||
488 | if (deb) print "setting", i | ||
489 | print "" >out | ||
490 | print "/* setting: ", i >out | ||
491 | print " * requires:" setting[i] >out | ||
492 | print " * default: ", defaults[i], "*/" >out | ||
493 | if (defaults[i] == "") { # no default, only check if defined | ||
494 | print "#ifdef PNG_" i >out | ||
495 | } | ||
496 | for (j=1; j<=nreqs; ++j) { | ||
497 | print "# ifndef PNG_" r[j] >out | ||
498 | print error, i, "requires", r[j] end >out | ||
499 | print "# endif" >out | ||
500 | } | ||
501 | if (defaults[i] != "") { # default handling | ||
502 | print "#ifdef PNG_" i >out | ||
503 | } | ||
504 | print def i, "PNG_" i end >out | ||
505 | if (defaults[i] != "") { | ||
506 | print "#else /*default*/" >out | ||
507 | # And add the default definition for the benefit | ||
508 | # of later settings an options test: | ||
509 | print "# define PNG_" i defaults[i] >out | ||
510 | print def i defaults[i] end >out | ||
511 | } | ||
512 | print "#endif" >out | ||
513 | |||
514 | doneset[i] = 1 | ||
515 | ++movement | ||
516 | } | ||
517 | |||
518 | if (!finished && !movement) { | ||
519 | print "setting: loop or missing setting in 'requires', cannot process:" | ||
520 | for (i in setting) if (!doneset[i]) { | ||
521 | print " setting", i, "requires" setting[i] | ||
522 | } | ||
523 | exit 1 | ||
524 | } | ||
525 | } | ||
526 | print comment, "end of settings", cend >out | ||
527 | |||
528 | # Now do the options - somewhat more complex. The dependency | ||
529 | # tree is thus: | ||
530 | # | ||
531 | # name > name | ||
532 | # name requires name | ||
533 | # name if name | ||
534 | # name enabledby name | ||
535 | # | ||
536 | # First build a list 'tree' by option of all the things on which | ||
537 | # it depends. | ||
538 | print "" >out | ||
539 | print "/* OPTIONS */" >out | ||
540 | print comment, "options", cend >out | ||
541 | for (opt in enabledby) tree[opt] = 1 # may not be explicit options | ||
542 | for (opt in option) if (opt != "") { | ||
543 | o = option[opt] | ||
544 | # option should always be one of the following values | ||
545 | if (o != "on" && o != "off" && o != "disabled" && o != "enabled") { | ||
546 | print "internal option error (" o ")" | ||
547 | exit 1 | ||
548 | } | ||
549 | tree[opt] = "" # so unlisted options marked | ||
550 | } | ||
551 | for (opt in tree) if (opt != "") { | ||
552 | if (tree[opt] == 1) { | ||
553 | tree[opt] = "" | ||
554 | if (option[opt] != "") { | ||
555 | print "internal error (1)" | ||
556 | exit 1 | ||
557 | } | ||
558 | # Macros only listed in 'enables' remain off unless | ||
559 | # one of the enabling macros is on. | ||
560 | option[opt] = "disabled" | ||
561 | } | ||
562 | |||
563 | split("", list) # clear 'list' | ||
564 | # Now add every requires, iffs or enabledby entry to 'list' | ||
565 | # so that we can add a unique list of requirements to tree[i] | ||
566 | split(requires[opt] iffs[opt] enabledby[opt], r) | ||
567 | for (i in r) list[r[i]] = 1 | ||
568 | for (i in list) tree[opt] = tree[opt] " " i | ||
569 | } | ||
570 | |||
571 | # print the tree for extreme debugging | ||
572 | if (deb > 2) for (i in tree) if (i != "") print i, "depends-on" tree[i] | ||
573 | |||
574 | # Ok, now check all options marked explicitly 'on' or 'off': | ||
575 | # | ||
576 | # If an option[opt] is 'on' then turn on all requires[opt] | ||
577 | # If an option[opt] is 'off' then turn off all enabledby[opt] | ||
578 | # | ||
579 | # Error out if we have to turn 'on' an 'off' option or vice versa. | ||
580 | npending = 0 | ||
581 | for (opt in option) if (opt != "") { | ||
582 | if (option[opt] == "on" || option[opt] == "off") { | ||
583 | pending[++npending] = opt | ||
584 | } | ||
585 | } | ||
586 | |||
587 | err = 0 # set on error | ||
588 | while (npending > 0) { | ||
589 | opt = pending[npending--] | ||
590 | if (option[opt] == "on") { | ||
591 | nreqs = split(requires[opt], r) | ||
592 | for (j=1; j<=nreqs; ++j) { | ||
593 | if (option[r[j]] == "off") { | ||
594 | print "option", opt, "turned on, but requirement", r[j], "is turned off" | ||
595 | err = 1 | ||
596 | } else if (option[r[j]] != "on") { | ||
597 | option[r[j]] = "on" | ||
598 | pending[++npending] = r[j] | ||
599 | } | ||
600 | } | ||
601 | } else { | ||
602 | if (option[opt] != "off") { | ||
603 | print "internal error (2)" | ||
604 | exit 1 | ||
605 | } | ||
606 | nreqs = split(enabledby[opt], r) | ||
607 | for (j=1; j<=nreqs; ++j) { | ||
608 | if (option[r[j]] == "on") { | ||
609 | print "option", opt, "turned off, but enabled by", r[j], "which is turned on" | ||
610 | err = 1 | ||
611 | } else if (option[r[j]] != "off") { | ||
612 | option[r[j]] = "off" | ||
613 | pending[++npending] = r[j] | ||
614 | } | ||
615 | } | ||
616 | } | ||
617 | } | ||
618 | if (err) exit 1 | ||
619 | |||
620 | # option[i] is now the complete list of all the tokens we may | ||
621 | # need to output, go through it as above, depth first. | ||
622 | finished = 0 | ||
623 | while (!finished) { | ||
624 | finished = 1 | ||
625 | movement = 0 # done nothing | ||
626 | for (i in option) if (!done[i]) { | ||
627 | nreqs = split(tree[i], r) | ||
628 | if (nreqs > 0) { | ||
629 | for (j=1; j<=nreqs; ++j) if (!done[r[j]]) { | ||
630 | break | ||
631 | } | ||
632 | if (j<=nreqs) { | ||
633 | finished = 0 | ||
634 | continue # next option | ||
635 | } | ||
636 | } | ||
637 | |||
638 | # All the requirements have been processed, output | ||
639 | # this option. An option is _SUPPORTED if: | ||
640 | # | ||
641 | # all 'requires' are _SUPPORTED AND | ||
642 | # at least one of the 'if' options are _SUPPORTED AND | ||
643 | # EITHER: | ||
644 | # The name is _SUPPORTED (on the command line) | ||
645 | # OR: | ||
646 | # an 'enabledby' is _SUPPORTED | ||
647 | # OR: | ||
648 | # NO_name is not defined AND | ||
649 | # the option is not disabled; an option is disabled if: | ||
650 | # option == off | ||
651 | # option == disabled && everything != on | ||
652 | # option == "" && everything == off | ||
653 | if (deb) print "option", i | ||
654 | print "" >out | ||
655 | print "/* option:", i, option[i] >out | ||
656 | print " * requires: " requires[i] >out | ||
657 | print " * if: " iffs[i] >out | ||
658 | print " * enabled-by:" enabledby[i], "*/" >out | ||
659 | print "#undef PNG_on" >out | ||
660 | print "#define PNG_on 1" >out | ||
661 | |||
662 | # requires | ||
663 | nreqs = split(requires[i], r) | ||
664 | for (j=1; j<=nreqs; ++j) { | ||
665 | print "#ifndef PNG_" r[j] "_SUPPORTED" >out | ||
666 | print "# undef PNG_on /*!" r[j] "*/" >out | ||
667 | # this error appears in the final output if something | ||
668 | # was switched 'on' but the processing above to force | ||
669 | # the requires did not work | ||
670 | if (option[i] == "on") { | ||
671 | print error, i, "requires", r[j] end >out | ||
672 | } | ||
673 | print "#endif" >out | ||
674 | } | ||
675 | |||
676 | # if | ||
677 | nreqs = split(iffs[i], r) | ||
678 | print "#undef PNG_no_if" >out | ||
679 | if (nreqs > 0) { | ||
680 | print "/* if" iffs[i], "*/" >out | ||
681 | print "#define PNG_no_if 1" >out | ||
682 | for (j=1; j<=nreqs; ++j) { | ||
683 | print "#ifdef PNG_" r[j] "_SUPPORTED" >out | ||
684 | print "# undef PNG_no_if /*" r[j] "*/" >out | ||
685 | print "#endif" >out | ||
686 | } | ||
687 | print "#ifdef PNG_no_if /*missing if*/" >out | ||
688 | print "# undef PNG_on" >out | ||
689 | # There is no checking above for this, because we | ||
690 | # don't know which 'if' to choose, so whine about | ||
691 | # it here: | ||
692 | if (option[i] == "on") { | ||
693 | print error, i, "needs one of:", iffs[i] end >out | ||
694 | } | ||
695 | print "#endif" >out | ||
696 | } | ||
697 | |||
698 | print "#ifdef PNG_on /*requires, if*/" >out | ||
699 | # enables | ||
700 | print "# undef PNG_not_enabled" >out | ||
701 | print "# define PNG_not_enabled 1" >out | ||
702 | print " /* enabled by" enabledby[i], "*/" >out | ||
703 | nreqs = split(enabledby[i], r) | ||
704 | for (j=1; j<=nreqs; ++j) { | ||
705 | print "#ifdef PNG_" r[j] "_SUPPORTED" >out | ||
706 | print "# undef PNG_not_enabled /*" r[j] "*/" >out | ||
707 | # Oops, probably not intended (should be factored | ||
708 | # out by the checks above). | ||
709 | if (option[i] == "off") { | ||
710 | print error, i, "enabled by:", r[j] end >out | ||
711 | } | ||
712 | print "#endif" >out | ||
713 | } | ||
714 | |||
715 | print "# ifndef PNG_" i "_SUPPORTED /*!command line*/" >out | ||
716 | print "# ifdef PNG_not_enabled /*!enabled*/" >out | ||
717 | if (option[i] == "off" || option[i] == "disabled" && everything != "on" || option[i] == "enabled" && everything == "off") { | ||
718 | print "# undef PNG_on /*default off*/" >out | ||
719 | } else { | ||
720 | print "# ifdef PNG_NO_" i >out | ||
721 | print "# undef PNG_on /*turned off*/" >out | ||
722 | print "# endif" >out | ||
723 | print "# ifdef PNG_NO_" i "_SUPPORTED" >out | ||
724 | print "# undef PNG_on /*turned off*/" >out | ||
725 | print "# endif" >out | ||
726 | } | ||
727 | print "# endif /*!enabled*/" >out | ||
728 | print "# ifdef PNG_on" >out | ||
729 | # The _SUPPORTED macro must be defined so that dependent | ||
730 | # options output later work. | ||
731 | print "# define PNG_" i "_SUPPORTED" >out | ||
732 | print "# endif" >out | ||
733 | print "# endif /*!command line*/" >out | ||
734 | # If PNG_on is still set the option should be defined in | ||
735 | # pnglibconf.h | ||
736 | print "# ifdef PNG_on" >out | ||
737 | if (i ~ /^fail_/) { | ||
738 | print error, i, "is on: enabled by:" iffs[i] enabledby[i] ", requires" requires[i] end >out | ||
739 | } else if (i !~ /^ok_/) { | ||
740 | print def i sup >out | ||
741 | } | ||
742 | print "# endif /* definition */" >out | ||
743 | print "#endif /*requires, if*/" >out | ||
744 | if (logunsupported || i ~ /^ok_/) { | ||
745 | print "#ifndef PNG_on" >out | ||
746 | if (logunsupported) { | ||
747 | print und i une >out | ||
748 | } | ||
749 | if (i ~ /^ok_/) { | ||
750 | print error, i, "not enabled: requires:" requires[i] ", enabled by:" iffs[i] enabledby[i] end >out | ||
751 | } | ||
752 | print "#endif" >out | ||
753 | } | ||
754 | |||
755 | done[i] = 1 | ||
756 | ++movement | ||
757 | } | ||
758 | |||
759 | if (!finished && !movement) { | ||
760 | print "option: loop or missing option in dependency tree, cannot process:" | ||
761 | for (i in option) if (!done[i]) { | ||
762 | print " option", i, "depends on" tree[i], "needs:" | ||
763 | nreqs = split(tree[i], r) | ||
764 | if (nreqs > 0) for (j=1; j<=nreqs; ++j) if (!done[r[j]]) { | ||
765 | print " " r[j] | ||
766 | } | ||
767 | } | ||
768 | exit 1 | ||
769 | } | ||
770 | } | ||
771 | print comment, "end of options", cend >out | ||
772 | |||
773 | # Regular end - everything looks ok | ||
774 | if (protect != "") { | ||
775 | print start "#endif", cx, protect, "*/" end >out | ||
776 | } | ||
777 | } | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.dfa b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.dfa new file mode 100644 index 0000000..b0ccd39 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.dfa | |||
@@ -0,0 +1,578 @@ | |||
1 | # scripts/pnglibconf.dfa - library build configuration control | ||
2 | # | ||
3 | @/*- pnglibconf.dfn intermediate file | ||
4 | @ * generated from scripts/pnglibconf.dfa | ||
5 | @ */ | ||
6 | # | ||
7 | com pnglibconf.h - library build configuration | ||
8 | com | ||
9 | version | ||
10 | com | ||
11 | com Copyright (c) 1998-2011 Glenn Randers-Pehrson | ||
12 | com | ||
13 | com This code is released under the libpng license. | ||
14 | com For conditions of distribution and use, see the disclaimer | ||
15 | com and license in png.h | ||
16 | com | ||
17 | |||
18 | file pnglibconf.h scripts/pnglibconf.dfa PNGLCONF_H | ||
19 | |||
20 | # This file is preprocessed by scripts/options.awk and the | ||
21 | # C compiler to generate 'pnglibconf.h' - a list of all the | ||
22 | # configuration options. The file lists the various options | ||
23 | # that can *only* be specified during the libpng build; | ||
24 | # pnglibconf.h freezes the definitons selected for the specific | ||
25 | # build. | ||
26 | # | ||
27 | # The syntax is detailed in scripts/options.awk, this is a summary | ||
28 | # only: | ||
29 | # | ||
30 | # setting <name> [requires ...] [default] | ||
31 | # #define PNG_<name> <value> /* value comes from current setting */ | ||
32 | # option <name> [requires ...] [if ...] [enables ...] [disabled] | ||
33 | # #define PNG_<name>_SUPPORTED if the requirements are met and | ||
34 | # enable the other options listed | ||
35 | # chunk <name> [requires ...] [disabled] | ||
36 | # Enable chunk processing for the given ancillary chunk | ||
37 | # | ||
38 | # Note that the 'on' and 'off' keywords, while valid on both option | ||
39 | # and chunk, should not be used in this file because they force the | ||
40 | # relevant options on or off. | ||
41 | |||
42 | #---------------------------------------------------------------------- | ||
43 | |||
44 | # The following setting, option and chunk values can all be changed | ||
45 | # while building libpng: | ||
46 | # | ||
47 | # setting: change 'setting' lines to fine tune library performance, | ||
48 | # changes to the settings don't affect the libpng API functionally | ||
49 | # | ||
50 | # option: change 'option' lines to remove or add capabilities from | ||
51 | # or to the library; options change the library API | ||
52 | # | ||
53 | # chunk: change 'chunk' lines to remove capabilities to process | ||
54 | # optional ('ancillary') chunks. This does not prevent PNG | ||
55 | # decoding but does change the libpng API because some chunks | ||
56 | # will be ignored. | ||
57 | # | ||
58 | # There are three ways of disabling features, in no particular order: | ||
59 | # | ||
60 | # 1) Create 'pngusr.h', enter the required private build information | ||
61 | # detailed below and #define PNG_NO_<option> for each option you | ||
62 | # don't want in that file in that file. You can also turn on options | ||
63 | # using PNG_<option>_SUPPORTED. When you have finished rerun | ||
64 | # configure and rebuild pnglibconf.h file with -DPNG_USER_CONFIG: | ||
65 | # | ||
66 | # make clean | ||
67 | # CPPFLAGS='-DPNG_USER_CONFIG' ./configure | ||
68 | # make pnglibconf.h | ||
69 | # | ||
70 | # pngusr.h is only used during the creation of pnglibconf.h, but it | ||
71 | # is safer to ensure that -DPNG_USER_CONFIG is specified throughout | ||
72 | # the build by changing the CPPFLAGS passed to the initial ./configure | ||
73 | # | ||
74 | # 2) Add definitions of the settings you want to change to | ||
75 | # CPPFLAGS; for example: | ||
76 | # | ||
77 | # -DPNG_DEFAULT_READ_MACROS=0 | ||
78 | # | ||
79 | # (This would change the default to *not* use read macros.) Be | ||
80 | # very careful to change only settings that don't alter the API | ||
81 | # because this approach bypasses the private build checking. You | ||
82 | # can also change settings from pngpriv.h (read pngpriv.h) safely | ||
83 | # without API changes. Do that in the same way. | ||
84 | # | ||
85 | # 3) Write a new '.dfa' file (say 'pngusr.dfa') and in this file | ||
86 | # provide override values for setting entries and turn option or | ||
87 | # chunk values explicitly 'on' or 'off': | ||
88 | # | ||
89 | # setting FOO default VALUE | ||
90 | # option BAR [on|off] | ||
91 | # | ||
92 | # Then add this file to the options.awk command line (the *first* | ||
93 | # one) after this file. The make macro DFA_XTRA is provided to make | ||
94 | # this easier (set it like CPPFLAGS prior to running ./configure). | ||
95 | # Look at the builds below contrib/pngminim for some extreme examples | ||
96 | # of how this can be used. | ||
97 | # | ||
98 | # Don't edit this file unless you are contributing a patch to | ||
99 | # libpng and need new or modified options/settings. | ||
100 | #---------------------------------------------------------------------- | ||
101 | |||
102 | # The following causes commented out #undef lines to be written to | ||
103 | # pnglibconf.h; this can be stopped by logunsupported=0 in a later | ||
104 | # file or on the command line (after pnglibconf.dfa) | ||
105 | |||
106 | logunsupported = 1 | ||
107 | |||
108 | # PNG_USER_CONFIG has to be defined on the compiler command line | ||
109 | # to cause pngusr.h to be read while constructing pnglibconf.h | ||
110 | # | ||
111 | # If you create a private DLL you need to define the following | ||
112 | # macros in the file 'pngusr.h' and set -DPNG_USER_CONFIG for | ||
113 | # compilation (i.e. in CFLAGS.) | ||
114 | # #define PNG_USER_PRIVATEBUILD \ | ||
115 | # <Describes by whom and why this version of the DLL was built> | ||
116 | # e.g. #define PNG_USER_PRIVATEBUILD "Build by MyCompany for xyz reasons." | ||
117 | # #define PNG_USER_DLLFNAME_POSTFIX <two-letter postfix that serve to | ||
118 | # distinguish your DLL from those of the official release. These | ||
119 | # correspond to the trailing letters that come after the version | ||
120 | # number and must match your private DLL name> | ||
121 | # e.g. // private DLL "libpng13gx.dll" | ||
122 | # #define PNG_USER_DLLFNAME_POSTFIX "gx" | ||
123 | # | ||
124 | # The following macros are also at your disposal if you want to complete the | ||
125 | # DLL VERSIONINFO structure. | ||
126 | # - PNG_USER_VERSIONINFO_COMMENTS | ||
127 | # - PNG_USER_VERSIONINFO_COMPANYNAME | ||
128 | # - PNG_USER_VERSIONINFO_LEGALTRADEMARKS | ||
129 | |||
130 | @#ifdef PNG_USER_CONFIG | ||
131 | @# include "pngusr.h" | ||
132 | @#endif | ||
133 | |||
134 | # This is a special fixup for the Watcom C compiler on Windows, which has | ||
135 | # multiple procedure call standards. Unless PNG_API_RULE is set explicitly | ||
136 | # (i.e. if it is not defined at this point) it will be forced to '2' here when | ||
137 | # using Watcom. This indicates to the other header files that Watcom behaviour | ||
138 | # is required where appropriate. | ||
139 | |||
140 | @#ifdef __WATCOMC__ | ||
141 | @# ifndef PNG_API_RULE | ||
142 | @# define PNG_API_RULE 2 /* Use Watcom calling conventions */ | ||
143 | @# endif | ||
144 | @#endif | ||
145 | |||
146 | # Note that PNG_USR_CONFIG only has an effect when building | ||
147 | # pnglibconf.h | ||
148 | |||
149 | setting USER_CONFIG | ||
150 | setting USER_PRIVATEBUILD | ||
151 | setting USER_DLLFNAME_POSTFIX | ||
152 | setting USER_VERSIONINFO_COMMENTS | ||
153 | setting USER_VERSIONINFO_COMPANYNAME | ||
154 | setting USER_VERSIONINFO_LEGALTRADEMARKS | ||
155 | |||
156 | # Record the 'API rule' used to select calling conventions on | ||
157 | # those systems that support such things (see all the comments in | ||
158 | # pngconf.h) | ||
159 | # Changing this setting has a fundamental affect on the PNG ABI, | ||
160 | # do not release shared libraries with this changed. | ||
161 | |||
162 | setting API_RULE default 0 | ||
163 | |||
164 | # Default to using the read macros | ||
165 | |||
166 | setting DEFAULT_READ_MACROS default 1 | ||
167 | |||
168 | # The alternative is to call functions to read PNG values, if | ||
169 | # the functions are turned *off* the read macros must always | ||
170 | # be enabled, so turning this off will actually force the | ||
171 | # USE_READ_MACROS option on (see pngconf.h) | ||
172 | |||
173 | option READ_INT_FUNCTIONS requires READ | ||
174 | |||
175 | # The same for write, but these can only be switched off if | ||
176 | # no writing is required at all - hence the use of an 'enables' | ||
177 | # not a 'requires' below: | ||
178 | |||
179 | option WRITE_INT_FUNCTIONS disabled | ||
180 | option WRITE enables WRITE_INT_FUNCTIONS | ||
181 | |||
182 | # Generic options - affect both read and write. | ||
183 | |||
184 | option WARNINGS | ||
185 | option BENIGN_ERRORS | ||
186 | option MNG_FEATURES | ||
187 | |||
188 | # Arithmetic options, the first is the big switch that chooses between internal | ||
189 | # floating and fixed point arithmetic implementations - it does not affect any | ||
190 | # APIs. The second two (the _POINT settings) switch off individual APIs. | ||
191 | |||
192 | option FLOATING_ARITHMETIC | ||
193 | option FLOATING_POINT enables ok_math | ||
194 | option FIXED_POINT enables ok_math | ||
195 | |||
196 | # Added at libpng version 1.4.0 | ||
197 | |||
198 | option ERROR_TEXT | ||
199 | |||
200 | # The following is always on (defined empty) | ||
201 | |||
202 | setting CALLOC_SUPPORTED default | ||
203 | |||
204 | # This protects us against compilers that run on a windowing system | ||
205 | # and thus don't have or would rather us not use the stdio types: | ||
206 | # stdin, stdout, and stderr. The only one currently used is stderr | ||
207 | # in png_error() and png_warning(). #defining PNG_NO_CONSOLE_IO will | ||
208 | # prevent these from being compiled and used. #defining PNG_NO_STDIO | ||
209 | # will also prevent these, plus will prevent the entire set of stdio | ||
210 | # macros and functions (FILE *, printf, etc.) from being compiled and used, | ||
211 | # unless (PNG_DEBUG > 0) has been #defined. | ||
212 | |||
213 | option STDIO | ||
214 | option CONSOLE_IO requires STDIO | ||
215 | |||
216 | # Note: prior to 1.5.0 this option could not be disabled if STDIO | ||
217 | # was enabled. Prior to 1.5.3 this option required STDIO | ||
218 | |||
219 | option TIME_RFC1123 | ||
220 | |||
221 | # PNG_SETJMP_NOT_SUPPORTED is an old equivalent for NO_SETJMP | ||
222 | |||
223 | option SETJMP | ||
224 | = NO_SETJMP SETJMP_NOT_SUPPORTED | ||
225 | |||
226 | # For the moment this is disabled (no code support): | ||
227 | |||
228 | option ERROR_NUMBERS disabled | ||
229 | |||
230 | # If this is disabled it is not possible for apps to get the | ||
231 | # values from the 'info' structure, this effectively removes | ||
232 | # quite a lot of the READ API. | ||
233 | |||
234 | option EASY_ACCESS | ||
235 | |||
236 | # Added at libpng-1.2.0 | ||
237 | |||
238 | option USER_MEM | ||
239 | |||
240 | # Added at libpng-1.4.0 | ||
241 | |||
242 | option IO_STATE | ||
243 | |||
244 | # This is only for PowerPC big-endian and 680x0 systems | ||
245 | # some testing, not enabled by default. | ||
246 | # NO LONGER USED | ||
247 | |||
248 | #option READ_BIG_ENDIAN disabled | ||
249 | |||
250 | # Allow users to control limits on what the READ code will | ||
251 | # read: | ||
252 | |||
253 | # Added at libpng-1.2.43; adds limit fields to png_struct, | ||
254 | # allows some usages of these fields | ||
255 | |||
256 | option USER_LIMITS | ||
257 | |||
258 | # Added at libpng-1.2.6; adds setting APIs, allows additional | ||
259 | # usage of this field (UTSL) | ||
260 | |||
261 | option SET_USER_LIMITS requires USER_LIMITS | ||
262 | |||
263 | # Feature added at libpng-1.4.0, this flag added at 1.4.1 | ||
264 | option SET_USER_LIMITS enables SET_CHUNK_CACHE_LIMIT | ||
265 | # Feature added at libpng-1.4.1, this flag added at 1.4.1 | ||
266 | |||
267 | option SET_USER_LIMITS enables SET_CHUNK_MALLOC_LIMIT | ||
268 | |||
269 | # Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGs no matter | ||
270 | # how large, set these two limits to 0x7fffffff | ||
271 | |||
272 | setting USER_WIDTH_MAX default 1000000 | ||
273 | setting USER_HEIGHT_MAX default 1000000 | ||
274 | |||
275 | # Added at libpng-1.2.43. To accept all valid PNGs no matter | ||
276 | # how large, set these two limits to 0. | ||
277 | |||
278 | setting USER_CHUNK_CACHE_MAX default 0 | ||
279 | |||
280 | # Added at libpng-1.2.43 | ||
281 | |||
282 | setting USER_CHUNK_MALLOC_MAX default 0 | ||
283 | |||
284 | # All of the following options relate to code capabilities for | ||
285 | # processing image data before creating a PNG or after reading one. | ||
286 | # You can remove these capabilities safely and still be PNG | ||
287 | # conformant, however the library that results is still non-standard. | ||
288 | # See the comments above about how to change options and settings. | ||
289 | |||
290 | # READ options | ||
291 | |||
292 | option READ enables READ_INTERLACING | ||
293 | |||
294 | # Disabling READ_16BIT does not disable reading 16-bit PNG files, but it | ||
295 | # forces them to be chopped down to 8-bit, and disables any 16-bit | ||
296 | # processing after that has happened. You need to be sure to enable | ||
297 | # READ_SCALE_16_TO_8 or READ_STRIP_16_TO_8 when you disable READ_16BIT for | ||
298 | # this to work properly. You should disable the other option if you need to | ||
299 | # ensure a particular conversion (otherwise the app can chose.) | ||
300 | |||
301 | option READ_16BIT requires READ enables 16BIT | ||
302 | |||
303 | option READ_QUANTIZE requires READ | ||
304 | |||
305 | option READ_TRANSFORMS requires READ | ||
306 | = NO_READ_TRANSFORMS READ_TRANSFORMS_NOT_SUPPORTED | ||
307 | |||
308 | option READ_EXPAND requires READ_TRANSFORMS | ||
309 | option READ_EXPAND_16 requires READ_TRANSFORMS READ_16BIT enables READ_EXPAND | ||
310 | option READ_SHIFT requires READ_TRANSFORMS | ||
311 | option READ_PACK requires READ_TRANSFORMS | ||
312 | option READ_BGR requires READ_TRANSFORMS | ||
313 | option READ_SWAP requires READ_TRANSFORMS READ_16BIT | ||
314 | option READ_PACKSWAP requires READ_TRANSFORMS | ||
315 | option READ_INVERT requires READ_TRANSFORMS | ||
316 | option READ_BACKGROUND requires READ_TRANSFORMS enables READ_STRIP_ALPHA | ||
317 | option READ_STRIP_16_TO_8 requires READ_TRANSFORMS | ||
318 | option READ_SCALE_16_TO_8 requires READ_TRANSFORMS | ||
319 | option READ_FILLER requires READ_TRANSFORMS | ||
320 | option READ_GAMMA requires READ_TRANSFORMS enables READ_gAMA | ||
321 | option READ_GRAY_TO_RGB requires READ_TRANSFORMS | ||
322 | |||
323 | option READ_ALPHA_MODE requires READ_TRANSFORMS enables READ_GAMMA | ||
324 | option READ_SWAP_ALPHA requires READ_TRANSFORMS | ||
325 | option READ_INVERT_ALPHA requires READ_TRANSFORMS | ||
326 | option READ_STRIP_ALPHA requires READ_TRANSFORMS | ||
327 | option READ_USER_TRANSFORM requires READ_TRANSFORMS | ||
328 | option READ_RGB_TO_GRAY requires READ_TRANSFORMS | ||
329 | |||
330 | option PROGRESSIVE_READ requires READ | ||
331 | option SEQUENTIAL_READ requires READ | ||
332 | |||
333 | # You can define PNG_NO_PROGRESSIVE_READ if you don't do progressive reading. | ||
334 | # This is not talking about interlacing capability! You'll still have | ||
335 | # interlacing unless you turn off the following which is required | ||
336 | # for PNG-compliant decoders. (In other words, do not do this - in | ||
337 | # fact it can't be disabled from the command line!) | ||
338 | #option READ_INTERLACING requires READ | ||
339 | |||
340 | option READ_COMPOSITE_NODIV requires READ | ||
341 | = NO_READ_COMPOSITE_NODIV NO_READ_COMPOSITED_NODIV | ||
342 | |||
343 | # Inch conversions | ||
344 | |||
345 | option INCH_CONVERSIONS | ||
346 | = INCH_CONVERSIONS INCH_CONVERSIONS | ||
347 | |||
348 | # API to build a grayscale palette | ||
349 | |||
350 | option BUILD_GRAYSCALE_PALETTE | ||
351 | |||
352 | # IN DEVELOPMENT | ||
353 | # These are currently experimental features; define them if you want | ||
354 | |||
355 | # NOTHING HERE | ||
356 | |||
357 | # WRITE options | ||
358 | |||
359 | option WRITE | ||
360 | |||
361 | # Disabling WRITE_16BIT prevents 16-bit PNG files from being | ||
362 | # generated. | ||
363 | option WRITE_16BIT requires WRITE enables 16BIT | ||
364 | |||
365 | option WRITE_TRANSFORMS requires WRITE | ||
366 | = NO_WRITE_TRANSFORMS WRITE_TRANSFORMS_NOT_SUPPORTED | ||
367 | |||
368 | option WRITE_SHIFT requires WRITE_TRANSFORMS | ||
369 | option WRITE_PACK requires WRITE_TRANSFORMS | ||
370 | option WRITE_BGR requires WRITE_TRANSFORMS | ||
371 | option WRITE_SWAP requires WRITE_TRANSFORMS WRITE_16BIT | ||
372 | option WRITE_PACKSWAP requires WRITE_TRANSFORMS | ||
373 | option WRITE_INVERT requires WRITE_TRANSFORMS | ||
374 | option WRITE_FILLER requires WRITE_TRANSFORMS | ||
375 | option WRITE_SWAP_ALPHA requires WRITE_TRANSFORMS | ||
376 | option WRITE_INVERT_ALPHA requires WRITE_TRANSFORMS | ||
377 | option WRITE_USER_TRANSFORM requires WRITE_TRANSFORMS | ||
378 | |||
379 | # This is not required for PNG-compliant encoders, but can cause | ||
380 | # trouble if left undefined | ||
381 | |||
382 | option WRITE_INTERLACING requires WRITE | ||
383 | |||
384 | # The following depends, internally, on WEIGHT_SHIFT and COST_SHIFT | ||
385 | # where are set below. | ||
386 | |||
387 | option WRITE_WEIGHTED_FILTER requires WRITE | ||
388 | |||
389 | option WRITE_FLUSH requires WRITE | ||
390 | |||
391 | # Note: these can be turned off explicitly if not required by the | ||
392 | # apps implementing the user transforms | ||
393 | option USER_TRANSFORM_PTR if READ_USER_TRANSFORM WRITE_USER_TRANSFORM | ||
394 | option USER_TRANSFORM_INFO if READ_USER_TRANSFORM WRITE_USER_TRANSFORM | ||
395 | |||
396 | # This enables API to set compression parameters for compressing | ||
397 | # non-IDAT chunks (zTXt, iTXt, iCCP, and unknown chunks). This feature | ||
398 | # was added at libpng-1.5.3. | ||
399 | option WRITE_CUSTOMIZE_ZTXT_COMPRESSION requires WRITE | ||
400 | |||
401 | # Any chunks you are not interested in, you can undef here. The | ||
402 | # ones that allocate memory may be expecially important (hIST, | ||
403 | # tEXt, zTXt, tRNS, pCAL). Others will just save time and make png_info | ||
404 | # a bit smaller. | ||
405 | |||
406 | # The size of the png_text structure changed in libpng-1.0.6 when | ||
407 | # iTXt support was added. iTXt support was turned off by default through | ||
408 | # libpng-1.2.x, to support old apps that malloc the png_text structure | ||
409 | # instead of calling png_set_text() and letting libpng malloc it. It | ||
410 | # was turned on by default in libpng-1.4.0. | ||
411 | |||
412 | option READ_ANCILLARY_CHUNKS requires READ | ||
413 | # PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED is deprecated. | ||
414 | = NO_READ_ANCILLARY_CHUNKS READ_ANCILLARY_CHUNKS_NOT_SUPPORTED | ||
415 | |||
416 | option WRITE_ANCILLARY_CHUNKS requires WRITE | ||
417 | # PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED is deprecated. | ||
418 | = NO_WRITE_ANCILLARY_CHUNKS WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED | ||
419 | |||
420 | # These options disable *all* the text chunks if turned off | ||
421 | |||
422 | option READ_TEXT requires READ_ANCILLARY_CHUNKS enables TEXT | ||
423 | option WRITE_TEXT requires WRITE_ANCILLARY_CHUNKS enables TEXT | ||
424 | |||
425 | # Moved to pnglibconf.h at libpng-1.5.0 | ||
426 | # Feature support: in 1.4 this was in pngconf.h, but the following | ||
427 | # features have no affect on the libpng API. Add library | ||
428 | # only features to the end of this list. Add features that | ||
429 | # affect the API above. (Note: the list of chunks follows | ||
430 | # the library-only settings.) | ||
431 | # | ||
432 | # BUILD TIME ONLY OPTIONS | ||
433 | # These options do not affect the API but rather alter how the | ||
434 | # API is implemented, they get recorded in pnglibconf.h, but | ||
435 | # can't be changed by the application. | ||
436 | |||
437 | # Check the correctness of cHRM chunks | ||
438 | |||
439 | option CHECK_cHRM requires cHRM | ||
440 | |||
441 | # | ||
442 | # Artificially align memory - the code typically aligns to 8 byte | ||
443 | # boundaries if this is switched on, it's a small waste of space | ||
444 | # but can help (in theory) on some architectures. Only affects | ||
445 | # internal structures. Added at libpng 1.4.0 | ||
446 | |||
447 | option ALIGN_MEMORY | ||
448 | |||
449 | # Buggy compilers (e.g., gcc 2.7.2.2) need PNG_NO_POINTER_INDEXING | ||
450 | # See png[wr]util.c, normally this should always be *on* | ||
451 | |||
452 | option POINTER_INDEXING | ||
453 | |||
454 | # Other defines for things like memory and the like can go here. | ||
455 | |||
456 | # BUILD TIME SETTINGS | ||
457 | # Like build time options these do not affect the API, but they | ||
458 | # may be useful to applications because they record details of | ||
459 | # how the API will behave particularly with regard to overall | ||
460 | # accuracy. | ||
461 | |||
462 | # This controls how fine the quantizing gets. As this allocates | ||
463 | # a largish chunk of memory (32K), those who are not as concerned | ||
464 | # with quantizing quality can decrease some or all of these. | ||
465 | |||
466 | setting QUANTIZE_RED_BITS default 5 | ||
467 | setting QUANTIZE_GREEN_BITS default 5 | ||
468 | setting QUANTIZE_BLUE_BITS default 5 | ||
469 | |||
470 | # This controls how fine the gamma correction becomes when you | ||
471 | # are only interested in 8 bits anyway. Increasing this value | ||
472 | # results in more memory being used, and more pow() functions | ||
473 | # being called to fill in the gamma tables. Don't set this value | ||
474 | # less then 8, and even that may not work (I haven't tested it). | ||
475 | |||
476 | setting MAX_GAMMA_8 default 11 | ||
477 | |||
478 | # This controls how much a difference in gamma we can tolerate before | ||
479 | # we actually start doing gamma conversion, it's a fixed point value, | ||
480 | # so the default below is 0.05, meaning libpng ignores corrections in | ||
481 | # the range 0.95 to 1.05 | ||
482 | |||
483 | setting GAMMA_THRESHOLD_FIXED default 5000 | ||
484 | |||
485 | # Scaling factor for filter heuristic weighting calculations | ||
486 | |||
487 | setting WEIGHT_SHIFT default 8 | ||
488 | setting COST_SHIFT default 3 | ||
489 | |||
490 | # Precision to use when converting a floating point value to a PNG | ||
491 | # extension format string in an sCAL chunk (only relevant if the | ||
492 | # floating point API is enabled) | ||
493 | |||
494 | setting sCAL_PRECISION default 5 | ||
495 | |||
496 | # This is the size of the compression buffer, and thus the size of | ||
497 | # an IDAT chunk. Make this whatever size you feel is best for your | ||
498 | # machine. One of these will be allocated per png_struct. When this | ||
499 | # is full, it writes the data to the disk, and does some other | ||
500 | # calculations. Making this an extremely small size may slow | ||
501 | # the library down, but you may want to experiment to determine | ||
502 | # where it becomes significant, if you are concerned with memory | ||
503 | # usage. Note that zlib allocates at least 32Kb also. For readers, | ||
504 | # this describes the size of the buffer available to read the data in. | ||
505 | # Unless this gets smaller than the size of a row (compressed), | ||
506 | # it should not make much difference how big this is. | ||
507 | |||
508 | setting ZBUF_SIZE default 8192 | ||
509 | |||
510 | # Ancillary chunks | ||
511 | chunk bKGD | ||
512 | chunk cHRM | ||
513 | chunk gAMA | ||
514 | chunk hIST | ||
515 | chunk iCCP | ||
516 | chunk iTXt | ||
517 | chunk oFFs | ||
518 | chunk pCAL | ||
519 | chunk sCAL | ||
520 | chunk pHYs | ||
521 | chunk sBIT | ||
522 | chunk sPLT | ||
523 | chunk sRGB | ||
524 | chunk tEXt requires TEXT | ||
525 | chunk tIME | ||
526 | chunk tRNS | ||
527 | chunk zTXt | ||
528 | |||
529 | # This only affects support of the optional PLTE chunk in RGB and RGBA | ||
530 | # images. Notice that READ_ANCILLARY_CHUNKS therefore disables part | ||
531 | # of the regular chunk reading too. | ||
532 | |||
533 | option READ_OPT_PLTE requires READ_ANCILLARY_CHUNKS | ||
534 | |||
535 | option READ_UNKNOWN_CHUNKS requires READ | ||
536 | option READ_UNKNOWN_CHUNKS enables UNKNOWN_CHUNKS READ_USER_CHUNKS | ||
537 | option READ_USER_CHUNKS requires READ enables USER_CHUNKS | ||
538 | |||
539 | option CONVERT_tIME requires WRITE_ANCILLARY_CHUNKS | ||
540 | # The "tm" structure is not supported on WindowsCE | ||
541 | |||
542 | @#ifdef _WIN32_WCE | ||
543 | @# define PNG_NO_CONVERT_tIME | ||
544 | @#endif | ||
545 | |||
546 | option WRITE_FILTER requires WRITE | ||
547 | |||
548 | option WRITE_UNKNOWN_CHUNKS requires WRITE | ||
549 | |||
550 | option HANDLE_AS_UNKNOWN | ||
551 | |||
552 | option SAVE_INT_32 requires WRITE | ||
553 | |||
554 | # png_save_int_32 is required by the ancillary chunks oFFs and pCAL | ||
555 | |||
556 | # added at libpng-1.5.4 | ||
557 | |||
558 | option WRITE_OPTIMIZE_CMF requires WRITE | ||
559 | |||
560 | option READ_COMPRESSED_TEXT disabled | ||
561 | option READ_iCCP enables READ_COMPRESSED_TEXT | ||
562 | option READ_iTXt enables READ_COMPRESSED_TEXT | ||
563 | option READ_zTXt enables READ_COMPRESSED_TEXT | ||
564 | option READ_COMPRESSED_TEXT enables READ_TEXT | ||
565 | |||
566 | option WRITE_oFFs enables SAVE_INT_32 | ||
567 | option WRITE_pCAL enables SAVE_INT_32 | ||
568 | |||
569 | option WRITE_COMPRESSED_TEXT disabled | ||
570 | option WRITE_iCCP enables WRITE_COMPRESSED_TEXT | ||
571 | option WRITE_iTXt enables WRITE_COMPRESSED_TEXT | ||
572 | option WRITE_zTXt enables WRITE_COMPRESSED_TEXT | ||
573 | option WRITE_COMPRESSED_TEXT enables WRITE_TEXT | ||
574 | |||
575 | # Turn this off to disable png_read_png() and png_write_png() and | ||
576 | # leave the row_pointers member out of the info structure. | ||
577 | |||
578 | option INFO_IMAGE | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.h.prebuilt b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.h.prebuilt new file mode 100644 index 0000000..36447ce --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.h.prebuilt | |||
@@ -0,0 +1,187 @@ | |||
1 | |||
2 | /* libpng STANDARD API DEFINITION */ | ||
3 | |||
4 | /* pnglibconf.h - library build configuration */ | ||
5 | |||
6 | /* Libpng 1.5.9 - February 18, 2012 */ | ||
7 | |||
8 | /* Copyright (c) 1998-2011 Glenn Randers-Pehrson */ | ||
9 | |||
10 | /* This code is released under the libpng license. */ | ||
11 | /* For conditions of distribution and use, see the disclaimer */ | ||
12 | /* and license in png.h */ | ||
13 | |||
14 | /* pnglibconf.h */ | ||
15 | /* Derived from: scripts/pnglibconf.dfa */ | ||
16 | /* If you edit this file by hand you must obey the rules expressed in */ | ||
17 | /* pnglibconf.dfa with respect to the dependencies between the following */ | ||
18 | /* symbols. It is much better to generate a new file using */ | ||
19 | /* scripts/libpngconf.mak */ | ||
20 | |||
21 | #ifndef PNGLCONF_H | ||
22 | #define PNGLCONF_H | ||
23 | /* settings */ | ||
24 | #define PNG_API_RULE 0 | ||
25 | #define PNG_CALLOC_SUPPORTED | ||
26 | #define PNG_COST_SHIFT 3 | ||
27 | #define PNG_DEFAULT_READ_MACROS 1 | ||
28 | #define PNG_GAMMA_THRESHOLD_FIXED 5000 | ||
29 | #define PNG_MAX_GAMMA_8 11 | ||
30 | #define PNG_QUANTIZE_BLUE_BITS 5 | ||
31 | #define PNG_QUANTIZE_GREEN_BITS 5 | ||
32 | #define PNG_QUANTIZE_RED_BITS 5 | ||
33 | #define PNG_sCAL_PRECISION 5 | ||
34 | #define PNG_USER_CHUNK_CACHE_MAX 0 | ||
35 | #define PNG_USER_CHUNK_MALLOC_MAX 0 | ||
36 | #define PNG_USER_HEIGHT_MAX 1000000 | ||
37 | #define PNG_USER_WIDTH_MAX 1000000 | ||
38 | #define PNG_WEIGHT_SHIFT 8 | ||
39 | #define PNG_ZBUF_SIZE 8192 | ||
40 | /* end of settings */ | ||
41 | /* options */ | ||
42 | #define PNG_16BIT_SUPPORTED | ||
43 | #define PNG_ALIGN_MEMORY_SUPPORTED | ||
44 | #define PNG_BENIGN_ERRORS_SUPPORTED | ||
45 | #define PNG_bKGD_SUPPORTED | ||
46 | #define PNG_BUILD_GRAYSCALE_PALETTE_SUPPORTED | ||
47 | #define PNG_CHECK_cHRM_SUPPORTED | ||
48 | #define PNG_cHRM_SUPPORTED | ||
49 | #define PNG_CONSOLE_IO_SUPPORTED | ||
50 | #define PNG_CONVERT_tIME_SUPPORTED | ||
51 | #define PNG_EASY_ACCESS_SUPPORTED | ||
52 | /*#undef PNG_ERROR_NUMBERS_SUPPORTED*/ | ||
53 | #define PNG_ERROR_TEXT_SUPPORTED | ||
54 | #define PNG_FIXED_POINT_SUPPORTED | ||
55 | #define PNG_FLOATING_ARITHMETIC_SUPPORTED | ||
56 | #define PNG_FLOATING_POINT_SUPPORTED | ||
57 | #define PNG_gAMA_SUPPORTED | ||
58 | #define PNG_HANDLE_AS_UNKNOWN_SUPPORTED | ||
59 | #define PNG_hIST_SUPPORTED | ||
60 | #define PNG_iCCP_SUPPORTED | ||
61 | #define PNG_INCH_CONVERSIONS_SUPPORTED | ||
62 | #define PNG_INFO_IMAGE_SUPPORTED | ||
63 | #define PNG_IO_STATE_SUPPORTED | ||
64 | #define PNG_iTXt_SUPPORTED | ||
65 | #define PNG_MNG_FEATURES_SUPPORTED | ||
66 | #define PNG_oFFs_SUPPORTED | ||
67 | #define PNG_pCAL_SUPPORTED | ||
68 | #define PNG_pHYs_SUPPORTED | ||
69 | #define PNG_POINTER_INDEXING_SUPPORTED | ||
70 | #define PNG_PROGRESSIVE_READ_SUPPORTED | ||
71 | #define PNG_READ_16BIT_SUPPORTED | ||
72 | #define PNG_READ_ALPHA_MODE_SUPPORTED | ||
73 | #define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED | ||
74 | #define PNG_READ_BACKGROUND_SUPPORTED | ||
75 | #define PNG_READ_BGR_SUPPORTED | ||
76 | #define PNG_READ_bKGD_SUPPORTED | ||
77 | #define PNG_READ_cHRM_SUPPORTED | ||
78 | #define PNG_READ_COMPOSITE_NODIV_SUPPORTED | ||
79 | #define PNG_READ_COMPRESSED_TEXT_SUPPORTED | ||
80 | #define PNG_READ_EXPAND_16_SUPPORTED | ||
81 | #define PNG_READ_EXPAND_SUPPORTED | ||
82 | #define PNG_READ_FILLER_SUPPORTED | ||
83 | #define PNG_READ_gAMA_SUPPORTED | ||
84 | #define PNG_READ_GAMMA_SUPPORTED | ||
85 | #define PNG_READ_GRAY_TO_RGB_SUPPORTED | ||
86 | #define PNG_READ_hIST_SUPPORTED | ||
87 | #define PNG_READ_iCCP_SUPPORTED | ||
88 | #define PNG_READ_INTERLACING_SUPPORTED | ||
89 | #define PNG_READ_INT_FUNCTIONS_SUPPORTED | ||
90 | #define PNG_READ_INVERT_ALPHA_SUPPORTED | ||
91 | #define PNG_READ_INVERT_SUPPORTED | ||
92 | #define PNG_READ_iTXt_SUPPORTED | ||
93 | #define PNG_READ_oFFs_SUPPORTED | ||
94 | #define PNG_READ_OPT_PLTE_SUPPORTED | ||
95 | #define PNG_READ_PACK_SUPPORTED | ||
96 | #define PNG_READ_PACKSWAP_SUPPORTED | ||
97 | #define PNG_READ_pCAL_SUPPORTED | ||
98 | #define PNG_READ_pHYs_SUPPORTED | ||
99 | #define PNG_READ_QUANTIZE_SUPPORTED | ||
100 | #define PNG_READ_RGB_TO_GRAY_SUPPORTED | ||
101 | #define PNG_READ_sBIT_SUPPORTED | ||
102 | #define PNG_READ_SCALE_16_TO_8_SUPPORTED | ||
103 | #define PNG_READ_sCAL_SUPPORTED | ||
104 | #define PNG_READ_SHIFT_SUPPORTED | ||
105 | #define PNG_READ_sPLT_SUPPORTED | ||
106 | #define PNG_READ_sRGB_SUPPORTED | ||
107 | #define PNG_READ_STRIP_16_TO_8_SUPPORTED | ||
108 | #define PNG_READ_STRIP_ALPHA_SUPPORTED | ||
109 | #define PNG_READ_SUPPORTED | ||
110 | #define PNG_READ_SWAP_ALPHA_SUPPORTED | ||
111 | #define PNG_READ_SWAP_SUPPORTED | ||
112 | #define PNG_READ_tEXt_SUPPORTED | ||
113 | #define PNG_READ_TEXT_SUPPORTED | ||
114 | #define PNG_READ_tIME_SUPPORTED | ||
115 | #define PNG_READ_TRANSFORMS_SUPPORTED | ||
116 | #define PNG_READ_tRNS_SUPPORTED | ||
117 | #define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED | ||
118 | #define PNG_READ_USER_CHUNKS_SUPPORTED | ||
119 | #define PNG_READ_USER_TRANSFORM_SUPPORTED | ||
120 | #define PNG_READ_zTXt_SUPPORTED | ||
121 | #define PNG_SAVE_INT_32_SUPPORTED | ||
122 | #define PNG_sBIT_SUPPORTED | ||
123 | #define PNG_sCAL_SUPPORTED | ||
124 | #define PNG_SEQUENTIAL_READ_SUPPORTED | ||
125 | #define PNG_SET_CHUNK_CACHE_LIMIT_SUPPORTED | ||
126 | #define PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED | ||
127 | #define PNG_SETJMP_SUPPORTED | ||
128 | #define PNG_SET_USER_LIMITS_SUPPORTED | ||
129 | #define PNG_sPLT_SUPPORTED | ||
130 | #define PNG_sRGB_SUPPORTED | ||
131 | #define PNG_STDIO_SUPPORTED | ||
132 | #define PNG_tEXt_SUPPORTED | ||
133 | #define PNG_TEXT_SUPPORTED | ||
134 | #define PNG_TIME_RFC1123_SUPPORTED | ||
135 | #define PNG_tIME_SUPPORTED | ||
136 | #define PNG_tRNS_SUPPORTED | ||
137 | #define PNG_UNKNOWN_CHUNKS_SUPPORTED | ||
138 | #define PNG_USER_CHUNKS_SUPPORTED | ||
139 | #define PNG_USER_LIMITS_SUPPORTED | ||
140 | #define PNG_USER_MEM_SUPPORTED | ||
141 | #define PNG_USER_TRANSFORM_INFO_SUPPORTED | ||
142 | #define PNG_USER_TRANSFORM_PTR_SUPPORTED | ||
143 | #define PNG_WARNINGS_SUPPORTED | ||
144 | #define PNG_WRITE_16BIT_SUPPORTED | ||
145 | #define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED | ||
146 | #define PNG_WRITE_BGR_SUPPORTED | ||
147 | #define PNG_WRITE_bKGD_SUPPORTED | ||
148 | #define PNG_WRITE_cHRM_SUPPORTED | ||
149 | #define PNG_WRITE_COMPRESSED_TEXT_SUPPORTED | ||
150 | #define PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED | ||
151 | #define PNG_WRITE_FILLER_SUPPORTED | ||
152 | #define PNG_WRITE_FILTER_SUPPORTED | ||
153 | #define PNG_WRITE_FLUSH_SUPPORTED | ||
154 | #define PNG_WRITE_gAMA_SUPPORTED | ||
155 | #define PNG_WRITE_hIST_SUPPORTED | ||
156 | #define PNG_WRITE_iCCP_SUPPORTED | ||
157 | #define PNG_WRITE_INTERLACING_SUPPORTED | ||
158 | #define PNG_WRITE_INT_FUNCTIONS_SUPPORTED | ||
159 | #define PNG_WRITE_INVERT_ALPHA_SUPPORTED | ||
160 | #define PNG_WRITE_INVERT_SUPPORTED | ||
161 | #define PNG_WRITE_iTXt_SUPPORTED | ||
162 | #define PNG_WRITE_oFFs_SUPPORTED | ||
163 | #define PNG_WRITE_OPTIMIZE_CMF_SUPPORTED | ||
164 | #define PNG_WRITE_PACK_SUPPORTED | ||
165 | #define PNG_WRITE_PACKSWAP_SUPPORTED | ||
166 | #define PNG_WRITE_pCAL_SUPPORTED | ||
167 | #define PNG_WRITE_pHYs_SUPPORTED | ||
168 | #define PNG_WRITE_sBIT_SUPPORTED | ||
169 | #define PNG_WRITE_sCAL_SUPPORTED | ||
170 | #define PNG_WRITE_SHIFT_SUPPORTED | ||
171 | #define PNG_WRITE_sPLT_SUPPORTED | ||
172 | #define PNG_WRITE_sRGB_SUPPORTED | ||
173 | #define PNG_WRITE_SUPPORTED | ||
174 | #define PNG_WRITE_SWAP_ALPHA_SUPPORTED | ||
175 | #define PNG_WRITE_SWAP_SUPPORTED | ||
176 | #define PNG_WRITE_tEXt_SUPPORTED | ||
177 | #define PNG_WRITE_TEXT_SUPPORTED | ||
178 | #define PNG_WRITE_tIME_SUPPORTED | ||
179 | #define PNG_WRITE_TRANSFORMS_SUPPORTED | ||
180 | #define PNG_WRITE_tRNS_SUPPORTED | ||
181 | #define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED | ||
182 | #define PNG_WRITE_USER_TRANSFORM_SUPPORTED | ||
183 | #define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED | ||
184 | #define PNG_WRITE_zTXt_SUPPORTED | ||
185 | #define PNG_zTXt_SUPPORTED | ||
186 | /* end of options */ | ||
187 | #endif /* PNGLCONF_H */ | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak new file mode 100644 index 0000000..1dbb232 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak | |||
@@ -0,0 +1,58 @@ | |||
1 | #!/usr/bin/make -f | ||
2 | # pnglibconf.mak - standard make lines for pnglibconf.h | ||
3 | # | ||
4 | # These lines are copied from Makefile.am, they illustrate | ||
5 | # how to automate the build of pnglibconf.h from scripts/pnglibconf.dfa | ||
6 | # given 'awk' and 'sed' | ||
7 | |||
8 | # Override as appropriate, these definitions can be overridden on | ||
9 | # the make command line (AWK='nawk' for example). | ||
10 | AWK = gawk | ||
11 | AWK = mawk | ||
12 | AWK = nawk | ||
13 | AWK = one-true-awk | ||
14 | AWK = awk # Crashes on SunOS 5.10 - use 'nawk' | ||
15 | CPP = $(CC) -E # Does not work on SUN OS 5.10 - use /lib/cpp | ||
16 | SED = sed | ||
17 | |||
18 | COPY = cp | ||
19 | DELETE = rm -f | ||
20 | ECHO = echo | ||
21 | DFA_XTRA = # Appended to scripts/options.awk | ||
22 | |||
23 | # CPPFLAGS should contain the options to control the result, | ||
24 | # but DEFS and CFLAGS are also supported here, override | ||
25 | # as appropriate | ||
26 | DFNFLAGS = $(DEFS) $(CPPFLAGS) $(CFLAGS) | ||
27 | |||
28 | # srcdir is a defacto standard for the location of the source | ||
29 | srcdir = . | ||
30 | |||
31 | # The standard pnglibconf.h exists as scripts/pnglibconf.h.prebuilt, | ||
32 | # copy this if the following doesn't work. | ||
33 | pnglibconf.h: pnglibconf.dfn | ||
34 | $(DELETE) $@ dfn.c dfn1.out dfn2.out dfn3.out | ||
35 | $(ECHO) '#include "pnglibconf.dfn"' >dfn.c | ||
36 | $(CPP) $(DFNFLAGS) dfn.c >dfn1.out | ||
37 | $(ECHO) "If 'cpp -e' crashes try /lib/cpp (e.g. CPP='/lib/cpp')" >&2 | ||
38 | $(SED) -n -e 's|^.*PNG_DEFN_MAGIC *-\(.*\)- *PNG_DEFN_END.*$$|\1|p'\ | ||
39 | dfn1.out >dfn2.out | ||
40 | $(SED) -e 's| *PNG_JOIN *||g' -e 's| *$$||' dfn2.out >dfn3.out | ||
41 | $(COPY) dfn3.out $@ | ||
42 | $(DELETE) dfn.c dfn1.out dfn2.out dfn3.out | ||
43 | |||
44 | pnglibconf.dfn: $(srcdir)/scripts/pnglibconf.dfa $(srcdir)/scripts/options.awk $(srcdir)/pngconf.h | ||
45 | $(DELETE) $@ dfn1.out dfn2.out | ||
46 | $(ECHO) "Calling $(AWK) from scripts/pnglibconf.mak" >&2 | ||
47 | $(ECHO) "If 'awk' crashes try a better awk (e.g. AWK='nawk')" >&2 | ||
48 | $(AWK) -f $(srcdir)/scripts/options.awk out=dfn1.out version=search\ | ||
49 | $(srcdir)/pngconf.h $(srcdir)/scripts/pnglibconf.dfa\ | ||
50 | $(DFA_XTRA) 1>&2 | ||
51 | $(AWK) -f $(srcdir)/scripts/options.awk out=dfn2.out dfn1.out 1>&2 | ||
52 | $(COPY) dfn2.out $@ | ||
53 | $(DELETE) dfn1.out dfn2.out | ||
54 | |||
55 | clean-pnglibconf: | ||
56 | $(DELETE) pnglibconf.h pnglibconf.dfn dfn.c dfn1.out dfn2.out dfn3.out | ||
57 | |||
58 | clean: clean-pnglibconf | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pngwin.rc b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pngwin.rc new file mode 100644 index 0000000..ccca0d3 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pngwin.rc | |||
@@ -0,0 +1,112 @@ | |||
1 | #define PNG_VERSION_INFO_ONLY | ||
2 | |||
3 | #include <windows.h> | ||
4 | #include "../png.h" | ||
5 | |||
6 | #define _QUOTE(x) # x | ||
7 | #define QUOTE(x) _QUOTE(x) | ||
8 | |||
9 | #define PNG_LIBPNG_DLLFNAME "LIBPNG" | ||
10 | |||
11 | /* Support deprecated PRIVATEBUILD macro */ | ||
12 | #if defined(PRIVATEBUILD) && !defined(PNG_USER_PRIVATEBUILD) | ||
13 | # define PNG_USER_PRIVATEBUILD PRIVATEBUILD | ||
14 | #endif | ||
15 | |||
16 | #if defined(PNG_USER_DLLFNAME_POSTFIX) && !defined(PNG_USER_PRIVATEBUILD) | ||
17 | # error "PNG_USER_PRIVATEBUILD must be defined as a string describing the\ | ||
18 | custom changes made to the library." | ||
19 | #endif | ||
20 | |||
21 | /* Prioritize PNG_USER_x over PNG_LIBPNG_x */ | ||
22 | #ifdef PNG_USER_DLLFNAME_POSTFIX | ||
23 | # undef PNG_LIBPNG_DLLFNAME_POSTFIX | ||
24 | # define PNG_LIBPNG_DLLFNAME_POSTFIX PNG_USER_DLLFNAME_POSTFIX | ||
25 | #endif | ||
26 | |||
27 | #ifdef PNG_USER_VERSIONINFO_COMMENTS | ||
28 | # undef PNG_LIBPNG_VERSIONINFO_COMMENTS | ||
29 | # define PNG_LIBPNG_VERSIONINFO_COMMENTS PNG_USER_VERSIONINFO_COMMENTS | ||
30 | #endif | ||
31 | |||
32 | #if defined(PNG_DEBUG) && (PNG_DEBUG > 0) | ||
33 | # define VS_DEBUG VS_FF_DEBUG | ||
34 | # ifndef PNG_LIBPNG_DLLFNAME_POSTFIX | ||
35 | # define PNG_LIBPNG_DLLFNAME_POSTFIX "D" | ||
36 | # endif /* PNG_LIBPNG_DLLFNAME_POSTFIX */ | ||
37 | # ifndef PNG_LIBPNG_VERSIONINFO_COMMENTS | ||
38 | # define PNG_LIBPNG_VERSIONINFO_COMMENTS "PNG_DEBUG=" QUOTE(PNG_DEBUG) | ||
39 | # endif /* PNG_LIBPNG_VERSIONINFO_COMMENTS */ | ||
40 | #else | ||
41 | # define VS_DEBUG 0 | ||
42 | # ifndef PNG_LIBPNG_DLLFNAME_POSTFIX | ||
43 | # define PNG_LIBPNG_DLLFNAME_POSTFIX | ||
44 | # endif /* PNG_LIBPNG_DLLFNAME_POSTFIX */ | ||
45 | #endif /* defined(DEBUG)... */ | ||
46 | |||
47 | #ifdef PNG_USER_PRIVATEBUILD | ||
48 | # define VS_PRIVATEBUILD VS_FF_PRIVATEBUILD | ||
49 | #else | ||
50 | # define VS_PRIVATEBUILD 0 | ||
51 | #endif /* PNG_USER_PRIVATEBUILD */ | ||
52 | |||
53 | #ifdef PNG_LIBPNG_SPECIALBUILD | ||
54 | # define VS_SPECIALBUILD VS_FF_SPECIALBUILD | ||
55 | #else | ||
56 | # define VS_SPECIALBUILD 0 | ||
57 | #endif /* PNG_LIBPNG_BUILD_SPECIAL */ | ||
58 | |||
59 | #if ((PNG_LIBPNG_BUILD_BASE_TYPE & PNG_LIBPNG_RELEASE_STATUS_MASK) !=\ | ||
60 | PNG_LIBPNG_BUILD_STABLE) | ||
61 | # define VS_PRERELEASE VS_FF_PRERELEASE | ||
62 | # define VS_PATCHED 0 | ||
63 | #else | ||
64 | # define VS_PRERELEASE 0 | ||
65 | # if (PNG_LIBPNG_BUILD_BASE_TYPE & PNG_LIBPNG_BUILD_PATCHED) | ||
66 | # define VS_PATCHED VS_FF_PATCHED | ||
67 | # else | ||
68 | # define VS_PATCHED 0 | ||
69 | # endif | ||
70 | #endif | ||
71 | |||
72 | VS_VERSION_INFO VERSIONINFO | ||
73 | FILEVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD | ||
74 | PRODUCTVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD | ||
75 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | ||
76 | FILEFLAGS VS_DEBUG | VS_PRIVATEBUILD | VS_SPECIALBUILD | VS_PRERELEASE | VS_PATCHED | ||
77 | FILEOS VOS__WINDOWS32 | ||
78 | FILETYPE VFT_DLL | ||
79 | FILESUBTYPE VFT2_UNKNOWN | ||
80 | BEGIN | ||
81 | BLOCK "StringFileInfo" | ||
82 | BEGIN BLOCK "040904E4" /* Language type = U.S English(0x0409) and Character Set = Windows, Multilingual(0x04E4) */ | ||
83 | BEGIN | ||
84 | #ifdef PNG_LIBPNG_VERSIONINFO_COMMENTS | ||
85 | VALUE "Comments", PNG_LIBPNG_VERSIONINFO_COMMENTS "\000" | ||
86 | #endif /* PNG_LIBPNG_VERSIONINFO_COMMENTS */ | ||
87 | #ifdef PNG_USER_VERSIONINFO_COMPANYNAME | ||
88 | VALUE "CompanyName", PNG_USER_VERSIONINFO_COMPANYNAME "\000" | ||
89 | #endif /* PNG_USER_VERSIONINFO_COMPANYNAME */ | ||
90 | VALUE "FileDescription", "PNG image compression library\000" | ||
91 | VALUE "FileVersion", PNG_LIBPNG_VER_STRING "\000" | ||
92 | VALUE "InternalName", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_DLLNUM) PNG_LIBPNG_DLLFNAME_POSTFIX " (Windows 32 bit)\000" | ||
93 | VALUE "LegalCopyright", "\251 1998-2009 Glenn Randers-Pehrson et al.\000" | ||
94 | #ifdef PNG_USER_VERSIONINFO_LEGALTRADEMARKS | ||
95 | VALUE "LegalTrademarks", PNG_USER_VERSIONINFO_LEGALTRADEMARKS "\000" | ||
96 | #endif /* PNG_USER_VERSIONINFO_LEGALTRADEMARKS */ | ||
97 | VALUE "OriginalFilename", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_DLLNUM) PNG_LIBPNG_DLLFNAME_POSTFIX ".DLL\000" | ||
98 | #ifdef PNG_USER_PRIVATEBUILD | ||
99 | VALUE "PrivateBuild", PNG_USER_PRIVATEBUILD "\000" | ||
100 | #endif /* PNG_USER_PRIVATEBUILD */ | ||
101 | VALUE "ProductName", "LibPNG\000" | ||
102 | VALUE "ProductVersion", "1\000" | ||
103 | #ifdef PNG_LIBPNG_SPECIALBUILD | ||
104 | VALUE "SpecialBuild", PNG_LIBPNG_SPECIALBUILD "\000" | ||
105 | #endif /* PNG_LIBPNG_SPECIALBUILD */ | ||
106 | END | ||
107 | END | ||
108 | BLOCK "VarFileInfo" | ||
109 | BEGIN | ||
110 | VALUE "Translation", 0x0409, 0x04E4 | ||
111 | END | ||
112 | END | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/smakefile.ppc b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/smakefile.ppc new file mode 100644 index 0000000..a85c7cf --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/smakefile.ppc | |||
@@ -0,0 +1,34 @@ | |||
1 | # Amiga powerUP (TM) Makefile | ||
2 | # makefile for libpng and SAS C V6.58/7.00 PPC compiler | ||
3 | # Copyright (C) 1998 by Andreas R. Kleinert | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | |||
9 | CC = scppc | ||
10 | CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \ | ||
11 | OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8 | ||
12 | LIBNAME = libpng.a | ||
13 | AR = ppc-amigaos-ar | ||
14 | AR_FLAGS = cr | ||
15 | RANLIB = ppc-amigaos-ranlib | ||
16 | LDFLAGS = -r -o | ||
17 | LDLIBS = ../zlib/libzip.a LIB:scppc.a | ||
18 | LN = ppc-amigaos-ld | ||
19 | RM = delete quiet | ||
20 | MKDIR = makedir | ||
21 | |||
22 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o \ | ||
23 | pngerror.o pngpread.o pngwrite.o pngrtran.o pngwtran.o pngrio.o \ | ||
24 | pngwio.o pngmem.o | ||
25 | |||
26 | all: $(LIBNAME) pngtest | ||
27 | |||
28 | $(LIBNAME): $(OBJS) | ||
29 | $(AR) $(AR_FLAGS) $@ $(OBJS) | ||
30 | $(RANLIB) $@ | ||
31 | |||
32 | pngtest: pngtest.o $(LIBNAME) | ||
33 | $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \ | ||
34 | LIB:end.o | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/sym.dfn b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/sym.dfn new file mode 100644 index 0000000..83b70d8 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/sym.dfn | |||
@@ -0,0 +1,15 @@ | |||
1 | |||
2 | /* sym.dfn - define format of libpng.sym | ||
3 | * | ||
4 | * Last changed in libpng version 1.5.0 [January 6, 2011] | ||
5 | * Copyright (c) 1998-2011 Glenn Randers-Pehrson | ||
6 | * | ||
7 | * This code is released under the libpng license. | ||
8 | * For conditions of distribution and use, see the disclaimer | ||
9 | * and license in png.h | ||
10 | */ | ||
11 | |||
12 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ | ||
13 | PNG_DEFN_MAGIC-SYMBOL_PREFIX PNG_JOIN name-PNG_DEFN_END | ||
14 | |||
15 | #include "../png.h" | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/symbols.def b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/symbols.def new file mode 100644 index 0000000..c102a3f --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/symbols.def | |||
@@ -0,0 +1,241 @@ | |||
1 | ;-------------------------------------------------------------- | ||
2 | ; LIBPNG symbol list as a Win32 DEF file | ||
3 | ; Contains all the symbols that can be exported from libpng | ||
4 | ;-------------------------------------------------------------- | ||
5 | LIBRARY | ||
6 | |||
7 | EXPORTS | ||
8 | ;Version 1.5.9 | ||
9 | png_access_version_number @1 | ||
10 | png_set_sig_bytes @2 | ||
11 | png_sig_cmp @3 | ||
12 | png_create_read_struct @4 | ||
13 | png_create_write_struct @5 | ||
14 | png_get_compression_buffer_size @6 | ||
15 | png_set_compression_buffer_size @7 | ||
16 | png_set_longjmp_fn @8 | ||
17 | png_longjmp @9 | ||
18 | png_reset_zstream @10 | ||
19 | png_create_read_struct_2 @11 | ||
20 | png_create_write_struct_2 @12 | ||
21 | png_write_sig @13 | ||
22 | png_write_chunk @14 | ||
23 | png_write_chunk_start @15 | ||
24 | png_write_chunk_data @16 | ||
25 | png_write_chunk_end @17 | ||
26 | png_create_info_struct @18 | ||
27 | png_info_init_3 @19 | ||
28 | png_write_info_before_PLTE @20 | ||
29 | png_write_info @21 | ||
30 | png_read_info @22 | ||
31 | png_convert_to_rfc1123 @23 | ||
32 | png_convert_from_struct_tm @24 | ||
33 | png_convert_from_time_t @25 | ||
34 | png_set_expand @26 | ||
35 | png_set_expand_gray_1_2_4_to_8 @27 | ||
36 | png_set_palette_to_rgb @28 | ||
37 | png_set_tRNS_to_alpha @29 | ||
38 | png_set_bgr @30 | ||
39 | png_set_gray_to_rgb @31 | ||
40 | png_set_rgb_to_gray @32 | ||
41 | png_set_rgb_to_gray_fixed @33 | ||
42 | png_get_rgb_to_gray_status @34 | ||
43 | png_build_grayscale_palette @35 | ||
44 | png_set_strip_alpha @36 | ||
45 | png_set_swap_alpha @37 | ||
46 | png_set_invert_alpha @38 | ||
47 | png_set_filler @39 | ||
48 | png_set_add_alpha @40 | ||
49 | png_set_swap @41 | ||
50 | png_set_packing @42 | ||
51 | png_set_packswap @43 | ||
52 | png_set_shift @44 | ||
53 | png_set_interlace_handling @45 | ||
54 | png_set_invert_mono @46 | ||
55 | png_set_background @47 | ||
56 | png_set_strip_16 @48 | ||
57 | png_set_quantize @49 | ||
58 | png_set_gamma @50 | ||
59 | png_set_flush @51 | ||
60 | png_write_flush @52 | ||
61 | png_start_read_image @53 | ||
62 | png_read_update_info @54 | ||
63 | png_read_rows @55 | ||
64 | png_read_row @56 | ||
65 | png_read_image @57 | ||
66 | png_write_row @58 | ||
67 | png_write_rows @59 | ||
68 | png_write_image @60 | ||
69 | png_write_end @61 | ||
70 | png_read_end @62 | ||
71 | png_destroy_info_struct @63 | ||
72 | png_destroy_read_struct @64 | ||
73 | png_destroy_write_struct @65 | ||
74 | png_set_crc_action @66 | ||
75 | png_set_filter @67 | ||
76 | png_set_filter_heuristics @68 | ||
77 | png_set_compression_level @69 | ||
78 | png_set_compression_mem_level @70 | ||
79 | png_set_compression_strategy @71 | ||
80 | png_set_compression_window_bits @72 | ||
81 | png_set_compression_method @73 | ||
82 | png_init_io @74 | ||
83 | png_set_error_fn @75 | ||
84 | png_get_error_ptr @76 | ||
85 | png_set_write_fn @77 | ||
86 | png_set_read_fn @78 | ||
87 | png_get_io_ptr @79 | ||
88 | png_set_read_status_fn @80 | ||
89 | png_set_write_status_fn @81 | ||
90 | png_set_mem_fn @82 | ||
91 | png_get_mem_ptr @83 | ||
92 | png_set_read_user_transform_fn @84 | ||
93 | png_set_write_user_transform_fn @85 | ||
94 | png_set_user_transform_info @86 | ||
95 | png_get_user_transform_ptr @87 | ||
96 | png_set_read_user_chunk_fn @88 | ||
97 | png_get_user_chunk_ptr @89 | ||
98 | png_set_progressive_read_fn @90 | ||
99 | png_get_progressive_ptr @91 | ||
100 | png_process_data @92 | ||
101 | png_progressive_combine_row @93 | ||
102 | png_malloc @94 | ||
103 | png_calloc @95 | ||
104 | png_malloc_warn @96 | ||
105 | png_free @97 | ||
106 | png_free_data @98 | ||
107 | png_data_freer @99 | ||
108 | png_malloc_default @100 | ||
109 | png_free_default @101 | ||
110 | png_error @102 | ||
111 | png_chunk_error @103 | ||
112 | png_err @104 | ||
113 | png_warning @105 | ||
114 | png_chunk_warning @106 | ||
115 | png_benign_error @107 | ||
116 | png_chunk_benign_error @108 | ||
117 | png_set_benign_errors @109 | ||
118 | png_get_valid @110 | ||
119 | png_get_rowbytes @111 | ||
120 | png_get_rows @112 | ||
121 | png_set_rows @113 | ||
122 | png_get_channels @114 | ||
123 | png_get_image_width @115 | ||
124 | png_get_image_height @116 | ||
125 | png_get_bit_depth @117 | ||
126 | png_get_color_type @118 | ||
127 | png_get_filter_type @119 | ||
128 | png_get_interlace_type @120 | ||
129 | png_get_compression_type @121 | ||
130 | png_get_pixels_per_meter @122 | ||
131 | png_get_x_pixels_per_meter @123 | ||
132 | png_get_y_pixels_per_meter @124 | ||
133 | png_get_pixel_aspect_ratio @125 | ||
134 | png_get_x_offset_pixels @126 | ||
135 | png_get_y_offset_pixels @127 | ||
136 | png_get_x_offset_microns @128 | ||
137 | png_get_y_offset_microns @129 | ||
138 | png_get_signature @130 | ||
139 | png_get_bKGD @131 | ||
140 | png_set_bKGD @132 | ||
141 | png_get_cHRM @133 | ||
142 | png_get_cHRM_fixed @134 | ||
143 | png_set_cHRM @135 | ||
144 | png_set_cHRM_fixed @136 | ||
145 | png_get_gAMA @137 | ||
146 | png_get_gAMA_fixed @138 | ||
147 | png_set_gAMA @139 | ||
148 | png_set_gAMA_fixed @140 | ||
149 | png_get_hIST @141 | ||
150 | png_set_hIST @142 | ||
151 | png_get_IHDR @143 | ||
152 | png_set_IHDR @144 | ||
153 | png_get_oFFs @145 | ||
154 | png_set_oFFs @146 | ||
155 | png_get_pCAL @147 | ||
156 | png_set_pCAL @148 | ||
157 | png_get_pHYs @149 | ||
158 | png_set_pHYs @150 | ||
159 | png_get_PLTE @151 | ||
160 | png_set_PLTE @152 | ||
161 | png_get_sBIT @153 | ||
162 | png_set_sBIT @154 | ||
163 | png_get_sRGB @155 | ||
164 | png_set_sRGB @156 | ||
165 | png_set_sRGB_gAMA_and_cHRM @157 | ||
166 | png_get_iCCP @158 | ||
167 | png_set_iCCP @159 | ||
168 | png_get_sPLT @160 | ||
169 | png_set_sPLT @161 | ||
170 | png_get_text @162 | ||
171 | png_set_text @163 | ||
172 | png_get_tIME @164 | ||
173 | png_set_tIME @165 | ||
174 | png_get_tRNS @166 | ||
175 | png_set_tRNS @167 | ||
176 | png_get_sCAL @168 | ||
177 | png_get_sCAL_s @169 | ||
178 | png_set_sCAL @170 | ||
179 | png_set_sCAL_s @171 | ||
180 | png_set_keep_unknown_chunks @172 | ||
181 | png_handle_as_unknown @173 | ||
182 | png_set_unknown_chunks @174 | ||
183 | png_set_unknown_chunk_location @175 | ||
184 | png_get_unknown_chunks @176 | ||
185 | png_set_invalid @177 | ||
186 | png_read_png @178 | ||
187 | png_write_png @179 | ||
188 | png_get_copyright @180 | ||
189 | png_get_header_ver @181 | ||
190 | png_get_header_version @182 | ||
191 | png_get_libpng_ver @183 | ||
192 | png_permit_mng_features @184 | ||
193 | png_set_strip_error_numbers @185 | ||
194 | png_set_user_limits @186 | ||
195 | png_get_user_width_max @187 | ||
196 | png_get_user_height_max @188 | ||
197 | png_set_chunk_cache_max @189 | ||
198 | png_get_chunk_cache_max @190 | ||
199 | png_set_chunk_malloc_max @191 | ||
200 | png_get_chunk_malloc_max @192 | ||
201 | png_get_pixels_per_inch @193 | ||
202 | png_get_x_pixels_per_inch @194 | ||
203 | png_get_y_pixels_per_inch @195 | ||
204 | png_get_x_offset_inches @196 | ||
205 | png_get_y_offset_inches @197 | ||
206 | png_get_pHYs_dpi @198 | ||
207 | png_get_io_state @199 | ||
208 | png_get_io_chunk_name @200 | ||
209 | png_get_uint_32 @201 | ||
210 | png_get_uint_16 @202 | ||
211 | png_get_int_32 @203 | ||
212 | png_get_uint_31 @204 | ||
213 | png_save_uint_32 @205 | ||
214 | png_save_int_32 @206 | ||
215 | png_save_uint_16 @207 | ||
216 | png_set_gamma_fixed @208 | ||
217 | png_set_filter_heuristics_fixed @209 | ||
218 | png_get_pixel_aspect_ratio_fixed @210 | ||
219 | png_get_x_offset_inches_fixed @211 | ||
220 | png_get_y_offset_inches_fixed @212 | ||
221 | png_set_sCAL_fixed @213 | ||
222 | png_get_sCAL_fixed @214 | ||
223 | png_set_background_fixed @215 | ||
224 | png_get_io_chunk_type @216 | ||
225 | png_get_current_row_number @217 | ||
226 | png_get_current_pass_number @218 | ||
227 | png_process_data_pause @219 | ||
228 | png_process_data_skip @220 | ||
229 | png_set_expand_16 @221 | ||
230 | png_set_text_compression_level @222 | ||
231 | png_set_text_compression_mem_level @223 | ||
232 | png_set_text_compression_strategy @224 | ||
233 | png_set_text_compression_window_bits @225 | ||
234 | png_set_text_compression_method @226 | ||
235 | png_set_alpha_mode @227 | ||
236 | png_set_alpha_mode_fixed @228 | ||
237 | png_set_scale_16 @229 | ||
238 | png_get_cHRM_XYZ @230 | ||
239 | png_get_cHRM_XYZ_fixed @231 | ||
240 | png_set_cHRM_XYZ @232 | ||
241 | png_set_cHRM_XYZ_fixed @233 | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/symbols.dfn b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/symbols.dfn new file mode 100644 index 0000000..1596dde --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/symbols.dfn | |||
@@ -0,0 +1,57 @@ | |||
1 | |||
2 | /* symbols.dfn - find all exported symbols | ||
3 | * | ||
4 | * Last changed in libpng version 1.5.0 [January 6, 2011] | ||
5 | * Copyright (c) 1998-2011 Glenn Randers-Pehrson | ||
6 | * | ||
7 | * This code is released under the libpng license. | ||
8 | * For conditions of distribution and use, see the disclaimer | ||
9 | * and license in png.h | ||
10 | */ | ||
11 | |||
12 | /* NOTE: making 'symbols.chk' checks both that the exported | ||
13 | * symbols in the library don't change and (implicitly) that | ||
14 | * scripts/pnglibconf.h.prebuilt is as expected. If scripts/pnglibconf.h.prebuilt | ||
15 | * is remade using scripts/pnglibconf.dfa then this checks the | ||
16 | * .dfa file too. | ||
17 | */ | ||
18 | |||
19 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ | ||
20 | PNG_DEFN_MAGIC-name @ordinal-PNG_DEFN_END | ||
21 | #define PNG_REMOVED(ordinal, type, name, args, attributes)\ | ||
22 | PNG_DEFN_MAGIC-; name @ordinal-PNG_DEFN_END | ||
23 | #define PNG_EXPORT_LAST_ORDINAL(ordinal)\ | ||
24 | PNG_DEFN_MAGIC-; @ordinal-PNG_DEFN_END | ||
25 | |||
26 | /* Read the defaults, but use scripts/pnglibconf.h.prebuilt; the 'standard' | ||
27 | * header file. | ||
28 | */ | ||
29 | #include "pnglibconf.h.prebuilt" | ||
30 | #include "../png.h" | ||
31 | |||
32 | /* Some things are turned off by default. Turn these things | ||
33 | * on here (by hand) to get the APIs they expose and validate | ||
34 | * that no harm is done. This list is the set of options | ||
35 | * defaulted to 'off' in scripts/pnglibconf.dfa | ||
36 | * | ||
37 | * Maintenance: if scripts/pnglibconf.dfa options are changed | ||
38 | * from, or to, 'off' this needs updating! | ||
39 | */ | ||
40 | #define PNG_BENIGN_ERRORS_SUPPORTED | ||
41 | #define PNG_ERROR_NUMBERS_SUPPORTED | ||
42 | #define PNG_READ_BIG_ENDIAN_SUPPORTED /* should do nothing! */ | ||
43 | #define PNG_INCH_CONVERSIONS_SUPPORTED | ||
44 | #define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED | ||
45 | |||
46 | #undef PNG_H | ||
47 | #include "../png.h" | ||
48 | |||
49 | /* Finally there are a couple of places where option support | ||
50 | * actually changes the APIs revealed using a #if/#else/#endif | ||
51 | * test in png.h, test these here. | ||
52 | */ | ||
53 | #undef PNG_FLOATING_POINT_SUPPORTED /* Exposes 'fixed' APIs */ | ||
54 | #undef PNG_ERROR_TEXT_SUPPORTED /* Exposes unsupported APIs */ | ||
55 | |||
56 | #undef PNG_H | ||
57 | #include "../png.h" | ||
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/vers.dfn b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/vers.dfn new file mode 100644 index 0000000..548cfb4 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/vers.dfn | |||
@@ -0,0 +1,26 @@ | |||
1 | |||
2 | /* vers.dfn - define format of libpng.vers | ||
3 | * | ||
4 | * Last changed in libpng version 1.5.0 [January 6, 2011] | ||
5 | * Copyright (c) 1998-2011 Glenn Randers-Pehrson | ||
6 | * | ||
7 | * This code is released under the libpng license. | ||
8 | * For conditions of distribution and use, see the disclaimer | ||
9 | * and license in png.h | ||
10 | */ | ||
11 | |||
12 | #define HEADER PNG_DEFN_MAGIC-PNGLIB_LIBNAME {global:-PNG_DEFN_END | ||
13 | |||
14 | /* NOTE: PNG_JOIN is interpreted by the calling script as a signal to | ||
15 | * join the two things on either side, so we can do symbol | ||
16 | * substitution within the name, regular C ## joins the pp-tokens, | ||
17 | * not their final values. | ||
18 | */ | ||
19 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ | ||
20 | PNG_DEFN_MAGIC- SYMBOL_PREFIX PNG_JOIN name;-PNG_DEFN_END | ||
21 | |||
22 | #define TRAILER PNG_DEFN_MAGIC-local: *; };-PNG_DEFN_END | ||
23 | |||
24 | HEADER | ||
25 | #include "../png.h" | ||
26 | TRAILER | ||