~ubuntu-branches/ubuntu/lucid/perl-tk/lucid

« back to all changes in this revision

Viewing changes to PNG/zlib/nt/Makefile.gcc

  • Committer: Bazaar Package Importer
  • Author(s): Colin Tuckley
  • Date: 2008-02-15 13:56:59 UTC
  • mfrom: (1.1.3 upstream) (4.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080215135659-ru2oqlykuju20fav
Tags: 1:804.028-1
* New Upstream Release (Closes: #463080).
* Update to Debhelper v5.
* Build with XFT=1 (Closes: #411129).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for zlib.  Modified for mingw32 by C. Spieler, 6/16/98.
2
 
# (This Makefile is directly derived from Makefile.dj2)
3
 
# Copyright (C) 1995-1998 Jean-loup Gailly.
4
 
# For conditions of distribution and use, see copyright notice in zlib.h 
5
 
 
6
 
# To compile, or to compile and test, type:
7
 
8
 
#   make -fmakefile.gcc;  make test -fmakefile.gcc
9
 
10
 
# To install libz.a, zconf.h and zlib.h in the mingw32 directories, type:
11
 
12
 
#    make install -fmakefile.gcc
13
 
14
 
 
15
 
CC=gcc
16
 
 
17
 
#CFLAGS=-MMD -O
18
 
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
19
 
#CFLAGS=-MMD -g -DDEBUG
20
 
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
21
 
             -Wstrict-prototypes -Wmissing-prototypes
22
 
 
23
 
# If cp.exe is available, replace "copy /Y" with "cp -fp" .
24
 
CP=copy /Y
25
 
# If gnu install.exe is available, replace $(CP) with ginstall.
26
 
INSTALL=$(CP)
27
 
# The default value of RM is "rm -f."  If "rm.exe" is found, comment out:
28
 
RM=del
29
 
LDLIBS=-L. -lz
30
 
LD=$(CC) -s -o
31
 
LDSHARED=$(CC)
32
 
 
33
 
INCL=zlib.h zconf.h
34
 
LIBS=libz.a
35
 
 
36
 
AR=ar rcs
37
 
 
38
 
prefix=/usr/local
39
 
exec_prefix = $(prefix)
40
 
 
41
 
OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
42
 
       zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
43
 
 
44
 
TEST_OBJS = example.o minigzip.o
45
 
 
46
 
all: example.exe minigzip.exe
47
 
 
48
 
test: all
49
 
        ./example
50
 
        echo hello world | .\minigzip | .\minigzip -d 
51
 
 
52
 
.c.o : 
53
 
        $(CC) $(CFLAGS) -c $< -o $@
54
 
 
55
 
libz.a: $(OBJS)
56
 
        $(AR) $@ $(OBJS)
57
 
 
58
 
example.exe : example.o $(LIBS)
59
 
        $(LD) $@ $< $(LDLIBS)
60
 
 
61
 
minigzip.exe : minigzip.o $(LIBS)
62
 
        $(LD) $@ $< $(LDLIBS)
63
 
 
64
 
# INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env .
65
 
 
66
 
.PHONY : uninstall clean
67
 
 
68
 
install: $(INCL) $(LIBS)
69
 
        -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH)
70
 
        -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH)
71
 
        $(INSTALL) zlib.h $(INCLUDE_PATH)
72
 
        $(INSTALL) zconf.h $(INCLUDE_PATH)
73
 
        $(INSTALL) libz.a $(LIBRARY_PATH)
74
 
 
75
 
uninstall:
76
 
        $(RM) $(INCLUDE_PATH)\zlib.h
77
 
        $(RM) $(INCLUDE_PATH)\zconf.h
78
 
        $(RM) $(LIBRARY_PATH)\libz.a
79
 
 
80
 
clean:
81
 
        $(RM) *.d
82
 
        $(RM) *.o
83
 
        $(RM) *.exe
84
 
        $(RM) libz.a
85
 
        $(RM) foo.gz
86
 
 
87
 
#DEPS := $(wildcard *.d)
88
 
#ifneq ($(DEPS),)
89
 
#include $(DEPS)
90
 
#endif