2 # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
4 # Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
5 # copyright 1995 Guy Eric Schalnat, Group 42, Inc.
6 # For conditions of distribution and use, see copyright notice in png.h
8 # To use, do "nmake /f scripts\makefile.intel"
11 # ------------------- Intel C/C++ Compiler 4.0 and later -------------------
13 # Caution: the assembler code was introduced at libpng version 1.0.4 and has
14 # not yet been thoroughly tested.
17 ASMCODE=-DPNG_USE_PNGVCRD
19 # Where the zlib library and include files are located
28 CALLING=r # __fastcall
29 #CALLING=z # __stdcall
32 # Uncomment next to put error messages in a file
35 # --------------------------------------------------------------------------
39 CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) $(ASMCODE) -nologo
41 LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
45 OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
46 pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
47 pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
52 png$(O): png.h pngconf.h
53 $(CC) $(CFLAGS) $*.c $(ERRFILE)
55 pngset$(O): png.h pngconf.h
56 $(CC) $(CFLAGS) $*.c $(ERRFILE)
58 pngget$(O): png.h pngconf.h
59 $(CC) $(CFLAGS) $*.c $(ERRFILE)
61 pngread$(O): png.h pngconf.h
62 $(CC) $(CFLAGS) $*.c $(ERRFILE)
64 pngpread$(O): png.h pngconf.h
65 $(CC) $(CFLAGS) $*.c $(ERRFILE)
67 pngrtran$(O): png.h pngconf.h
68 $(CC) $(CFLAGS) $*.c $(ERRFILE)
70 pngrutil$(O): png.h pngconf.h
71 $(CC) $(CFLAGS) $*.c $(ERRFILE)
73 pngvcrd$(O): png.h pngconf.h
74 $(CC) $(CFLAGS) $*.c $(ERRFILE)
76 pngerror$(O): png.h pngconf.h
77 $(CC) $(CFLAGS) $*.c $(ERRFILE)
79 pngmem$(O): png.h pngconf.h
80 $(CC) $(CFLAGS) $*.c $(ERRFILE)
82 pngrio$(O): png.h pngconf.h
83 $(CC) $(CFLAGS) $*.c $(ERRFILE)
85 pngwio$(O): png.h pngconf.h
86 $(CC) $(CFLAGS) $*.c $(ERRFILE)
88 pngtest$(O): png.h pngconf.h
89 $(CC) $(CFLAGS) $*.c $(ERRFILE)
91 pngtrans$(O): png.h pngconf.h
92 $(CC) $(CFLAGS) $*.c $(ERRFILE)
94 pngwrite$(O): png.h pngconf.h
95 $(CC) $(CFLAGS) $*.c $(ERRFILE)
97 pngwtran$(O): png.h pngconf.h
98 $(CC) $(CFLAGS) $*.c $(ERRFILE)
100 pngwutil$(O): png.h pngconf.h
101 $(CC) $(CFLAGS) $*.c $(ERRFILE)
104 if exist libpng.lib del libpng.lib
105 lib /NOLOGO /OUT:libpng.lib $(OBJS)
107 pngtest.exe: pngtest.obj libpng.lib
108 $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
114 # End of makefile for libpng