]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.intel
add wxMBConvStrictUTF8 class implementing just UTF-8 conversion, without support...
[wxWidgets.git] / src / png / scripts / makefile.intel
1 # Makefile for libpng
2 # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
3
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
7
8 # To use, do "nmake /f scripts\makefile.intel"
9
10
11 # ------------------- Intel C/C++ Compiler 4.0 and later -------------------
12
13 # Caution: the assembler code was introduced at libpng version 1.0.4 and has
14 # not yet been thoroughly tested.
15
16 # Use assembler code
17 ASMCODE=-DPNG_USE_PNGVCRD
18
19 # Where the zlib library and include files are located
20 ZLIBLIB=..\zlib
21 ZLIBINC=..\zlib
22
23 # Target CPU
24 CPU=6 # Pentium II
25 #CPU=5 # Pentium
26
27 # Calling convention
28 CALLING=r # __fastcall
29 #CALLING=z # __stdcall
30 #CALLING=d # __cdecl
31
32 # Uncomment next to put error messages in a file
33 #ERRFILE=>>pngerrs
34
35 # --------------------------------------------------------------------------
36
37
38 CC=icl -c
39 CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) $(ASMCODE) -nologo
40 LD=link
41 LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
42
43 O=.obj
44
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)
48
49
50 all: test
51
52 png$(O): png.h pngconf.h
53 $(CC) $(CFLAGS) $*.c $(ERRFILE)
54
55 pngset$(O): png.h pngconf.h
56 $(CC) $(CFLAGS) $*.c $(ERRFILE)
57
58 pngget$(O): png.h pngconf.h
59 $(CC) $(CFLAGS) $*.c $(ERRFILE)
60
61 pngread$(O): png.h pngconf.h
62 $(CC) $(CFLAGS) $*.c $(ERRFILE)
63
64 pngpread$(O): png.h pngconf.h
65 $(CC) $(CFLAGS) $*.c $(ERRFILE)
66
67 pngrtran$(O): png.h pngconf.h
68 $(CC) $(CFLAGS) $*.c $(ERRFILE)
69
70 pngrutil$(O): png.h pngconf.h
71 $(CC) $(CFLAGS) $*.c $(ERRFILE)
72
73 pngvcrd$(O): png.h pngconf.h
74 $(CC) $(CFLAGS) $*.c $(ERRFILE)
75
76 pngerror$(O): png.h pngconf.h
77 $(CC) $(CFLAGS) $*.c $(ERRFILE)
78
79 pngmem$(O): png.h pngconf.h
80 $(CC) $(CFLAGS) $*.c $(ERRFILE)
81
82 pngrio$(O): png.h pngconf.h
83 $(CC) $(CFLAGS) $*.c $(ERRFILE)
84
85 pngwio$(O): png.h pngconf.h
86 $(CC) $(CFLAGS) $*.c $(ERRFILE)
87
88 pngtest$(O): png.h pngconf.h
89 $(CC) $(CFLAGS) $*.c $(ERRFILE)
90
91 pngtrans$(O): png.h pngconf.h
92 $(CC) $(CFLAGS) $*.c $(ERRFILE)
93
94 pngwrite$(O): png.h pngconf.h
95 $(CC) $(CFLAGS) $*.c $(ERRFILE)
96
97 pngwtran$(O): png.h pngconf.h
98 $(CC) $(CFLAGS) $*.c $(ERRFILE)
99
100 pngwutil$(O): png.h pngconf.h
101 $(CC) $(CFLAGS) $*.c $(ERRFILE)
102
103 libpng.lib: $(OBJS)
104 if exist libpng.lib del libpng.lib
105 lib /NOLOGO /OUT:libpng.lib $(OBJS)
106
107 pngtest.exe: pngtest.obj libpng.lib
108 $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
109
110 test: pngtest.exe
111 pngtest.exe
112
113
114 # End of makefile for libpng