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

« back to all changes in this revision

Viewing changes to scripts/makefile.aix

  • 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 using gcc (generic, static library)
2
 
# Copyright (C) 2002 Glenn Randers-Pehrson
 
2
# Copyright (C) 2002, 2006 Glenn Randers-Pehrson
3
3
# Copyright (C) 2000 Cosmin Truta
4
4
# Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc)
5
5
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
12
12
# Compiler, linker, lib and other tools
13
13
CC = gcc
14
14
LD = $(CC)
15
 
AR = ar rcs
 
15
AR_RC = ar rcs
 
16
MKDIR_P = mkdir -p
16
17
RANLIB = ranlib
17
 
RM = rm -f
 
18
RM_F = rm -f
 
19
LN_SF = ln -f -s
18
20
 
19
21
LIBNAME=libpng12
20
22
PNGMAJ = 0
21
 
PNGMIN = 1.2.8
 
23
PNGMIN = 1.2.13
22
24
PNGVER = $(PNGMAJ).$(PNGMIN)
23
25
 
24
26
prefix=/usr/local
60
62
all: $(LIBNAME)$(A) pngtest$(E)
61
63
 
62
64
$(LIBNAME)$(A): $(OBJS)
63
 
        $(AR) $@ $(OBJS)
 
65
        $(AR_RC) $@ $(OBJS)
64
66
        $(RANLIB) $@
65
67
 
66
68
test: pngtest$(E)
70
72
        $(LD) -o $@ pngtest$(O) $(LDFLAGS)
71
73
 
72
74
install: $(LIBNAME)$(A)
73
 
        -@if [ ! -d $(DI)  ]; then mkdir $(DI); fi
74
 
        -@if [ ! -d $(DI)/$(LIBNAME)  ]; then mkdir $(DI)/$(LIBNAME); fi
75
 
        -@if [ ! -d $(DL) ]; then mkdir $(DL); fi
76
 
        -@rm -f $(DI)/$(LIBNAME)/png.h
77
 
        -@rm -f $(DI)/$(LIBNAME)/pngconf.h
78
 
        -@rm -f $(DI)/png.h
79
 
        -@rm -f $(DI)/pngconf.h
 
75
        -@if [ ! -d $(DI)  ]; then $(MKDIR_P) $(DI); fi
 
76
        -@if [ ! -d $(DI)/$(LIBNAME)  ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi
 
77
        -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
 
78
        -@$(RM_F) $(DI)/$(LIBNAME)/png.h
 
79
        -@$(RM_F) $(DI)/$(LIBNAME)/pngconf.h
 
80
        -@$(RM_F) $(DI)/png.h
 
81
        -@$(RM_F) $(DI)/pngconf.h
80
82
        cp png.h pngconf.h $(DI)/$(LIBNAME)
81
83
        chmod 644 $(DI)/$(LIBNAME)/png.h \
82
84
        $(DI)/$(LIBNAME)/pngconf.h
83
 
        -@rm -rf $(DI)/libpng
84
 
        (cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .)
85
 
        -@rm -f $(DL)/$(LIBNAME)$(A)
86
 
        -@rm -f $(DL)/libpng$(A)
 
85
        -@$(RM_F) -r $(DI)/libpng
 
86
        (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .)
 
87
        -@$(RM_F) $(DL)/$(LIBNAME)$(A)
 
88
        -@$(RM_F) $(DL)/libpng$(A)
87
89
        cp $(LIBNAME)$(A) $(DL)/$(LIBNAME)$(A)
88
90
        chmod 644 $(DL)/$(LIBNAME)$(A)
89
 
        (cd $(DL); ln -f -s $(LIBNAME)$(A) libpng$(A))
90
 
        (cd $(DI); ln -f -s libpng/* .;)
 
91
        (cd $(DL); $(LN_SF) $(LIBNAME)$(A) libpng$(A))
 
92
        (cd $(DI); $(LN_SF) libpng/* .;)
91
93
 
92
94
clean:
93
 
        /bin/rm -f *.o $(LIBNAME)$(A) pngtest pngout.png
 
95
        $(RM_F) *.o $(LIBNAME)$(A) pngtest pngout.png
94
96
 
95
97
png$(O): png.h pngconf.h
96
98
pngerror$(O): png.h pngconf.h