]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.intel
Add missing WXK constants for the control keys
[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
9c0d9ce3
DS
47# see scripts/pnglibconf.mak for more options
48pnglibconf.h: scripts/pnglibconf.h.prebuilt
49 cp scripts/pnglibconf.h.prebuilt $@
50
51png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
52 $(CC) $(CFLAGS) $*.c $(ERRFILE)
53
9c0d9ce3 54pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
55 $(CC) $(CFLAGS) $*.c $(ERRFILE)
56
9c0d9ce3 57pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
58 $(CC) $(CFLAGS) $*.c $(ERRFILE)
59
9c0d9ce3 60pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
61 $(CC) $(CFLAGS) $*.c $(ERRFILE)
62
9c0d9ce3 63pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
64 $(CC) $(CFLAGS) $*.c $(ERRFILE)
65
9c0d9ce3 66pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
67 $(CC) $(CFLAGS) $*.c $(ERRFILE)
68
9c0d9ce3 69pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
70 $(CC) $(CFLAGS) $*.c $(ERRFILE)
71
9c0d9ce3 72pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
73 $(CC) $(CFLAGS) $*.c $(ERRFILE)
74
9c0d9ce3 75pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
76 $(CC) $(CFLAGS) $*.c $(ERRFILE)
77
9c0d9ce3 78pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
79 $(CC) $(CFLAGS) $*.c $(ERRFILE)
80
9c0d9ce3 81pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
82 $(CC) $(CFLAGS) $*.c $(ERRFILE)
83
9c0d9ce3 84pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
85 $(CC) $(CFLAGS) $*.c $(ERRFILE)
86
9c0d9ce3 87pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
88 $(CC) $(CFLAGS) $*.c $(ERRFILE)
89
9c0d9ce3 90pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
91 $(CC) $(CFLAGS) $*.c $(ERRFILE)
92
9c0d9ce3 93pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
0272a10d
VZ
94 $(CC) $(CFLAGS) $*.c $(ERRFILE)
95
96libpng.lib: $(OBJS)
97 if exist libpng.lib del libpng.lib
98 lib /NOLOGO /OUT:libpng.lib $(OBJS)
99
100pngtest.exe: pngtest.obj libpng.lib
101 $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
102
9c0d9ce3 103pngtest$(O): png.h pngconf.h pnglibconf.h
b61cc19c
PC
104 $(CC) $(CFLAGS) $*.c $(ERRFILE)
105
0272a10d
VZ
106test: pngtest.exe
107 pngtest.exe
108
109
110# End of makefile for libpng