author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 10:37:55 +0300 | |
changeset 33 | 3e2da88830cd |
parent 30 | 5dc02b23752f |
permissions | -rw-r--r-- |
0 | 1 |
# Makefile for libpng |
2 |
# Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later |
|
3 |
||
4 |
# Copyright (C) 2006 Glenn Randers-Pehrson |
|
5 |
# Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is |
|
6 |
# copyright 1995 Guy Eric Schalnat, Group 42, Inc. |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
7 |
# |
0 | 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 |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
11 |
# |
0 | 12 |
# To use, do "nmake /f scripts\makefile.intel" |
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
13 |
# |
0 | 14 |
# ------------------- Intel C/C++ Compiler 4.0 and later ------------------- |
15 |
||
16 |
# Where the zlib library and include files are located |
|
17 |
ZLIBLIB=..\zlib |
|
18 |
ZLIBINC=..\zlib |
|
19 |
||
20 |
# Target CPU |
|
21 |
CPU=6 # Pentium II |
|
22 |
#CPU=5 # Pentium |
|
23 |
||
24 |
# Calling convention |
|
25 |
CALLING=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 |
||
34 |
CC=icl -c |
|
35 |
CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo |
|
36 |
LD=link |
|
37 |
LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO |
|
38 |
||
39 |
O=.obj |
|
40 |
||
41 |
OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \ |
|
42 |
pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \ |
|
43 |
pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) |
|
44 |
||
45 |
all: test |
|
46 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
47 |
png$(O): png.h pngconf.h pngpriv.h |
0 | 48 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
49 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
50 |
pngset$(O): png.h pngconf.h pngpriv.h |
0 | 51 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
52 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
53 |
pngget$(O): png.h pngconf.h pngpriv.h |
0 | 54 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
55 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
56 |
pngread$(O): png.h pngconf.h pngpriv.h |
0 | 57 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
58 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
59 |
pngpread$(O): png.h pngconf.h pngpriv.h |
0 | 60 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
61 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
62 |
pngrtran$(O): png.h pngconf.h pngpriv.h |
0 | 63 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
64 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
65 |
pngrutil$(O): png.h pngconf.h pngpriv.h |
0 | 66 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
67 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
68 |
pngerror$(O): png.h pngconf.h pngpriv.h |
0 | 69 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
70 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
71 |
pngmem$(O): png.h pngconf.h pngpriv.h |
0 | 72 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
73 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
74 |
pngrio$(O): png.h pngconf.h pngpriv.h |
0 | 75 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
76 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
77 |
pngwio$(O): png.h pngconf.h pngpriv.h |
0 | 78 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
79 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
80 |
pngtrans$(O): png.h pngconf.h pngpriv.h |
0 | 81 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
82 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
83 |
pngwrite$(O): png.h pngconf.h pngpriv.h |
0 | 84 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
85 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
86 |
pngwtran$(O): png.h pngconf.h pngpriv.h |
0 | 87 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
88 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
89 |
pngwutil$(O): png.h pngconf.h pngpriv.h |
0 | 90 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
91 |
||
92 |
libpng.lib: $(OBJS) |
|
93 |
if exist libpng.lib del libpng.lib |
|
94 |
lib /NOLOGO /OUT:libpng.lib $(OBJS) |
|
95 |
||
96 |
pngtest.exe: pngtest.obj libpng.lib |
|
97 |
$(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib |
|
98 |
||
99 |
pngtest$(O): png.h pngconf.h |
|
100 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
|
101 |
||
102 |
test: pngtest.exe |
|
103 |
pngtest.exe |
|
104 |
||
105 |
||
106 |
# End of makefile for libpng |