VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.54/scripts/makefile.atari@ 67204

最後變更 在這個檔案從67204是 58796,由 vboxsync 提交於 9 年 前

libpng 1.2.54 unmodified

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.7 KB
 
1# makefile for libpng
2# Copyright (C) 2002 Glenn Randers-Pehrson
3# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4#
5# This code is released under the libpng license.
6# For conditions of distribution and use, see the disclaimer
7# and license in png.h
8#
9# Modified for LC56/ATARI assumes libz.lib is in same dir and uses default
10# rules for library management
11#
12CFLAGS=-I..\zlib -O
13LBR = png.lib
14LDFLAGS=-lpng -lz -lm
15
16# where make install puts libpng.a and png.h
17prefix=/usr/local
18INCPATH=$(prefix)/include
19LIBPATH=$(prefix)/lib
20
21# override DESTDIR= on the make install command line to easily support
22# installing into a temporary location. Example:
23#
24# make install DESTDIR=/tmp/build/libpng
25#
26# If you're going to install into a temporary location
27# via DESTDIR, $(DESTDIR)$(prefix) must already exist before
28# you execute make install.
29DESTDIR=
30
31OBJS = $(LBR)(png.o) $(LBR)(pngset.o) $(LBR)(pngget.o) $(LBR)(pngrutil.o)\
32 $(LBR)(pngtrans.o) $(LBR)(pngwutil.o)\
33 $(LBR)(pngread.o) $(LBR)(pngerror.o) $(LBR)(pngwrite.o)\
34 $(LBR)(pngrtran.o) $(LBR)(pngwtran.o)\
35 $(LBR)(pngmem.o) $(LBR)(pngrio.o) $(LBR)(pngwio.o) $(LBR)(pngpread.o)
36
37all: $(LBR) pngtest.ttp
38
39$(LBR): $(OBJS)
40
41pngtest.ttp: pngtest.o $(LBR)
42 $(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o
43
44install: libpng.a
45 -@mkdir $(DESTDIR)$(INCPATH)
46 -@mkdir $(DESTDIR)$(INCPATH)/libpng
47 -@mkdir $(DESTDIR)$(LIBPATH)
48 -@rm -f $(DESTDIR)$(INCPATH)/png.h
49 -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
50 cp png.h $(DESTDIR)$(INCPATH)/libpng
51 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
52 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
53 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
54 (cd $(DESTDIR)$(INCPATH); ln -f -s $(LIBNAME) libpng; \
55 ln -f -s $(LIBNAME)/* .)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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