diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.vcwin32')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.vcwin32 | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.vcwin32 b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.vcwin32 new file mode 100644 index 0000000..bdcc508 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/scripts/makefile.vcwin32 | |||
@@ -0,0 +1,108 @@ | |||
1 | # makefile for libpng | ||
2 | # Copyright (C) 1998 Tim Wegner | ||
3 | # Copyright (C) 2006,2009,2011 Glenn Randers-Pehrson | ||
4 | # | ||
5 | # This code is released under the libpng license. | ||
6 | # For conditions of distribution and use, see the disclaimer | ||
7 | # and license in png.h | ||
8 | # | ||
9 | # Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib | ||
10 | # To use, do "nmake /f scripts\makefile.vcwin32" | ||
11 | |||
12 | # -------- Microsoft Visual C++ 2.0 and later, no assembler code -------- | ||
13 | |||
14 | # Compiler, linker, librarian, and other tools | ||
15 | CC = cl | ||
16 | LD = link | ||
17 | AR = lib | ||
18 | CFLAGS = -nologo -D_CRT_SECURE_NO_DEPRECATE -MD -O2 -W3 -I..\zlib | ||
19 | LDFLAGS = -nologo | ||
20 | ARFLAGS = -nologo | ||
21 | RM = del | ||
22 | |||
23 | # File extensions | ||
24 | O=.obj | ||
25 | |||
26 | #uncomment next to put error messages in a file | ||
27 | #ERRFILE= >> pngerrs.log | ||
28 | |||
29 | # Variables | ||
30 | OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) | ||
31 | OBJS2 = pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) | ||
32 | OBJS3 = pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O) | ||
33 | OBJS = $(OBJS1) $(OBJS2) $(OBJS3) | ||
34 | |||
35 | # Targets | ||
36 | all: libpng.lib | ||
37 | |||
38 | # see scripts/pnglibconf.mak for more options | ||
39 | pnglibconf.h: scripts\pnglibconf.h.prebuilt | ||
40 | copy scripts\pnglibconf.h.prebuilt $@ | ||
41 | |||
42 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
43 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
44 | |||
45 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
46 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
47 | |||
48 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
49 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
50 | |||
51 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
52 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
53 | |||
54 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
55 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
56 | |||
57 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
58 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
59 | |||
60 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
61 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
62 | |||
63 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
64 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
65 | |||
66 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
67 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
68 | |||
69 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
70 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
71 | |||
72 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
73 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
74 | |||
75 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
76 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
77 | |||
78 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
79 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
80 | |||
81 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
82 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
83 | |||
84 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | ||
85 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
86 | |||
87 | libpng.lib: $(OBJS) | ||
88 | -$(RM) $@ | ||
89 | $(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE) | ||
90 | |||
91 | pngtest$(O): png.h pngconf.h pnglibconf.h | ||
92 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | ||
93 | |||
94 | pngtest.exe: pngtest$(O) libpng.lib | ||
95 | $(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE) | ||
96 | |||
97 | test: pngtest.exe | ||
98 | pngtest | ||
99 | |||
100 | clean: | ||
101 | -$(RM) *$(O) | ||
102 | -$(RM) libpng.lib | ||
103 | -$(RM) pnglibconf.h | ||
104 | -$(RM) pngtest.exe | ||
105 | -$(RM) pngout.png | ||
106 | |||
107 | # End of makefile for libpng | ||
108 | |||