~ubuntu-branches/ubuntu/intrepid/libpng/intrepid-security

« back to all changes in this revision

Viewing changes to scripts/makefile.std

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-11-21 19:07:43 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20061121190743-wkt0yzs5uq2xoq10
Tags: 1.2.13-4
Removed drop_pass_width patch. Closes: #399499.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# makefile for libpng
2
 
# Copyright (C) 2002 Glenn Randers-Pehrson
 
2
# Copyright (C) 2002, 2006 Glenn Randers-Pehrson
3
3
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4
4
# For conditions of distribution and use, see copyright notice in png.h
5
5
 
25
25
ZLIBINC=../zlib
26
26
 
27
27
CC=cc
 
28
AR_RC=ar rc
 
29
MKDIR_P=mkdir
 
30
LN_SF=ln -sf
 
31
RANLIB=ranlib
 
32
RM_F=rm -f
 
33
 
28
34
CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
29
35
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
30
36
 
31
 
#RANLIB=echo
32
 
RANLIB=ranlib
33
 
 
34
37
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
35
38
        pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
36
39
        pngwtran.o pngmem.o pngerror.o pngpread.o
38
41
all: libpng.a pngtest
39
42
 
40
43
libpng.a: $(OBJS)
41
 
        ar rc $@  $(OBJS)
 
44
        $(AR_RC) $@  $(OBJS)
42
45
        $(RANLIB) $@
43
46
 
44
47
pngtest: pngtest.o libpng.a
48
51
        ./pngtest
49
52
 
50
53
install: libpng.a
51
 
        -@mkdir $(DESTDIR)$(INCPATH)
52
 
        -@mkdir $(DESTDIR)$(INCPATH)/libpng
53
 
        -@mkdir $(DESTDIR)$(LIBPATH)
54
 
        -@rm -f $(DESTDIR)$(INCPATH)/png.h
55
 
        -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
 
54
        -@$(MKDIR_P) $(DESTDIR)$(INCPATH)
 
55
        -@$(MKDIR_P) $(DESTDIR)$(INCPATH)/libpng
 
56
        -@$(MKDIR_P) $(DESTDIR)$(LIBPATH)
 
57
        -@$(RM_F) $(DESTDIR)$(INCPATH)/png.h
 
58
        -@$(RM_F) $(DESTDIR)$(INCPATH)/pngconf.h
56
59
        cp png.h $(DESTDIR)$(INCPATH)/libpng
57
60
        cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
58
61
        chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
62
65
        chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
63
66
 
64
67
clean:
65
 
        rm -f *.o libpng.a pngtest pngout.png
 
68
        $(RM_F) *.o libpng.a pngtest pngout.png
66
69
 
67
70
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
68
71
writelock: