VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.8/scripts/makefile.atari@ 8998

最後變更 在這個檔案從8998是 6395,由 vboxsync 提交於 17 年 前

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

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

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