2 # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later |
2 # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later |
3 |
3 |
4 # Copyright (C) 2006 Glenn Randers-Pehrson |
4 # Copyright (C) 2006 Glenn Randers-Pehrson |
5 # Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is |
5 # Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is |
6 # copyright 1995 Guy Eric Schalnat, Group 42, Inc. |
6 # copyright 1995 Guy Eric Schalnat, Group 42, Inc. |
7 |
7 # |
8 # This code is released under the libpng license. |
8 # This code is released under the libpng license. |
9 # For conditions of distribution and use, see the disclaimer |
9 # For conditions of distribution and use, see the disclaimer |
10 # and license in png.h |
10 # and license in png.h |
11 |
11 # |
12 # To use, do "nmake /f scripts\makefile.intel" |
12 # To use, do "nmake /f scripts\makefile.intel" |
13 |
13 # |
14 # ------------------- Intel C/C++ Compiler 4.0 and later ------------------- |
14 # ------------------- Intel C/C++ Compiler 4.0 and later ------------------- |
15 |
15 |
16 # Where the zlib library and include files are located |
16 # Where the zlib library and include files are located |
17 ZLIBLIB=..\zlib |
17 ZLIBLIB=..\zlib |
18 ZLIBINC=..\zlib |
18 ZLIBINC=..\zlib |
42 pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \ |
42 pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \ |
43 pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) |
43 pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) |
44 |
44 |
45 all: test |
45 all: test |
46 |
46 |
47 png$(O): png.h pngconf.h |
47 png$(O): png.h pngconf.h pngpriv.h |
48 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
48 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
49 |
49 |
50 pngset$(O): png.h pngconf.h |
50 pngset$(O): png.h pngconf.h pngpriv.h |
51 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
51 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
52 |
52 |
53 pngget$(O): png.h pngconf.h |
53 pngget$(O): png.h pngconf.h pngpriv.h |
54 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
54 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
55 |
55 |
56 pngread$(O): png.h pngconf.h |
56 pngread$(O): png.h pngconf.h pngpriv.h |
57 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
57 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
58 |
58 |
59 pngpread$(O): png.h pngconf.h |
59 pngpread$(O): png.h pngconf.h pngpriv.h |
60 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
60 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
61 |
61 |
62 pngrtran$(O): png.h pngconf.h |
62 pngrtran$(O): png.h pngconf.h pngpriv.h |
63 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
63 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
64 |
64 |
65 pngrutil$(O): png.h pngconf.h |
65 pngrutil$(O): png.h pngconf.h pngpriv.h |
66 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
66 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
67 |
67 |
68 pngerror$(O): png.h pngconf.h |
68 pngerror$(O): png.h pngconf.h pngpriv.h |
69 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
69 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
70 |
70 |
71 pngmem$(O): png.h pngconf.h |
71 pngmem$(O): png.h pngconf.h pngpriv.h |
72 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
72 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
73 |
73 |
74 pngrio$(O): png.h pngconf.h |
74 pngrio$(O): png.h pngconf.h pngpriv.h |
75 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
75 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
76 |
76 |
77 pngwio$(O): png.h pngconf.h |
77 pngwio$(O): png.h pngconf.h pngpriv.h |
78 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
78 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
79 |
79 |
80 pngtrans$(O): png.h pngconf.h |
80 pngtrans$(O): png.h pngconf.h pngpriv.h |
81 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
81 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
82 |
82 |
83 pngwrite$(O): png.h pngconf.h |
83 pngwrite$(O): png.h pngconf.h pngpriv.h |
84 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
84 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
85 |
85 |
86 pngwtran$(O): png.h pngconf.h |
86 pngwtran$(O): png.h pngconf.h pngpriv.h |
87 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
87 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
88 |
88 |
89 pngwutil$(O): png.h pngconf.h |
89 pngwutil$(O): png.h pngconf.h pngpriv.h |
90 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
90 $(CC) $(CFLAGS) $*.c $(ERRFILE) |
91 |
91 |
92 libpng.lib: $(OBJS) |
92 libpng.lib: $(OBJS) |
93 if exist libpng.lib del libpng.lib |
93 if exist libpng.lib del libpng.lib |
94 lib /NOLOGO /OUT:libpng.lib $(OBJS) |
94 lib /NOLOGO /OUT:libpng.lib $(OBJS) |