diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/preader/makefile')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/preader/makefile | 330 |
1 files changed, 165 insertions, 165 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/preader/makefile b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/preader/makefile index a367661..f4b0ccd 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/preader/makefile +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/pngminim/preader/makefile | |||
@@ -1,165 +1,165 @@ | |||
1 | # Makefile for PngMinus (rpng2) | 1 | # Makefile for PngMinus (rpng2) |
2 | # Linux / Unix | 2 | # Linux / Unix |
3 | 3 | ||
4 | #CC=cc | 4 | #CC=cc |
5 | CC=gcc | 5 | CC=gcc |
6 | LD=$(CC) | 6 | LD=$(CC) |
7 | 7 | ||
8 | # If awk fails try | 8 | # If awk fails try |
9 | # make AWK=nawk | 9 | # make AWK=nawk |
10 | 10 | ||
11 | # If cpp fails try | 11 | # If cpp fails try |
12 | # make CPP=/lib/cpp | 12 | # make CPP=/lib/cpp |
13 | 13 | ||
14 | RM=rm -f | 14 | RM=rm -f |
15 | COPY=cp | 15 | COPY=cp |
16 | 16 | ||
17 | #XINC = -I/usr/include # old-style, stock X distributions | 17 | #XINC = -I/usr/include # old-style, stock X distributions |
18 | #XLIB = -L/usr/lib/X11 -lX11 # (including SGI IRIX) | 18 | #XLIB = -L/usr/lib/X11 -lX11 # (including SGI IRIX) |
19 | 19 | ||
20 | #XINC = -I/usr/openwin/include # Sun workstations (OpenWindows) | 20 | #XINC = -I/usr/openwin/include # Sun workstations (OpenWindows) |
21 | #XLIB = -L/usr/openwin/lib -lX11 | 21 | #XLIB = -L/usr/openwin/lib -lX11 |
22 | 22 | ||
23 | XINC = -I/usr/X11R6/include # new X distributions (X.org, etc.) | 23 | XINC = -I/usr/X11R6/include # new X distributions (X.org, etc.) |
24 | XLIB = -L/usr/X11R6/lib -lX11 | 24 | XLIB = -L/usr/X11R6/lib -lX11 |
25 | #XLIB = -L/usr/X11R6/lib64 -lX11 # e.g., Red Hat on AMD64 | 25 | #XLIB = -L/usr/X11R6/lib64 -lX11 # e.g., Red Hat on AMD64 |
26 | 26 | ||
27 | #XINC = -I/usr/local/include # FreeBSD | 27 | #XINC = -I/usr/local/include # FreeBSD |
28 | #XLIB = -L/usr/local/lib -lX11 | 28 | #XLIB = -L/usr/local/lib -lX11 |
29 | 29 | ||
30 | #LIBS = $(XLIB) | 30 | #LIBS = $(XLIB) |
31 | LIBS = $(XLIB) -lm #platforms that need libm | 31 | LIBS = $(XLIB) -lm #platforms that need libm |
32 | 32 | ||
33 | CFLAGS=-DPNG_USER_CONFIG -DNO_GZCOMPRESS -DNO_GZIP -I. $(XINC) -O1 | 33 | CFLAGS=-DPNG_USER_CONFIG -DNO_GZCOMPRESS -DNO_GZIP -I. $(XINC) -O1 |
34 | 34 | ||
35 | C=.c | 35 | C=.c |
36 | O=.o | 36 | O=.o |
37 | L=.a | 37 | L=.a |
38 | E= | 38 | E= |
39 | 39 | ||
40 | # Where to find the source code: | 40 | # Where to find the source code: |
41 | PNGSRC =../../.. | 41 | PNGSRC =../../.. |
42 | ZLIBSRC=$(PNGSRC)/../zlib | 42 | ZLIBSRC=$(PNGSRC)/../zlib |
43 | PROGSRC=$(PNGSRC)/contrib/gregbook | 43 | PROGSRC=$(PNGSRC)/contrib/gregbook |
44 | 44 | ||
45 | # Zlib (minimal inflate requirements - crc32 is used by libpng) | 45 | # Zlib (minimal inflate requirements - crc32 is used by libpng) |
46 | # zutil can be eliminated if you provide your own zcalloc and zcfree | 46 | # zutil can be eliminated if you provide your own zcalloc and zcfree |
47 | ZSRCS = adler32$(C) crc32$(C) \ | 47 | ZSRCS = adler32$(C) crc32$(C) \ |
48 | inffast$(C) inflate$(C) inftrees$(C) \ | 48 | inffast$(C) inflate$(C) inftrees$(C) \ |
49 | zutil$(C) | 49 | zutil$(C) |
50 | 50 | ||
51 | # Standard headers | 51 | # Standard headers |
52 | ZH = zlib.h crc32.h inffast.h inffixed.h \ | 52 | ZH = zlib.h crc32.h inffast.h inffixed.h \ |
53 | inflate.h inftrees.h zutil.h | 53 | inflate.h inftrees.h zutil.h |
54 | 54 | ||
55 | # Machine generated headers | 55 | # Machine generated headers |
56 | ZCONF = zconf.h | 56 | ZCONF = zconf.h |
57 | 57 | ||
58 | # Headers callers use | 58 | # Headers callers use |
59 | ZINC = zlib.h $(ZCONF) | 59 | ZINC = zlib.h $(ZCONF) |
60 | 60 | ||
61 | # Headers the Zlib source uses | 61 | # Headers the Zlib source uses |
62 | ZHDRS = $(ZH) $(ZCONF) | 62 | ZHDRS = $(ZH) $(ZCONF) |
63 | 63 | ||
64 | ZOBJS = adler32$(O) crc32$(O) \ | 64 | ZOBJS = adler32$(O) crc32$(O) \ |
65 | inffast$(O) inflate$(O) inftrees$(O) \ | 65 | inffast$(O) inflate$(O) inftrees$(O) \ |
66 | zutil$(O) | 66 | zutil$(O) |
67 | 67 | ||
68 | # libpng | 68 | # libpng |
69 | PNGSRCS=png$(C) pngerror$(C) pngget$(C) pngmem$(C) \ | 69 | PNGSRCS=png$(C) pngerror$(C) pngget$(C) pngmem$(C) \ |
70 | pngpread$(C) pngread$(C) pngrio$(C) pngrtran$(C) pngrutil$(C) \ | 70 | pngpread$(C) pngread$(C) pngrio$(C) pngrtran$(C) pngrutil$(C) \ |
71 | pngset$(C) pngtrans$(C) | 71 | pngset$(C) pngtrans$(C) |
72 | 72 | ||
73 | # Standard headers | 73 | # Standard headers |
74 | PNGH =png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h | 74 | PNGH =png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h |
75 | 75 | ||
76 | # Machine generated headers | 76 | # Machine generated headers |
77 | PNGCONF=pnglibconf.h | 77 | PNGCONF=pnglibconf.h |
78 | 78 | ||
79 | # Headers callers use | 79 | # Headers callers use |
80 | PNGINC= png.h pngconf.h pngusr.h $(PNGCONF) | 80 | PNGINC= png.h pngconf.h pngusr.h $(PNGCONF) |
81 | 81 | ||
82 | # Headers the PNG library uses | 82 | # Headers the PNG library uses |
83 | PNGHDRS=$(PNGH) $(PNGCONF) pngusr.h | 83 | PNGHDRS=$(PNGH) $(PNGCONF) pngusr.h |
84 | 84 | ||
85 | PNGOBJS=png$(O) pngerror$(O) pngget$(O) pngmem$(O) \ | 85 | PNGOBJS=png$(O) pngerror$(O) pngget$(O) pngmem$(O) \ |
86 | pngpread$(O) pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) \ | 86 | pngpread$(O) pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) \ |
87 | pngset$(O) pngtrans$(O) | 87 | pngset$(O) pngtrans$(O) |
88 | 88 | ||
89 | PROGSRCS= rpng2-x$(C) readpng2$(C) | 89 | PROGSRCS= rpng2-x$(C) readpng2$(C) |
90 | PROGHDRS= readpng2.h | 90 | PROGHDRS= readpng2.h |
91 | PROGDOCS= COPYING LICENSE | 91 | PROGDOCS= COPYING LICENSE |
92 | PROGOBJS= rpng2-x$(O) readpng2$(O) | 92 | PROGOBJS= rpng2-x$(O) readpng2$(O) |
93 | 93 | ||
94 | OBJS = $(PROGOBJS) $(PNGOBJS) $(ZOBJS) | 94 | OBJS = $(PROGOBJS) $(PNGOBJS) $(ZOBJS) |
95 | 95 | ||
96 | # implicit make rules ------------------------------------------------------- | 96 | # implicit make rules ------------------------------------------------------- |
97 | 97 | ||
98 | .c$(O): | 98 | .c$(O): |
99 | $(CC) -c $(CFLAGS) $< | 99 | $(CC) -c $(CFLAGS) $< |
100 | 100 | ||
101 | # dependencies | 101 | # dependencies |
102 | 102 | ||
103 | all: $(PROGDOCS) rpng2-x$(E) | 103 | all: $(PROGDOCS) rpng2-x$(E) |
104 | 104 | ||
105 | rpng2-x$(E): $(OBJS) | 105 | rpng2-x$(E): $(OBJS) |
106 | $(LD) -o rpng2-x$(E) $(OBJS) $(LIBS) | 106 | $(LD) -o rpng2-x$(E) $(OBJS) $(LIBS) |
107 | 107 | ||
108 | # The DFA_XTRA setting turns all libpng options off then | 108 | # The DFA_XTRA setting turns all libpng options off then |
109 | # turns on those required for this minimal build. | 109 | # turns on those required for this minimal build. |
110 | # The CPP_FLAGS setting causes pngusr.h to be included in | 110 | # The CPP_FLAGS setting causes pngusr.h to be included in |
111 | # both the build of pnglibconf.h and, subsequently, when | 111 | # both the build of pnglibconf.h and, subsequently, when |
112 | # building libpng itself. | 112 | # building libpng itself. |
113 | $(PNGCONF): $(PNGSRC)/scripts/pnglibconf.mak\ | 113 | $(PNGCONF): $(PNGSRC)/scripts/pnglibconf.mak\ |
114 | $(PNGSRC)/scripts/pnglibconf.dfa \ | 114 | $(PNGSRC)/scripts/pnglibconf.dfa \ |
115 | $(PNGSRC)/scripts/options.awk pngusr.h pngusr.dfa | 115 | $(PNGSRC)/scripts/options.awk pngusr.h pngusr.dfa |
116 | $(RM) pnglibconf.h pnglibconf.dfn | 116 | $(RM) pnglibconf.h pnglibconf.dfn |
117 | $(MAKE) $(MAKEFLAGS) -f $(PNGSRC)/scripts/pnglibconf.mak\ | 117 | $(MAKE) $(MAKEFLAGS) -f $(PNGSRC)/scripts/pnglibconf.mak\ |
118 | srcdir=$(PNGSRC) CPPFLAGS="-DPNG_USER_CONFIG"\ | 118 | srcdir=$(PNGSRC) CPPFLAGS="-DPNG_USER_CONFIG"\ |
119 | DFA_XTRA="pngusr.dfa" $@ | 119 | DFA_XTRA="pngusr.dfa" $@ |
120 | 120 | ||
121 | clean: | 121 | clean: |
122 | $(MAKE) $(MAKEFLAGS) -f $(PNGSRC)/scripts/pnglibconf.mak\ | 122 | $(MAKE) $(MAKEFLAGS) -f $(PNGSRC)/scripts/pnglibconf.mak\ |
123 | srcdir=$(PNGSRC) clean | 123 | srcdir=$(PNGSRC) clean |
124 | $(RM) rpng2-x$(O) | 124 | $(RM) rpng2-x$(O) |
125 | $(RM) rpng2-x$(E) | 125 | $(RM) rpng2-x$(E) |
126 | $(RM) $(OBJS) | 126 | $(RM) $(OBJS) |
127 | 127 | ||
128 | # distclean also removes the copied source and headers | 128 | # distclean also removes the copied source and headers |
129 | distclean: clean | 129 | distclean: clean |
130 | $(RM) -r scripts # historical reasons | 130 | $(RM) -r scripts # historical reasons |
131 | $(RM) $(PNGSRCS) $(PNGH) | 131 | $(RM) $(PNGSRCS) $(PNGH) |
132 | $(RM) $(ZSRCS) $(ZH) $(ZCONF) | 132 | $(RM) $(ZSRCS) $(ZH) $(ZCONF) |
133 | $(RM) $(PROGSRCS) $(PROGHDRS) $(PROGDOCS) | 133 | $(RM) $(PROGSRCS) $(PROGHDRS) $(PROGDOCS) |
134 | 134 | ||
135 | # Header file dependencies: | 135 | # Header file dependencies: |
136 | $(PROGOBJS): $(PROGHDRS) $(PNGINC) $(ZINC) | 136 | $(PROGOBJS): $(PROGHDRS) $(PNGINC) $(ZINC) |
137 | $(PNGOBJS): $(PNGHDRS) $(ZINC) | 137 | $(PNGOBJS): $(PNGHDRS) $(ZINC) |
138 | $(ZOBJS): $(ZHDRS) | 138 | $(ZOBJS): $(ZHDRS) |
139 | 139 | ||
140 | # Gather the source code from the respective directories | 140 | # Gather the source code from the respective directories |
141 | $(PNGSRCS) $(PNGH): $(PNGSRC)/$@ | 141 | $(PNGSRCS) $(PNGH): $(PNGSRC)/$@ |
142 | $(RM) $@ | 142 | $(RM) $@ |
143 | $(COPY) $(PNGSRC)/$@ $@ | 143 | $(COPY) $(PNGSRC)/$@ $@ |
144 | 144 | ||
145 | # No dependency on the ZLIBSRC target so that it only needs | 145 | # No dependency on the ZLIBSRC target so that it only needs |
146 | # to be specified once. | 146 | # to be specified once. |
147 | $(ZSRCS) $(ZH): | 147 | $(ZSRCS) $(ZH): |
148 | $(RM) $@ | 148 | $(RM) $@ |
149 | $(COPY) $(ZLIBSRC)/$@ $@ | 149 | $(COPY) $(ZLIBSRC)/$@ $@ |
150 | 150 | ||
151 | # The unconfigured zconf.h varies in name according to the | 151 | # The unconfigured zconf.h varies in name according to the |
152 | # zlib release | 152 | # zlib release |
153 | $(ZCONF): | 153 | $(ZCONF): |
154 | $(RM) $@ | 154 | $(RM) $@ |
155 | @for f in zconf.h.in zconf.in.h zconf.h; do\ | 155 | @for f in zconf.h.in zconf.in.h zconf.h; do\ |
156 | test -r $(ZLIBSRC)/$$f &&\ | 156 | test -r $(ZLIBSRC)/$$f &&\ |
157 | echo $(COPY) $(ZLIBSRC)/$$f $@ &&\ | 157 | echo $(COPY) $(ZLIBSRC)/$$f $@ &&\ |
158 | $(COPY) $(ZLIBSRC)/$$f $@ && exit 0;\ | 158 | $(COPY) $(ZLIBSRC)/$$f $@ && exit 0;\ |
159 | done; echo copy: $(ZLIBSRC)/zconf.h not found; exit 1 | 159 | done; echo copy: $(ZLIBSRC)/zconf.h not found; exit 1 |
160 | 160 | ||
161 | $(PROGSRCS) $(PROGHDRS) $(PROGDOCS): $(PROGSRC)/$@ | 161 | $(PROGSRCS) $(PROGHDRS) $(PROGDOCS): $(PROGSRC)/$@ |
162 | $(RM) $@ | 162 | $(RM) $@ |
163 | $(COPY) $(PROGSRC)/$@ $@ | 163 | $(COPY) $(PROGSRC)/$@ $@ |
164 | 164 | ||
165 | # End of makefile for rpng2-x | 165 | # End of makefile for rpng2-x |