aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr
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.knr
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.knr')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr218
1 files changed, 109 insertions, 109 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr
index 912c542..18a39f5 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr
+++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.knr
@@ -1,109 +1,109 @@
1# makefile for libpng 1# makefile for libpng
2# Copyright (C) 2002, 2006, 2009 Glenn Randers-Pehrson 2# Copyright (C) 2002, 2006, 2009 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# This makefile requires the file ansi2knr.c, which you can get 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/ 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 11# If you have libjpeg, you probably already have ansi2knr.c in the jpeg
12# source distribution. 12# source distribution.
13 13
14# where make install puts libpng.a and png.h 14# where make install puts libpng.a and png.h
15prefix=/usr/local 15prefix=/usr/local
16INCPATH=$(prefix)/include 16INCPATH=$(prefix)/include
17LIBPATH=$(prefix)/lib 17LIBPATH=$(prefix)/lib
18 18
19# override DESTDIR= on the make install command line to easily support 19# override DESTDIR= on the make install command line to easily support
20# installing into a temporary location. Example: 20# installing into a temporary location. Example:
21# 21#
22# make install DESTDIR=/tmp/build/libpng 22# make install DESTDIR=/tmp/build/libpng
23# 23#
24# If you're going to install into a temporary location 24# If you're going to install into a temporary location
25# via DESTDIR, $(DESTDIR)$(prefix) must already exist before 25# via DESTDIR, $(DESTDIR)$(prefix) must already exist before
26# you execute make install. 26# you execute make install.
27DESTDIR= 27DESTDIR=
28 28
29CC=cc 29CC=cc
30CFLAGS=-I../zlib -O 30CFLAGS=-I../zlib -O
31LDFLAGS=-L. -L../zlib/ -lpng -lz -lm 31LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
32# flags for ansi2knr 32# flags for ansi2knr
33ANSI2KNRFLAGS= 33ANSI2KNRFLAGS=
34 34
35RANLIB=ranlib 35RANLIB=ranlib
36#RANLIB=echo 36#RANLIB=echo
37 37
38OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 38OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
39 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ 39 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
40 pngwtran.o pngmem.o pngerror.o pngpread.o 40 pngwtran.o pngmem.o pngerror.o pngpread.o
41 41
42all: ansi2knr libpng.a pngtest 42all: ansi2knr libpng.a pngtest
43 43
44# see scripts/pnglibconf.mak for more options 44# see scripts/pnglibconf.mak for more options
45pnglibconf.h: scripts/pnglibconf.h.prebuilt 45pnglibconf.h: scripts/pnglibconf.h.prebuilt
46 cp scripts/pnglibconf.h.prebuilt $@ 46 cp scripts/pnglibconf.h.prebuilt $@
47 47
48# general rule to allow ansi2knr to work 48# general rule to allow ansi2knr to work
49.c.o: 49.c.o:
50 ./ansi2knr $*.c T$*.c 50 ./ansi2knr $*.c T$*.c
51 $(CC) $(CFLAGS) -c T$*.c 51 $(CC) $(CFLAGS) -c T$*.c
52 rm -f T$*.c $*.o 52 rm -f T$*.c $*.o
53 mv T$*.o $*.o 53 mv T$*.o $*.o
54 54
55ansi2knr: ansi2knr.c 55ansi2knr: ansi2knr.c
56 $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c 56 $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
57 57
58libpng.a: ansi2knr $(OBJS) 58libpng.a: ansi2knr $(OBJS)
59 ar rc $@ $(OBJS) 59 ar rc $@ $(OBJS)
60 $(RANLIB) $@ 60 $(RANLIB) $@
61 61
62pngtest: pngtest.o libpng.a 62pngtest: pngtest.o libpng.a
63 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) 63 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
64 64
65test: pngtest 65test: pngtest
66 ./pngtest 66 ./pngtest
67 67
68install: libpng.a png.h pngconf.h pnglibconf.h 68install: libpng.a png.h pngconf.h pnglibconf.h
69 -@mkdir $(DESTDIR)$(INCPATH) 69 -@mkdir $(DESTDIR)$(INCPATH)
70 -@mkdir $(DESTDIR)$(INCPATH)/libpng 70 -@mkdir $(DESTDIR)$(INCPATH)/libpng
71 -@mkdir $(DESTDIR)$(LIBPATH) 71 -@mkdir $(DESTDIR)$(LIBPATH)
72 -@rm -f $(DESTDIR)$(INCPATH)/png.h 72 -@rm -f $(DESTDIR)$(INCPATH)/png.h
73 -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h 73 -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
74 cp png.h $(DESTDIR)$(INCPATH)/libpng 74 cp png.h $(DESTDIR)$(INCPATH)/libpng
75 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng 75 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
76 cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng 76 cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng
77 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h 77 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
78 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h 78 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
79 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h 79 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h
80 (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .) 80 (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
81 cp libpng.a $(DESTDIR)$(LIBPATH) 81 cp libpng.a $(DESTDIR)$(LIBPATH)
82 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a 82 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
83 83
84clean: 84clean:
85 rm -f *.o libpng.a pngtest pngout.png ansi2knr pnglibconf.h 85 rm -f *.o libpng.a pngtest pngout.png ansi2knr pnglibconf.h
86 86
87DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO 87DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
88writelock: 88writelock:
89 chmod a-w *.[ch35] $(DOCS) scripts/* 89 chmod a-w *.[ch35] $(DOCS) scripts/*
90 90
91# DO NOT DELETE THIS LINE -- make depend depends on it. 91# DO NOT DELETE THIS LINE -- make depend depends on it.
92 92
93png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 93png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
94pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 94pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
95pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 95pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
96pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 96pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
97pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 97pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
98pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 98pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
99pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 99pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
100pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 100pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
101pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 101pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
102pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 102pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
103pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 103pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
104pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 104pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
105pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 105pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
106pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 106pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
107pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
108 108
109pngtest.o: png.h pngconf.h pnglibconf.h 109pngtest.o: png.h pngconf.h pnglibconf.h