aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak
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/pnglibconf.mak
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/pnglibconf.mak')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak116
1 files changed, 58 insertions, 58 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak
index 1dbb232..c04578f 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak
+++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/pnglibconf.mak
@@ -1,58 +1,58 @@
1#!/usr/bin/make -f 1#!/usr/bin/make -f
2# pnglibconf.mak - standard make lines for pnglibconf.h 2# pnglibconf.mak - standard make lines for pnglibconf.h
3# 3#
4# These lines are copied from Makefile.am, they illustrate 4# These lines are copied from Makefile.am, they illustrate
5# how to automate the build of pnglibconf.h from scripts/pnglibconf.dfa 5# how to automate the build of pnglibconf.h from scripts/pnglibconf.dfa
6# given 'awk' and 'sed' 6# given 'awk' and 'sed'
7 7
8# Override as appropriate, these definitions can be overridden on 8# Override as appropriate, these definitions can be overridden on
9# the make command line (AWK='nawk' for example). 9# the make command line (AWK='nawk' for example).
10AWK = gawk 10AWK = gawk
11AWK = mawk 11AWK = mawk
12AWK = nawk 12AWK = nawk
13AWK = one-true-awk 13AWK = one-true-awk
14AWK = awk # Crashes on SunOS 5.10 - use 'nawk' 14AWK = awk # Crashes on SunOS 5.10 - use 'nawk'
15CPP = $(CC) -E # Does not work on SUN OS 5.10 - use /lib/cpp 15CPP = $(CC) -E # Does not work on SUN OS 5.10 - use /lib/cpp
16SED = sed 16SED = sed
17 17
18COPY = cp 18COPY = cp
19DELETE = rm -f 19DELETE = rm -f
20ECHO = echo 20ECHO = echo
21DFA_XTRA = # Appended to scripts/options.awk 21DFA_XTRA = # Appended to scripts/options.awk
22 22
23# CPPFLAGS should contain the options to control the result, 23# CPPFLAGS should contain the options to control the result,
24# but DEFS and CFLAGS are also supported here, override 24# but DEFS and CFLAGS are also supported here, override
25# as appropriate 25# as appropriate
26DFNFLAGS = $(DEFS) $(CPPFLAGS) $(CFLAGS) 26DFNFLAGS = $(DEFS) $(CPPFLAGS) $(CFLAGS)
27 27
28# srcdir is a defacto standard for the location of the source 28# srcdir is a defacto standard for the location of the source
29srcdir = . 29srcdir = .
30 30
31# The standard pnglibconf.h exists as scripts/pnglibconf.h.prebuilt, 31# The standard pnglibconf.h exists as scripts/pnglibconf.h.prebuilt,
32# copy this if the following doesn't work. 32# copy this if the following doesn't work.
33pnglibconf.h: pnglibconf.dfn 33pnglibconf.h: pnglibconf.dfn
34 $(DELETE) $@ dfn.c dfn1.out dfn2.out dfn3.out 34 $(DELETE) $@ dfn.c dfn1.out dfn2.out dfn3.out
35 $(ECHO) '#include "pnglibconf.dfn"' >dfn.c 35 $(ECHO) '#include "pnglibconf.dfn"' >dfn.c
36 $(CPP) $(DFNFLAGS) dfn.c >dfn1.out 36 $(CPP) $(DFNFLAGS) dfn.c >dfn1.out
37 $(ECHO) "If 'cpp -e' crashes try /lib/cpp (e.g. CPP='/lib/cpp')" >&2 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'\ 38 $(SED) -n -e 's|^.*PNG_DEFN_MAGIC *-\(.*\)- *PNG_DEFN_END.*$$|\1|p'\
39 dfn1.out >dfn2.out 39 dfn1.out >dfn2.out
40 $(SED) -e 's| *PNG_JOIN *||g' -e 's| *$$||' dfn2.out >dfn3.out 40 $(SED) -e 's| *PNG_JOIN *||g' -e 's| *$$||' dfn2.out >dfn3.out
41 $(COPY) dfn3.out $@ 41 $(COPY) dfn3.out $@
42 $(DELETE) dfn.c dfn1.out dfn2.out dfn3.out 42 $(DELETE) dfn.c dfn1.out dfn2.out dfn3.out
43 43
44pnglibconf.dfn: $(srcdir)/scripts/pnglibconf.dfa $(srcdir)/scripts/options.awk $(srcdir)/pngconf.h 44pnglibconf.dfn: $(srcdir)/scripts/pnglibconf.dfa $(srcdir)/scripts/options.awk $(srcdir)/pngconf.h
45 $(DELETE) $@ dfn1.out dfn2.out 45 $(DELETE) $@ dfn1.out dfn2.out
46 $(ECHO) "Calling $(AWK) from scripts/pnglibconf.mak" >&2 46 $(ECHO) "Calling $(AWK) from scripts/pnglibconf.mak" >&2
47 $(ECHO) "If 'awk' crashes try a better awk (e.g. AWK='nawk')" >&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\ 48 $(AWK) -f $(srcdir)/scripts/options.awk out=dfn1.out version=search\
49 $(srcdir)/pngconf.h $(srcdir)/scripts/pnglibconf.dfa\ 49 $(srcdir)/pngconf.h $(srcdir)/scripts/pnglibconf.dfa\
50 $(DFA_XTRA) 1>&2 50 $(DFA_XTRA) 1>&2
51 $(AWK) -f $(srcdir)/scripts/options.awk out=dfn2.out dfn1.out 1>&2 51 $(AWK) -f $(srcdir)/scripts/options.awk out=dfn2.out dfn1.out 1>&2
52 $(COPY) dfn2.out $@ 52 $(COPY) dfn2.out $@
53 $(DELETE) dfn1.out dfn2.out 53 $(DELETE) dfn1.out dfn2.out
54 54
55clean-pnglibconf: 55clean-pnglibconf:
56 $(DELETE) pnglibconf.h pnglibconf.dfn dfn.c dfn1.out dfn2.out dfn3.out 56 $(DELETE) pnglibconf.h pnglibconf.dfn dfn.c dfn1.out dfn2.out dfn3.out
57 57
58clean: clean-pnglibconf 58clean: clean-pnglibconf