VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.8/scripts/makefile.ibmc@ 35628

Last change on this file since 35628 was 6395, checked in by vboxsync, 17 years ago

export libpng and zlib so Windows and OS/2 build cleanly.

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1# Makefile for libpng (static)
2# IBM C version 3.x for Win32 and OS/2
3# Copyright (C) 2000 Cosmin Truta
4# For conditions of distribution and use, see copyright notice in png.h
5# Notes:
6# Derived from makefile.std
7# All modules are compiled in C mode
8# Tested under Win32, expected to work under OS/2
9# Can be easily adapted for IBM VisualAge/C++ for AIX
10
11# Location of the zlib library and include files
12ZLIBINC = ../zlib
13ZLIBLIB = ../zlib
14
15# Compiler, linker, lib and other tools
16CC = icc
17LD = ilink
18AR = ilib
19RM = del
20
21CFLAGS = -I$(ZLIBINC) -Mc -O2 -W3
22LDFLAGS =
23
24# File extensions
25O=.obj
26A=.lib
27E=.exe
28
29# Variables
30OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
31 pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
32 pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
33
34LIBS = libpng$(A) $(ZLIBLIB)/zlib$(A)
35
36# Targets
37all: libpng$(A) pngtest$(E)
38
39libpng$(A): $(OBJS)
40 $(AR) -out:$@ $(OBJS)
41
42test: pngtest$(E)
43 pngtest$(E)
44
45pngtest: pngtest$(E)
46
47pngtest$(E): pngtest$(O) libpng$(A)
48 $(LD) $(LDFLAGS) pngtest$(O) $(LIBS)
49
50clean:
51 $(RM) *$(O)
52 $(RM) libpng$(A)
53 $(RM) pngtest$(E)
54 $(RM) pngout.png
55
56png$(O): png.h pngconf.h
57pngerror$(O): png.h pngconf.h
58pngget$(O): png.h pngconf.h
59pngmem$(O): png.h pngconf.h
60pngpread$(O): png.h pngconf.h
61pngread$(O): png.h pngconf.h
62pngrio$(O): png.h pngconf.h
63pngrtran$(O): png.h pngconf.h
64pngrutil$(O): png.h pngconf.h
65pngset$(O): png.h pngconf.h
66pngtest$(O): png.h pngconf.h
67pngtrans$(O): png.h pngconf.h
68pngwio$(O): png.h pngconf.h
69pngwrite$(O): png.h pngconf.h
70pngwtran$(O): png.h pngconf.h
71pngwutil$(O): png.h pngconf.h
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette