]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.intel
fixing utf32 native conversion
[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 # Where the zlib library and include files are located
12 ZLIBLIB=..\zlib
13 ZLIBINC=..\zlib
14
15 # Target CPU
16 CPU=6 # Pentium II
17 #CPU=5 # Pentium
18
19 # Calling convention
20 CALLING=r # __fastcall
21 #CALLING=z # __stdcall
22 #CALLING=d # __cdecl
23
24 # Uncomment next to put error messages in a file
25 #ERRFILE=>>pngerrs
26
27 # --------------------------------------------------------------------------
28
29
30 CC=icl -c
31 CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo
32 LD=link
33 LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
34
35 O=.obj
36
37 OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
38 pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
39 pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
40
41 all: test
42
43 png$(O): png.h pngconf.h
44 $(CC) $(CFLAGS) $*.c $(ERRFILE)
45
46 pngset$(O): png.h pngconf.h
47 $(CC) $(CFLAGS) $*.c $(ERRFILE)
48
49 pngget$(O): png.h pngconf.h
50 $(CC) $(CFLAGS) $*.c $(ERRFILE)
51
52 pngread$(O): png.h pngconf.h
53 $(CC) $(CFLAGS) $*.c $(ERRFILE)
54
55 pngpread$(O): png.h pngconf.h
56 $(CC) $(CFLAGS) $*.c $(ERRFILE)
57
58 pngrtran$(O): png.h pngconf.h
59 $(CC) $(CFLAGS) $*.c $(ERRFILE)
60
61 pngrutil$(O): png.h pngconf.h
62 $(CC) $(CFLAGS) $*.c $(ERRFILE)
63
64 pngerror$(O): png.h pngconf.h
65 $(CC) $(CFLAGS) $*.c $(ERRFILE)
66
67 pngmem$(O): png.h pngconf.h
68 $(CC) $(CFLAGS) $*.c $(ERRFILE)
69
70 pngrio$(O): png.h pngconf.h
71 $(CC) $(CFLAGS) $*.c $(ERRFILE)
72
73 pngwio$(O): png.h pngconf.h
74 $(CC) $(CFLAGS) $*.c $(ERRFILE)
75
76 pngtest$(O): png.h pngconf.h
77 $(CC) $(CFLAGS) $*.c $(ERRFILE)
78
79 pngtrans$(O): png.h pngconf.h
80 $(CC) $(CFLAGS) $*.c $(ERRFILE)
81
82 pngwrite$(O): png.h pngconf.h
83 $(CC) $(CFLAGS) $*.c $(ERRFILE)
84
85 pngwtran$(O): png.h pngconf.h
86 $(CC) $(CFLAGS) $*.c $(ERRFILE)
87
88 pngwutil$(O): png.h pngconf.h
89 $(CC) $(CFLAGS) $*.c $(ERRFILE)
90
91 libpng.lib: $(OBJS)
92 if exist libpng.lib del libpng.lib
93 lib /NOLOGO /OUT:libpng.lib $(OBJS)
94
95 pngtest.exe: pngtest.obj libpng.lib
96 $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
97
98 test: pngtest.exe
99 pngtest.exe
100
101
102 # End of makefile for libpng