VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.54/scripts/makefile.gcc@ 71947

Last change on this file since 71947 was 58796, checked in by vboxsync, 9 years ago

libpng 1.2.54 unmodified

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# makefile for libpng using gcc (generic, static library)
2# Copyright (C) 2008 Glenn Randers-Pehrson
3# Copyright (C) 2000 Cosmin Truta
4# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
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
10# Location of the zlib library and include files
11ZLIBINC = ../zlib
12ZLIBLIB = ../zlib
13
14# Compiler, linker, lib and other tools
15CC = gcc
16LD = $(CC)
17AR_RC = ar rcs
18RANLIB = ranlib
19RM_F = rm -f
20
21CDEBUG = -g -DPNG_DEBUG=5
22LDDEBUG =
23CRELEASE = -O2
24LDRELEASE = -s
25#CFLAGS = -W -Wall $(CDEBUG)
26CFLAGS = -W -Wall $(CRELEASE)
27#LDFLAGS = $(LDDEBUG)
28LDFLAGS = $(LDRELEASE)
29LIBS = -lz -lm
30
31# File extensions
32O=.o
33A=.a
34EXE=
35
36# Variables
37OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
38 pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
39 pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
40
41# Targets
42all: static
43
44.c$(O):
45 $(CC) -c $(CFLAGS) -I$(ZLIBINC) $<
46
47static: libpng$(A) pngtest$(EXE)
48
49shared:
50 @echo This is a generic makefile that cannot create shared libraries.
51 @echo Please use a configuration that is specific to your platform.
52 @false
53
54libpng$(A): $(OBJS)
55 $(AR_RC) $@ $(OBJS)
56 $(RANLIB) $@
57
58test: pngtest$(EXE)
59 ./pngtest$(EXE)
60
61pngtest$(EXE): pngtest$(O) libpng$(A)
62 $(LD) $(LDFLAGS) -L$(ZLIBLIB) -o $@ pngtest$(O) libpng$(A) $(LIBS)
63
64clean:
65 $(RM_F) *$(O) libpng$(A) pngtest$(EXE) pngout.png
66
67png$(O): png.h pngconf.h
68pngerror$(O): png.h pngconf.h
69pngget$(O): png.h pngconf.h
70pngmem$(O): png.h pngconf.h
71pngpread$(O): png.h pngconf.h
72pngread$(O): png.h pngconf.h
73pngrio$(O): png.h pngconf.h
74pngrtran$(O): png.h pngconf.h
75pngrutil$(O): png.h pngconf.h
76pngset$(O): png.h pngconf.h
77pngtrans$(O): png.h pngconf.h
78pngwio$(O): png.h pngconf.h
79pngwrite$(O): png.h pngconf.h
80pngwtran$(O): png.h pngconf.h
81pngwutil$(O): png.h pngconf.h
82
83pngtest$(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