aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec404
1 files changed, 202 insertions, 202 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec
index 5687ca1..5301d87 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec
+++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.dec
@@ -1,202 +1,202 @@
1# makefile for libpng on DEC Alpha Unix 1# makefile for libpng on DEC Alpha Unix
2# Copyright (C) 2000-2002, 2006, 2010-2011 Glenn Randers-Pehrson 2# Copyright (C) 2000-2002, 2006, 2010-2011 Glenn Randers-Pehrson
3# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. 3# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4# 4#
5# This code is released under the libpng license. 5# This code is released under the libpng license.
6# For conditions of distribution and use, see the disclaimer 6# For conditions of distribution and use, see the disclaimer
7# and license in png.h 7# and license in png.h
8 8
9# Library name: 9# Library name:
10PNGMAJ = 15 10PNGMAJ = 15
11LIBNAME = libpng15 11LIBNAME = libpng15
12 12
13# Shared library names: 13# Shared library names:
14LIBSO=$(LIBNAME).so 14LIBSO=$(LIBNAME).so
15LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 15LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
16LIBSOREL=$(LIBSOMAJ).$(RELEASE) 16LIBSOREL=$(LIBSOMAJ).$(RELEASE)
17OLDSO=libpng.so 17OLDSO=libpng.so
18 18
19# Utilities: 19# Utilities:
20AR_RC=ar rc 20AR_RC=ar rc
21CC=cc 21CC=cc
22MKDIR_P=mkdir 22MKDIR_P=mkdir
23LN_SF=ln -f -s 23LN_SF=ln -f -s
24RANLIB=ranlib 24RANLIB=ranlib
25RM_F=/bin/rm -f 25RM_F=/bin/rm -f
26 26
27# where make install puts libpng.a and png.h 27# where make install puts libpng.a and png.h
28prefix=/usr/local 28prefix=/usr/local
29exec_prefix=$(prefix) 29exec_prefix=$(prefix)
30INCPATH=$(prefix)/include 30INCPATH=$(prefix)/include
31LIBPATH=$(exec_prefix)/lib 31LIBPATH=$(exec_prefix)/lib
32MANPATH=$(prefix)/man 32MANPATH=$(prefix)/man
33BINPATH=$(exec_prefix)/bin 33BINPATH=$(exec_prefix)/bin
34 34
35# override DESTDIR= on the make install command line to easily support 35# override DESTDIR= on the make install command line to easily support
36# installing into a temporary location. Example: 36# installing into a temporary location. Example:
37# 37#
38# make install DESTDIR=/tmp/build/libpng 38# make install DESTDIR=/tmp/build/libpng
39# 39#
40# If you're going to install into a temporary location 40# If you're going to install into a temporary location
41# via DESTDIR, $(DESTDIR)$(prefix) must already exist before 41# via DESTDIR, $(DESTDIR)$(prefix) must already exist before
42# you execute make install. 42# you execute make install.
43DESTDIR= 43DESTDIR=
44 44
45DB=$(DESTDIR)$(BINPATH) 45DB=$(DESTDIR)$(BINPATH)
46DI=$(DESTDIR)$(INCPATH) 46DI=$(DESTDIR)$(INCPATH)
47DL=$(DESTDIR)$(LIBPATH) 47DL=$(DESTDIR)$(LIBPATH)
48DM=$(DESTDIR)$(MANPATH) 48DM=$(DESTDIR)$(MANPATH)
49 49
50# Where the zlib library and include files are located 50# Where the zlib library and include files are located
51#ZLIBLIB=/usr/local/lib 51#ZLIBLIB=/usr/local/lib
52#ZLIBINC=/usr/local/include 52#ZLIBINC=/usr/local/include
53ZLIBLIB=../zlib 53ZLIBLIB=../zlib
54ZLIBINC=../zlib 54ZLIBINC=../zlib
55 55
56CFLAGS=-std -w1 -I$(ZLIBINC) -O # -g -DPNG_DEBUG=1 56CFLAGS=-std -w1 -I$(ZLIBINC) -O # -g -DPNG_DEBUG=1
57LDFLAGS=-L$(ZLIBLIB) -rpath $(ZLIBLIB) libpng.a -lz -lm 57LDFLAGS=-L$(ZLIBLIB) -rpath $(ZLIBLIB) libpng.a -lz -lm
58 58
59OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 59OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
60 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ 60 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
61 pngwtran.o pngmem.o pngerror.o pngpread.o 61 pngwtran.o pngmem.o pngerror.o pngpread.o
62 62
63all: $(LIBSO) libpng.a pngtest libpng.pc libpng-config 63all: $(LIBSO) libpng.a pngtest libpng.pc libpng-config
64 64
65# see scripts/pnglibconf.mak for more options 65# see scripts/pnglibconf.mak for more options
66pnglibconf.h: scripts/pnglibconf.h.prebuilt 66pnglibconf.h: scripts/pnglibconf.h.prebuilt
67 cp scripts/pnglibconf.h.prebuilt $@ 67 cp scripts/pnglibconf.h.prebuilt $@
68 68
69libpng.a: $(OBJS) 69libpng.a: $(OBJS)
70 $(AR_RC) $@ $(OBJS) 70 $(AR_RC) $@ $(OBJS)
71 $(RANLIB) $@ 71 $(RANLIB) $@
72 72
73libpng.pc: 73libpng.pc:
74 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ 74 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \
75 -e s!@exec_prefix@!$(exec_prefix)! \ 75 -e s!@exec_prefix@!$(exec_prefix)! \
76 -e s!@libdir@!$(LIBPATH)! \ 76 -e s!@libdir@!$(LIBPATH)! \
77 -e s!@includedir@!$(INCPATH)! \ 77 -e s!@includedir@!$(INCPATH)! \
78 -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc 78 -e s!-lpng15!-lpng15\ -lz\ -lm! > libpng.pc
79 79
80libpng-config: 80libpng-config:
81 ( cat scripts/libpng-config-head.in; \ 81 ( cat scripts/libpng-config-head.in; \
82 echo prefix=\"$(prefix)\"; \ 82 echo prefix=\"$(prefix)\"; \
83 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ 83 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
84 echo ccopts=\"-std\"; \ 84 echo ccopts=\"-std\"; \
85 echo L_opts=\"-L$(LIBPATH)\"; \ 85 echo L_opts=\"-L$(LIBPATH)\"; \
86 echo libs=\"-lpng15 -lz -lm\"; \ 86 echo libs=\"-lpng15 -lz -lm\"; \
87 cat scripts/libpng-config-body.in ) > libpng-config 87 cat scripts/libpng-config-body.in ) > libpng-config
88 chmod +x libpng-config 88 chmod +x libpng-config
89 89
90$(LIBSO): $(LIBSOMAJ) 90$(LIBSO): $(LIBSOMAJ)
91 $(LN_SF) $(LIBSOMAJ) $(LIBSO) 91 $(LN_SF) $(LIBSOMAJ) $(LIBSO)
92 92
93$(LIBSOMAJ): $(OBJS) 93$(LIBSOMAJ): $(OBJS)
94 $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB) \ 94 $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB) \
95 -soname $(LIBSOMAJ) 95 -soname $(LIBSOMAJ)
96 96
97pngtest: pngtest.o libpng.a 97pngtest: pngtest.o libpng.a
98 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) 98 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
99 99
100test: pngtest 100test: pngtest
101 ./pngtest 101 ./pngtest
102 102
103install-headers: png.h pngconf.h pnglibconf.h 103install-headers: png.h pngconf.h pnglibconf.h
104 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 104 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi
105 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 105 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi
106 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 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 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 108 -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h
109 -@/bin/rm -f $(DI)/libpng 109 -@/bin/rm -f $(DI)/libpng
110 (cd $(DI); $(LN_SF)(LIBNAME) libpng; $(LN_SF)(LIBNAME)/* .) 110 (cd $(DI); $(LN_SF)(LIBNAME) libpng; $(LN_SF)(LIBNAME)/* .)
111 111
112install-static: install-headers libpng.a 112install-static: install-headers libpng.a
113 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 113 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
114 cp libpng.a $(DL)/$(LIBNAME).a 114 cp libpng.a $(DL)/$(LIBNAME).a
115 chmod 644 $(DL)/$(LIBNAME).a 115 chmod 644 $(DL)/$(LIBNAME).a
116 -@/bin/rm -f $(DL)/libpng.a 116 -@/bin/rm -f $(DL)/libpng.a
117 (cd $(DL); $(LN_SF)(LIBNAME).a libpng.a) 117 (cd $(DL); $(LN_SF)(LIBNAME).a libpng.a)
118 118
119install-shared: install-headers $(LIBSOMAJ) libpng.pc 119install-shared: install-headers $(LIBSOMAJ) libpng.pc
120 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 120 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
121 -@$(RM_F) $(DL)/$(LIBSO) 121 -@$(RM_F) $(DL)/$(LIBSO)
122 -@$(RM_F) $(DL)/$(LIBSOREL) 122 -@$(RM_F) $(DL)/$(LIBSOREL)
123 -@$(RM_F) $(DL)/$(OLDSO) 123 -@$(RM_F) $(DL)/$(OLDSO)
124 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 124 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL)
125 chmod 755 $(DL)/$(LIBSOREL) 125 chmod 755 $(DL)/$(LIBSOREL)
126 (cd $(DL); \ 126 (cd $(DL); \
127 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 127 $(LN_SF) $(LIBSOREL) $(LIBSO); \
128 $(LN_SF) $(LIBSO) $(OLDSO)) 128 $(LN_SF) $(LIBSO) $(OLDSO))
129 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 129 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi
130 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 130 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc
131 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 131 -@$(RM_F) $(DL)/pkgconfig/libpng.pc
132 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 132 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
133 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 133 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
134 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 134 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc)
135 135
136install-man: libpng.3 libpngpf.3 png.5 136install-man: libpng.3 libpngpf.3 png.5
137 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 137 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi
138 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 138 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi
139 -@/bin/rm -f $(DM)/man3/libpng.3 139 -@/bin/rm -f $(DM)/man3/libpng.3
140 -@/bin/rm -f $(DM)/man3/libpngpf.3 140 -@/bin/rm -f $(DM)/man3/libpngpf.3
141 cp libpng.3 $(DM)/man3 141 cp libpng.3 $(DM)/man3
142 cp libpngpf.3 $(DM)/man3 142 cp libpngpf.3 $(DM)/man3
143 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 143 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi
144 -@/bin/rm -f $(DM)/man5/png.5 144 -@/bin/rm -f $(DM)/man5/png.5
145 cp png.5 $(DM)/man5 145 cp png.5 $(DM)/man5
146 146
147install-config: libpng-config 147install-config: libpng-config
148 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 148 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi
149 -@/bin/rm -f $(DB)/libpng-config 149 -@/bin/rm -f $(DB)/libpng-config
150 -@/bin/rm -f $(DB)/$(LIBNAME)-config 150 -@/bin/rm -f $(DB)/$(LIBNAME)-config
151 cp libpng-config $(DB)/$(LIBNAME)-config 151 cp libpng-config $(DB)/$(LIBNAME)-config
152 chmod 755 $(DB)/$(LIBNAME)-config 152 chmod 755 $(DB)/$(LIBNAME)-config
153 (cd $(DB); $(LN_SF)(LIBNAME)-config libpng-config) 153 (cd $(DB); $(LN_SF)(LIBNAME)-config libpng-config)
154 154
155install: install-static install-shared install-man install-config 155install: install-static install-shared install-man install-config
156 156
157# If you installed in $(DESTDIR), test-installed won't work until you 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 158# move the library to its final location. Use test-dd to test it
159# before then. 159# before then.
160 160
161test-dd: 161test-dd:
162 echo 162 echo
163 echo Testing installed dynamic shared library in $(DL). 163 echo Testing installed dynamic shared library in $(DL).
164 $(CC) -w1 -I$(DI) -I$(ZLIBINC) \ 164 $(CC) -w1 -I$(DI) -I$(ZLIBINC) \
165 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 165 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \
166 -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) \ 166 -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) \
167 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 167 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags`
168 ./pngtestd pngtest.png 168 ./pngtestd pngtest.png
169 169
170test-installed: 170test-installed:
171 echo 171 echo
172 echo Testing installed dynamic shared library. 172 echo Testing installed dynamic shared library.
173 $(CC) -w1 -I$(ZLIBINC) \ 173 $(CC) -w1 -I$(ZLIBINC) \
174 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 174 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \
175 -L$(ZLIBLIB) -R$(ZLIBLIB) \ 175 -L$(ZLIBLIB) -R$(ZLIBLIB) \
176 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 176 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags`
177 ./pngtesti pngtest.png 177 ./pngtesti pngtest.png
178 178
179clean: 179clean:
180 /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \ 180 /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
181 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 181 libpng-config $(LIBSO) $(LIBSOMAJ)* \
182 libpng.pc pnglibconf.h 182 libpng.pc pnglibconf.h
183 183
184# DO NOT DELETE THIS LINE -- make depend depends on it. 184# DO NOT DELETE THIS LINE -- make depend depends on it.
185 185
186png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 186png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
187pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 187pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
188pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 188pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
189pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 189pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
190pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 190pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
191pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 191pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
192pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 192pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
193pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 193pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
194pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 194pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
195pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 195pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
196pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 196pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
197pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 197pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
198pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 198pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
199pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 199pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
200pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 200pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
201 201
202pngtest.o: png.h pngconf.h pnglibconf.h 202pngtest.o: png.h pngconf.h pnglibconf.h