]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.intel
Rework the GTK WebKit backend history to remove the need for the map between wxWebHis...
[wxWidgets.git] / src / png / scripts / makefile.intel
CommitLineData
0272a10d
VZ
1# Makefile for libpng
2# Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
3
b61cc19c 4# Copyright (C) 2006 Glenn Randers-Pehrson
0272a10d
VZ
5# Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
6# copyright 1995 Guy Eric Schalnat, Group 42, Inc.
b61cc19c
PC
7#
8# This code is released under the libpng license.
9# For conditions of distribution and use, see the disclaimer
10# and license in png.h
11#
0272a10d 12# To use, do "nmake /f scripts\makefile.intel"
b61cc19c
PC
13#
14# ------------------- Intel C/C++ Compiler 4.0 and later -------------------
0272a10d
VZ
15
16# Where the zlib library and include files are located
17ZLIBLIB=..\zlib
18ZLIBINC=..\zlib
19
20# Target CPU
21CPU=6 # Pentium II
22#CPU=5 # Pentium
23
24# Calling convention
25CALLING=r # __fastcall
26#CALLING=z # __stdcall
27#CALLING=d # __cdecl
28
29# Uncomment next to put error messages in a file
30#ERRFILE=>>pngerrs
31
32# --------------------------------------------------------------------------
33
0272a10d
VZ
34CC=icl -c
35CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo
36LD=link
37LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
38
39O=.obj
40
41OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
42pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
43pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
44
45all: test
46
b61cc19c 47png$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
48 $(CC) $(CFLAGS) $*.c $(ERRFILE)
49
b61cc19c 50pngset$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
51 $(CC) $(CFLAGS) $*.c $(ERRFILE)
52
b61cc19c 53pngget$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
54 $(CC) $(CFLAGS) $*.c $(ERRFILE)
55
b61cc19c 56pngread$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
57 $(CC) $(CFLAGS) $*.c $(ERRFILE)
58
b61cc19c 59pngpread$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
60 $(CC) $(CFLAGS) $*.c $(ERRFILE)
61
b61cc19c 62pngrtran$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
63 $(CC) $(CFLAGS) $*.c $(ERRFILE)
64
b61cc19c 65pngrutil$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
66 $(CC) $(CFLAGS) $*.c $(ERRFILE)
67
b61cc19c 68pngerror$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
69 $(CC) $(CFLAGS) $*.c $(ERRFILE)
70
b61cc19c 71pngmem$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
72 $(CC) $(CFLAGS) $*.c $(ERRFILE)
73
b61cc19c 74pngrio$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
75 $(CC) $(CFLAGS) $*.c $(ERRFILE)
76
b61cc19c 77pngwio$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
78 $(CC) $(CFLAGS) $*.c $(ERRFILE)
79
b61cc19c 80pngtrans$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
81 $(CC) $(CFLAGS) $*.c $(ERRFILE)
82
b61cc19c 83pngwrite$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
84 $(CC) $(CFLAGS) $*.c $(ERRFILE)
85
b61cc19c 86pngwtran$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
87 $(CC) $(CFLAGS) $*.c $(ERRFILE)
88
b61cc19c 89pngwutil$(O): png.h pngconf.h pngpriv.h
0272a10d
VZ
90 $(CC) $(CFLAGS) $*.c $(ERRFILE)
91
92libpng.lib: $(OBJS)
93 if exist libpng.lib del libpng.lib
94 lib /NOLOGO /OUT:libpng.lib $(OBJS)
95
96pngtest.exe: pngtest.obj libpng.lib
97 $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
98
b61cc19c
PC
99pngtest$(O): png.h pngconf.h
100 $(CC) $(CFLAGS) $*.c $(ERRFILE)
101
0272a10d
VZ
102test: pngtest.exe
103 pngtest.exe
104
105
106# End of makefile for libpng