VirtualBox

source: vbox/trunk/src/libs/libpng-1.6.42/scripts/makefile.dec@ 103585

最後變更 在這個檔案從103585是 103316,由 vboxsync 提交於 12 月 前

libpng-1.6.42: Applied and adjusted our libpng changes to 1.6.42. bugref:8515

檔案大小: 3.2 KB
 
1# makefile for libpng on DEC Alpha Unix
2# Copyright (C) 2020-2022 Cosmin Truta
3# Copyright (C) 2000-2002, 2006, 2010-2014 Glenn Randers-Pehrson
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# Library name:
11LIBNAME=libpng16
12PNGMAJ=16
13
14# Shared library names:
15LIBSO=$(LIBNAME).so
16LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
17
18# Utilities:
19CC=cc
20AR_RC=ar rc
21RANLIB=ranlib
22MKDIR_P=mkdir
23LN_SF=ln -f -s
24CP=cp
25RM_F=/bin/rm -f
26
27# Where the zlib library and include files are located
28#ZLIBLIB=/usr/local/lib
29#ZLIBINC=/usr/local/include
30ZLIBLIB=../zlib
31ZLIBINC=../zlib
32
33CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
34CFLAGS=-std -w1 -O # -g
35LDFLAGS=-L$(ZLIBLIB) -rpath $(ZLIBLIB) libpng.a -lz -lm
36
37# Pre-built configuration
38# See scripts/pnglibconf.mak for more options
39PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
40
41OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
42 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
43 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
44
45.c.o:
46 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
47
48all: $(LIBSO) libpng.a pngtest
49
50pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
51 $(CP) $(PNGLIBCONF_H_PREBUILT) $@
52
53libpng.a: $(OBJS)
54 $(AR_RC) $@ $(OBJS)
55 $(RANLIB) $@
56
57$(LIBSO): $(LIBSOMAJ)
58 $(LN_SF) $(LIBSOMAJ) $(LIBSO)
59
60$(LIBSOMAJ): $(OBJS)
61 $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB) -soname $(LIBSOMAJ)
62
63pngtest: pngtest.o libpng.a
64 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
65
66test: pngtest
67 ./pngtest
68
69install:
70 @echo "The $@ target is no longer supported by this makefile."
71 @false
72
73install-static:
74 @echo "The $@ target is no longer supported by this makefile."
75 @false
76
77install-shared:
78 @echo "The $@ target is no longer supported by this makefile."
79 @false
80
81clean:
82 $(RM_F) *.o libpng.a pngtest pngout.png
83 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h
84
85# DO NOT DELETE THIS LINE -- make depend depends on it.
86
87png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
88pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
89pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
90pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
91pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
92pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
93pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
94pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
95pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
96pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
97pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
98pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
99pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
100pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
101pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
102
103pngtest.o: png.h pngconf.h pnglibconf.h
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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