]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libpng/lib/contrib/scripts/makefile.intel
update
[l4.git] / l4 / pkg / libpng / lib / contrib / scripts / makefile.intel
1 # Makefile for libpng
2 # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
3
4 # Copyright (C) 2006, 2014 Glenn Randers-Pehrson
5 # Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
6 # copyright 1995 Guy Eric Schalnat, Group 42, Inc.
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 #
12 # To use, do "nmake /f scripts\makefile.intel"
13 #
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 CPPFLAGS=-I$(ZLIBINC)
36 CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -nologo
37 LD=link
38 LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
39
40 O=.obj
41
42 OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
43 pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
44 pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
45
46 all: test
47
48 # see scripts/pnglibconf.mak for more options
49 pnglibconf.h: scripts/pnglibconf.h.prebuilt
50         cp scripts/pnglibconf.h.prebuilt $@
51
52 png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
53         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
54
55 pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
56         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
57
58 pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
59         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
60
61 pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
62         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
63
64 pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
65         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
66
67 pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
68         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
69
70 pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
71         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
72
73 pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
74         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
75
76 pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
77         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
78
79 pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
80         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
81
82 pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
83         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
84
85 pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
86         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
87
88 pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
89         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
90
91 pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
92         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
93
94 pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
95         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
96
97 libpng.lib: $(OBJS)
98         if exist libpng.lib del libpng.lib
99         lib /NOLOGO /OUT:libpng.lib $(OBJS)
100
101 pngtest.exe: pngtest.obj libpng.lib
102         $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
103
104 pngtest$(O): png.h pngconf.h pnglibconf.h
105         $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)
106
107 test: pngtest.exe
108         pngtest.exe
109
110
111 # End of makefile for libpng