diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/gregbook/Makefile.mingw32')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/gregbook/Makefile.mingw32 | 260 |
1 files changed, 130 insertions, 130 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/gregbook/Makefile.mingw32 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/gregbook/Makefile.mingw32 index a736556..e70a59a 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/gregbook/Makefile.mingw32 +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/gregbook/Makefile.mingw32 | |||
@@ -1,130 +1,130 @@ | |||
1 | # Sample makefile for rpng-win / rpng2-win / wpng using mingw32-gcc and make. | 1 | # Sample makefile for rpng-win / rpng2-win / wpng using mingw32-gcc and make. |
2 | # Greg Roelofs | 2 | # Greg Roelofs |
3 | # Last modified: 2 June 2007 | 3 | # Last modified: 2 June 2007 |
4 | # | 4 | # |
5 | # The programs built by this makefile are described in the book, | 5 | # The programs built by this makefile are described in the book, |
6 | # "PNG: The Definitive Guide," by Greg Roelofs (O'Reilly and | 6 | # "PNG: The Definitive Guide," by Greg Roelofs (O'Reilly and |
7 | # Associates, 1999). Go buy a copy, eh? Well, OK, it's not | 7 | # Associates, 1999). Go buy a copy, eh? Well, OK, it's not |
8 | # generally for sale anymore, but it's the thought that counts, | 8 | # generally for sale anymore, but it's the thought that counts, |
9 | # right? (Hint: http://www.libpng.org/pub/png/book/ ) | 9 | # right? (Hint: http://www.libpng.org/pub/png/book/ ) |
10 | # | 10 | # |
11 | # Invoke this makefile from a DOS-prompt window via: | 11 | # Invoke this makefile from a DOS-prompt window via: |
12 | # | 12 | # |
13 | # make -f Makefile.mingw32 | 13 | # make -f Makefile.mingw32 |
14 | # | 14 | # |
15 | # This makefile assumes libpng and zlib have already been built or downloaded | 15 | # This makefile assumes libpng and zlib have already been built or downloaded |
16 | # and are in subdirectories at the same level as the current subdirectory | 16 | # and are in subdirectories at the same level as the current subdirectory |
17 | # (as indicated by the PNGDIR and ZDIR macros below). It makes no assumptions | 17 | # (as indicated by the PNGDIR and ZDIR macros below). It makes no assumptions |
18 | # at all about the mingw32 installation tree (W32DIR). Edit as appropriate. | 18 | # at all about the mingw32 installation tree (W32DIR). Edit as appropriate. |
19 | # | 19 | # |
20 | # Note that the names of the dynamic and static libpng and zlib libraries | 20 | # Note that the names of the dynamic and static libpng and zlib libraries |
21 | # used below may change in later releases of the libraries. This makefile | 21 | # used below may change in later releases of the libraries. This makefile |
22 | # builds both statically and dynamically linked executables by default. | 22 | # builds both statically and dynamically linked executables by default. |
23 | # (You need only one set, but for testing it can be handy to have both.) | 23 | # (You need only one set, but for testing it can be handy to have both.) |
24 | 24 | ||
25 | 25 | ||
26 | # macros -------------------------------------------------------------------- | 26 | # macros -------------------------------------------------------------------- |
27 | 27 | ||
28 | #PNGDIR = ../..# for libpng-x.y.z/contrib/gregbook builds | 28 | #PNGDIR = ../..# for libpng-x.y.z/contrib/gregbook builds |
29 | PNGDIR = ../libpng-win32 | 29 | PNGDIR = ../libpng-win32 |
30 | PNGINC = -I$(PNGDIR) | 30 | PNGINC = -I$(PNGDIR) |
31 | PNGLIBd = $(PNGDIR)/libpng.dll.a # dynamically linked | 31 | PNGLIBd = $(PNGDIR)/libpng.dll.a # dynamically linked |
32 | PNGLIBs = $(PNGDIR)/libpng.a # statically linked, local libpng | 32 | PNGLIBs = $(PNGDIR)/libpng.a # statically linked, local libpng |
33 | 33 | ||
34 | #ZDIR = ../../../zlib-win32# for libpng-x.y.z/contrib/gregbook builds | 34 | #ZDIR = ../../../zlib-win32# for libpng-x.y.z/contrib/gregbook builds |
35 | ZDIR = ../zlib-win32 | 35 | ZDIR = ../zlib-win32 |
36 | ZINC = -I$(ZDIR) | 36 | ZINC = -I$(ZDIR) |
37 | ZLIBd = $(ZDIR)/libzdll.a | 37 | ZLIBd = $(ZDIR)/libzdll.a |
38 | ZLIBs = $(ZDIR)/libz.a | 38 | ZLIBs = $(ZDIR)/libz.a |
39 | 39 | ||
40 | # change this to be the path where mingw32 installs its stuff: | 40 | # change this to be the path where mingw32 installs its stuff: |
41 | W32DIR = | 41 | W32DIR = |
42 | #W32DIR = /usr/local/cross-tools/i386-mingw32msvc | 42 | #W32DIR = /usr/local/cross-tools/i386-mingw32msvc |
43 | W32INC = -I$(W32DIR)/include | 43 | W32INC = -I$(W32DIR)/include |
44 | W32LIB = $(W32DIR)/lib/libuser32.a $(W32DIR)/lib/libgdi32.a | 44 | W32LIB = $(W32DIR)/lib/libuser32.a $(W32DIR)/lib/libgdi32.a |
45 | 45 | ||
46 | CC = gcc | 46 | CC = gcc |
47 | #CC = i386-mingw32msvc-gcc # e.g., Linux -> Win32 cross-compilation | 47 | #CC = i386-mingw32msvc-gcc # e.g., Linux -> Win32 cross-compilation |
48 | LD = $(CC) | 48 | LD = $(CC) |
49 | RM = rm -f | 49 | RM = rm -f |
50 | CFLAGS = -O -Wall $(INCS) $(MINGW_CCFLAGS) | 50 | CFLAGS = -O -Wall $(INCS) $(MINGW_CCFLAGS) |
51 | # [note that -Wall is a gcc-specific compilation flag ("most warnings on")] | 51 | # [note that -Wall is a gcc-specific compilation flag ("most warnings on")] |
52 | # [-ansi, -pedantic and -W can also be used] | 52 | # [-ansi, -pedantic and -W can also be used] |
53 | LDFLAGS = $(MINGW_LDFLAGS) | 53 | LDFLAGS = $(MINGW_LDFLAGS) |
54 | O = .o | 54 | O = .o |
55 | E = .exe | 55 | E = .exe |
56 | 56 | ||
57 | INCS = $(PNGINC) $(ZINC) $(W32INC) | 57 | INCS = $(PNGINC) $(ZINC) $(W32INC) |
58 | RLIBSd = $(PNGLIBd) $(ZLIBd) $(W32LIB) -lm | 58 | RLIBSd = $(PNGLIBd) $(ZLIBd) $(W32LIB) -lm |
59 | RLIBSs = $(PNGLIBs) $(ZLIBs) $(W32LIB) -lm | 59 | RLIBSs = $(PNGLIBs) $(ZLIBs) $(W32LIB) -lm |
60 | WLIBSd = $(PNGLIBd) $(ZLIBd) | 60 | WLIBSd = $(PNGLIBd) $(ZLIBd) |
61 | WLIBSs = $(PNGLIBs) $(ZLIBs) | 61 | WLIBSs = $(PNGLIBs) $(ZLIBs) |
62 | 62 | ||
63 | RPNG = rpng-win | 63 | RPNG = rpng-win |
64 | RPNG2 = rpng2-win | 64 | RPNG2 = rpng2-win |
65 | WPNG = wpng | 65 | WPNG = wpng |
66 | 66 | ||
67 | ROBJSd = $(RPNG)$(O) readpng.pic$(O) | 67 | ROBJSd = $(RPNG)$(O) readpng.pic$(O) |
68 | ROBJS2d = $(RPNG2)$(O) readpng2.pic$(O) | 68 | ROBJS2d = $(RPNG2)$(O) readpng2.pic$(O) |
69 | WOBJSd = $(WPNG)$(O) writepng.pic$(O) | 69 | WOBJSd = $(WPNG)$(O) writepng.pic$(O) |
70 | 70 | ||
71 | RPNGs = $(RPNG)-static | 71 | RPNGs = $(RPNG)-static |
72 | RPNG2s = $(RPNG2)-static | 72 | RPNG2s = $(RPNG2)-static |
73 | WPNGs = $(WPNG)-static | 73 | WPNGs = $(WPNG)-static |
74 | 74 | ||
75 | ROBJSs = $(RPNG)$(O) readpng$(O) | 75 | ROBJSs = $(RPNG)$(O) readpng$(O) |
76 | ROBJS2s = $(RPNG2)$(O) readpng2$(O) | 76 | ROBJS2s = $(RPNG2)$(O) readpng2$(O) |
77 | WOBJSs = $(WPNG)$(O) writepng$(O) | 77 | WOBJSs = $(WPNG)$(O) writepng$(O) |
78 | 78 | ||
79 | STATIC_EXES = $(RPNGs)$(E) $(RPNG2s)$(E) $(WPNGs)$(E) | 79 | STATIC_EXES = $(RPNGs)$(E) $(RPNG2s)$(E) $(WPNGs)$(E) |
80 | DYNAMIC_EXES = $(RPNG)$(E) $(RPNG2)$(E) $(WPNG)$(E) | 80 | DYNAMIC_EXES = $(RPNG)$(E) $(RPNG2)$(E) $(WPNG)$(E) |
81 | 81 | ||
82 | EXES = $(STATIC_EXES) $(DYNAMIC_EXES) | 82 | EXES = $(STATIC_EXES) $(DYNAMIC_EXES) |
83 | 83 | ||
84 | 84 | ||
85 | # implicit make rules ------------------------------------------------------- | 85 | # implicit make rules ------------------------------------------------------- |
86 | 86 | ||
87 | .c$(O): | 87 | .c$(O): |
88 | $(CC) -c $(CFLAGS) $< | 88 | $(CC) -c $(CFLAGS) $< |
89 | 89 | ||
90 | %.pic$(O): %.c | 90 | %.pic$(O): %.c |
91 | $(CC) -c $(CFLAGS) -DPNG_BUILD_DLL -o $@ $< | 91 | $(CC) -c $(CFLAGS) -DPNG_BUILD_DLL -o $@ $< |
92 | 92 | ||
93 | 93 | ||
94 | # dependencies -------------------------------------------------------------- | 94 | # dependencies -------------------------------------------------------------- |
95 | 95 | ||
96 | all: $(EXES) | 96 | all: $(EXES) |
97 | 97 | ||
98 | $(RPNGs)$(E): $(ROBJSs) | 98 | $(RPNGs)$(E): $(ROBJSs) |
99 | $(LD) $(LDFLAGS) -o $@ $(ROBJSs) $(RLIBSs) | 99 | $(LD) $(LDFLAGS) -o $@ $(ROBJSs) $(RLIBSs) |
100 | 100 | ||
101 | $(RPNG)$(E): $(ROBJSd) | 101 | $(RPNG)$(E): $(ROBJSd) |
102 | $(LD) $(LDFLAGS) -o $@ $(ROBJSd) $(RLIBSd) | 102 | $(LD) $(LDFLAGS) -o $@ $(ROBJSd) $(RLIBSd) |
103 | 103 | ||
104 | $(RPNG2s)$(E): $(ROBJS2s) | 104 | $(RPNG2s)$(E): $(ROBJS2s) |
105 | $(LD) $(LDFLAGS) -o $@ $(ROBJS2s) $(RLIBSs) | 105 | $(LD) $(LDFLAGS) -o $@ $(ROBJS2s) $(RLIBSs) |
106 | 106 | ||
107 | $(RPNG2)$(E): $(ROBJS2d) | 107 | $(RPNG2)$(E): $(ROBJS2d) |
108 | $(LD) $(LDFLAGS) -o $@ $(ROBJS2d) $(RLIBSd) | 108 | $(LD) $(LDFLAGS) -o $@ $(ROBJS2d) $(RLIBSd) |
109 | 109 | ||
110 | $(WPNGs)$(E): $(WOBJSs) | 110 | $(WPNGs)$(E): $(WOBJSs) |
111 | $(LD) $(LDFLAGS) -o $@ $(WOBJSs) $(WLIBSs) | 111 | $(LD) $(LDFLAGS) -o $@ $(WOBJSs) $(WLIBSs) |
112 | 112 | ||
113 | $(WPNG)$(E): $(WOBJSd) | 113 | $(WPNG)$(E): $(WOBJSd) |
114 | $(LD) $(LDFLAGS) -o $@ $(WOBJSd) $(WLIBSd) | 114 | $(LD) $(LDFLAGS) -o $@ $(WOBJSd) $(WLIBSd) |
115 | 115 | ||
116 | $(RPNG)$(O): $(RPNG).c readpng.h | 116 | $(RPNG)$(O): $(RPNG).c readpng.h |
117 | $(RPNG2)$(O): $(RPNG2).c readpng2.h | 117 | $(RPNG2)$(O): $(RPNG2).c readpng2.h |
118 | $(WPNG)$(O): $(WPNG).c writepng.h | 118 | $(WPNG)$(O): $(WPNG).c writepng.h |
119 | 119 | ||
120 | readpng$(O) readpng.pic$(O): readpng.c readpng.h | 120 | readpng$(O) readpng.pic$(O): readpng.c readpng.h |
121 | readpng2$(O) readpng2.pic$(O): readpng2.c readpng2.h | 121 | readpng2$(O) readpng2.pic$(O): readpng2.c readpng2.h |
122 | writepng$(O) writepng.pic$(O): writepng.c writepng.h | 122 | writepng$(O) writepng.pic$(O): writepng.c writepng.h |
123 | 123 | ||
124 | 124 | ||
125 | # maintenance --------------------------------------------------------------- | 125 | # maintenance --------------------------------------------------------------- |
126 | 126 | ||
127 | clean: | 127 | clean: |
128 | $(RM) $(EXES) | 128 | $(RM) $(EXES) |
129 | $(RM) $(ROBJSs) $(ROBJS2s) $(WOBJSs) | 129 | $(RM) $(ROBJSs) $(ROBJS2s) $(WOBJSs) |
130 | $(RM) $(ROBJSd) $(ROBJS2d) $(WOBJSd) | 130 | $(RM) $(ROBJSd) $(ROBJS2d) $(WOBJSd) |