VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.8/scripts/makefile.gcc@ 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.5 KB
Line 
1# makefile for libpng using gcc (generic, static library)
2# Copyright (C) 2000 Cosmin Truta
3# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4# For conditions of distribution and use, see copyright notice in png.h
5
6# Location of the zlib library and include files
7ZLIBINC = ../zlib
8ZLIBLIB = ../zlib
9
10# Compiler, linker, lib and other tools
11CC = gcc
12LD = $(CC)
13AR = ar rcs
14RANLIB = ranlib
15RM = rm -f
16
17CDEBUG = -g -DPNG_DEBUG=5
18LDDEBUG =
19CRELEASE = -O2
20LDRELEASE = -s
21CFLAGS = -I$(ZLIBINC) -Wall $(CRELEASE)
22LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE)
23
24# File extensions
25O=.o
26A=.a
27E=
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
34# Targets
35all: libpng$(A) pngtest$(E)
36
37libpng$(A): $(OBJS)
38 $(AR) $@ $(OBJS)
39 $(RANLIB) $@
40
41test: pngtest$(E)
42 ./pngtest$(E)
43
44pngtest$(E): pngtest$(O) libpng$(A)
45 $(LD) -o $@ pngtest$(O) $(LDFLAGS)
46
47clean:
48 $(RM) *$(O) libpng$(A) pngtest$(E) pngout.png
49
50png$(O): png.h pngconf.h
51pngerror$(O): png.h pngconf.h
52pngget$(O): png.h pngconf.h
53pngmem$(O): png.h pngconf.h
54pngpread$(O): png.h pngconf.h
55pngread$(O): png.h pngconf.h
56pngrio$(O): png.h pngconf.h
57pngrtran$(O): png.h pngconf.h
58pngrutil$(O): png.h pngconf.h
59pngset$(O): png.h pngconf.h
60pngtest$(O): png.h pngconf.h
61pngtrans$(O): png.h pngconf.h
62pngwio$(O): png.h pngconf.h
63pngwrite$(O): png.h pngconf.h
64pngwtran$(O): png.h pngconf.h
65pngwutil$(O): png.h pngconf.h
66
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