]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.intel
rtti api mods added
[wxWidgets.git] / src / png / scripts / makefile.intel
CommitLineData
c6b71bff
GD
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
17ASMCODE=-DPNG_USE_PNGVCRD
18
19# Where the zlib library and include files are located
20ZLIBLIB=..\zlib
21ZLIBINC=..\zlib
22
23# Target CPU
24CPU=6 # Pentium II
25#CPU=5 # Pentium
26
27# Calling convention
28CALLING=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
38CC=icl -c
39CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) $(ASMCODE) -nologo
40LD=link
41LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
42
43O=.obj
44
45OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
46pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
47pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
48
49
50all: test
51
52png$(O): png.h pngconf.h
53 $(CC) $(CFLAGS) $*.c $(ERRFILE)
54
55pngset$(O): png.h pngconf.h
56 $(CC) $(CFLAGS) $*.c $(ERRFILE)
57
58pngget$(O): png.h pngconf.h
59 $(CC) $(CFLAGS) $*.c $(ERRFILE)
60
61pngread$(O): png.h pngconf.h
62 $(CC) $(CFLAGS) $*.c $(ERRFILE)
63
64pngpread$(O): png.h pngconf.h
65 $(CC) $(CFLAGS) $*.c $(ERRFILE)
66
67pngrtran$(O): png.h pngconf.h
68 $(CC) $(CFLAGS) $*.c $(ERRFILE)
69
70pngrutil$(O): png.h pngconf.h
71 $(CC) $(CFLAGS) $*.c $(ERRFILE)
72
73pngvcrd$(O): png.h pngconf.h
74 $(CC) $(CFLAGS) $*.c $(ERRFILE)
75
76pngerror$(O): png.h pngconf.h
77 $(CC) $(CFLAGS) $*.c $(ERRFILE)
78
79pngmem$(O): png.h pngconf.h
80 $(CC) $(CFLAGS) $*.c $(ERRFILE)
81
82pngrio$(O): png.h pngconf.h
83 $(CC) $(CFLAGS) $*.c $(ERRFILE)
84
85pngwio$(O): png.h pngconf.h
86 $(CC) $(CFLAGS) $*.c $(ERRFILE)
87
88pngtest$(O): png.h pngconf.h
89 $(CC) $(CFLAGS) $*.c $(ERRFILE)
90
91pngtrans$(O): png.h pngconf.h
92 $(CC) $(CFLAGS) $*.c $(ERRFILE)
93
94pngwrite$(O): png.h pngconf.h
95 $(CC) $(CFLAGS) $*.c $(ERRFILE)
96
97pngwtran$(O): png.h pngconf.h
98 $(CC) $(CFLAGS) $*.c $(ERRFILE)
99
100pngwutil$(O): png.h pngconf.h
101 $(CC) $(CFLAGS) $*.c $(ERRFILE)
102
103libpng.lib: $(OBJS)
104 if exist libpng.lib del libpng.lib
105 lib /NOLOGO /OUT:libpng.lib $(OBJS)
106
107pngtest.exe: pngtest.obj libpng.lib
108 $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
109
110test: pngtest.exe
111 pngtest.exe
112
113
114# End of makefile for libpng