]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.ibmc
Don't auto-link with 3rd party libraries in DLL build using MSVC.
[wxWidgets.git] / src / png / scripts / makefile.ibmc
CommitLineData
0272a10d
VZ
1# Makefile for libpng (static)
2# IBM C version 3.x for Win32 and OS/2
b61cc19c 3# Copyright (C) 2006 Glenn Randers-Pehrson
0272a10d 4# Copyright (C) 2000 Cosmin Truta
b61cc19c
PC
5#
6# This code is released under the libpng license.
7# For conditions of distribution and use, see the disclaimer
8# and license in png.h
9#
0272a10d
VZ
10# Notes:
11# Derived from makefile.std
12# All modules are compiled in C mode
13# Tested under Win32, expected to work under OS/2
14# Can be easily adapted for IBM VisualAge/C++ for AIX
15
16# Location of the zlib library and include files
17ZLIBINC = ../zlib
18ZLIBLIB = ../zlib
19
20# Compiler, linker, lib and other tools
21CC = icc
22LD = ilink
23AR = ilib
24RM = del
25
26CFLAGS = -I$(ZLIBINC) -Mc -O2 -W3
27LDFLAGS =
28
29# File extensions
30O=.obj
31A=.lib
32E=.exe
33
34# Variables
35OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
36 pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
37 pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
38
39LIBS = libpng$(A) $(ZLIBLIB)/zlib$(A)
40
41# Targets
42all: libpng$(A) pngtest$(E)
43
9c0d9ce3
DS
44# see scripts/pnglibconf.mak for more options
45pnglibconf.h: scripts/pnglibconf.h.prebuilt
46 cp scripts/pnglibconf.h.prebuilt $@
47
0272a10d
VZ
48libpng$(A): $(OBJS)
49 $(AR) -out:$@ $(OBJS)
50
51test: pngtest$(E)
52 pngtest$(E)
53
54pngtest: pngtest$(E)
55
56pngtest$(E): pngtest$(O) libpng$(A)
57 $(LD) $(LDFLAGS) pngtest$(O) $(LIBS)
58
59clean:
60 $(RM) *$(O)
61 $(RM) libpng$(A)
9c0d9ce3 62 $(RM) pnglibconf.h
0272a10d
VZ
63 $(RM) pngtest$(E)
64 $(RM) pngout.png
65
9c0d9ce3
DS
66png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
67pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
68pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
69pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
70pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
71pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
72pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
73pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
74pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
75pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
76pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
77pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
78pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
79pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
80pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
b61cc19c 81
9c0d9ce3 82pngtest$(O): png.h pngconf.h pnglibconf.h