]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/scripts/makefile.intel
Revised #ifndef WX_PRECOMP headers, added missing #include wx/wxcrtvararg.h
[wxWidgets.git] / src / png / scripts / makefile.intel
... / ...
CommitLineData
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
12ZLIBLIB=..\zlib
13ZLIBINC=..\zlib
14
15# Target CPU
16CPU=6 # Pentium II
17#CPU=5 # Pentium
18
19# Calling convention
20CALLING=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
30CC=icl -c
31CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo
32LD=link
33LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
34
35O=.obj
36
37OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
38pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
39pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
40
41all: test
42
43png$(O): png.h pngconf.h
44 $(CC) $(CFLAGS) $*.c $(ERRFILE)
45
46pngset$(O): png.h pngconf.h
47 $(CC) $(CFLAGS) $*.c $(ERRFILE)
48
49pngget$(O): png.h pngconf.h
50 $(CC) $(CFLAGS) $*.c $(ERRFILE)
51
52pngread$(O): png.h pngconf.h
53 $(CC) $(CFLAGS) $*.c $(ERRFILE)
54
55pngpread$(O): png.h pngconf.h
56 $(CC) $(CFLAGS) $*.c $(ERRFILE)
57
58pngrtran$(O): png.h pngconf.h
59 $(CC) $(CFLAGS) $*.c $(ERRFILE)
60
61pngrutil$(O): png.h pngconf.h
62 $(CC) $(CFLAGS) $*.c $(ERRFILE)
63
64pngerror$(O): png.h pngconf.h
65 $(CC) $(CFLAGS) $*.c $(ERRFILE)
66
67pngmem$(O): png.h pngconf.h
68 $(CC) $(CFLAGS) $*.c $(ERRFILE)
69
70pngrio$(O): png.h pngconf.h
71 $(CC) $(CFLAGS) $*.c $(ERRFILE)
72
73pngwio$(O): png.h pngconf.h
74 $(CC) $(CFLAGS) $*.c $(ERRFILE)
75
76pngtest$(O): png.h pngconf.h
77 $(CC) $(CFLAGS) $*.c $(ERRFILE)
78
79pngtrans$(O): png.h pngconf.h
80 $(CC) $(CFLAGS) $*.c $(ERRFILE)
81
82pngwrite$(O): png.h pngconf.h
83 $(CC) $(CFLAGS) $*.c $(ERRFILE)
84
85pngwtran$(O): png.h pngconf.h
86 $(CC) $(CFLAGS) $*.c $(ERRFILE)
87
88pngwutil$(O): png.h pngconf.h
89 $(CC) $(CFLAGS) $*.c $(ERRFILE)
90
91libpng.lib: $(OBJS)
92 if exist libpng.lib del libpng.lib
93 lib /NOLOGO /OUT:libpng.lib $(OBJS)
94
95pngtest.exe: pngtest.obj libpng.lib
96 $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
97
98test: pngtest.exe
99 pngtest.exe
100
101
102# End of makefile for libpng