📄 makefile.aix
字号:
# makefile for libpng using gcc (generic, static library)# Copyright (C) 2002 Glenn Randers-Pehrson# Copyright (C) 2000 Cosmin Truta# Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc)# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.# For conditions of distribution and use, see copyright notice in png.h# Location of the zlib library and include filesZLIBINC = ../zlibZLIBLIB = ../zlib# Compiler, linker, lib and other toolsCC = gccLD = $(CC)AR = ar rcsRANLIB = ranlibRM = rm -fLIBNAME=libpng12PNGMAJ = 0PNGMIN = 1.2.7PNGVER = $(PNGMAJ).$(PNGMIN)prefix=/usr/localINCPATH=$(prefix)/includeLIBPATH=$(prefix)/lib# override DESTDIR= on the make install command line to easily support# installing into a temporary location. Example:## make install DESTDIR=/tmp/build/libpng## If you're going to install into a temporary location# via DESTDIR, $(DESTDIR)$(prefix) must already exist before# you execute make install.DESTDIR=DI=$(DESTDIR)$(INCPATH)DL=$(DESTDIR)$(LIBPATH)CDEBUG = -g -DPNG_DEBUG=5LDDEBUG =CRELEASE = -O2LDRELEASE = -sWARNMORE=-WallCFLAGS = -I$(ZLIBINC) $(WARNMORE) $(CRELEASE)LDFLAGS = -L. -L$(ZLIBLIB) -lpng12 -lz -lm $(LDRELEASE)# File extensionsO=.oA=.aE=# VariablesOBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \ pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \ pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)# Targetsall: $(LIBNAME)$(A) pngtest$(E)$(LIBNAME)$(A): $(OBJS) $(AR) $@ $(OBJS) $(RANLIB) $@test: pngtest$(E) ./pngtest$(E)pngtest$(E): pngtest$(O) $(LIBNAME)$(A) $(LD) -o $@ pngtest$(O) $(LDFLAGS)install: $(LIBNAME)$(A) -@if [ ! -d $(DI) ]; then mkdir $(DI); fi -@if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi -@if [ ! -d $(DL) ]; then mkdir $(DL); fi -@rm -f $(DI)/$(LIBNAME)/png.h -@rm -f $(DI)/$(LIBNAME)/pngconf.h -@rm -f $(DI)/png.h -@rm -f $(DI)/pngconf.h cp png.h pngconf.h $(DI)/$(LIBNAME) chmod 644 $(DI)/$(LIBNAME)/png.h \ $(DI)/$(LIBNAME)/pngconf.h -@rm -rf $(DI)/libpng (cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .) -@rm -f $(DL)/$(LIBNAME)$(A) -@rm -f $(DL)/libpng$(A) cp $(LIBNAME)$(A) $(DL)/$(LIBNAME)$(A) chmod 644 $(DL)/$(LIBNAME)$(A) (cd $(DL); ln -f -s $(LIBNAME)$(A) libpng$(A)) (cd $(DI); ln -f -s libpng/* .;)clean: /bin/rm -f *.o $(LIBNAME)$(A) pngtest pngout.pngpng$(O): png.h pngconf.hpngerror$(O): png.h pngconf.hpngget$(O): png.h pngconf.hpngmem$(O): png.h pngconf.hpngpread$(O): png.h pngconf.hpngread$(O): png.h pngconf.hpngrio$(O): png.h pngconf.hpngrtran$(O): png.h pngconf.hpngrutil$(O): png.h pngconf.hpngset$(O): png.h pngconf.hpngtest$(O): png.h pngconf.hpngtrans$(O): png.h pngconf.hpngwio$(O): png.h pngconf.hpngwrite$(O): png.h pngconf.hpngwtran$(O): png.h pngconf.hpngwutil$(O): png.h pngconf.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -