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

« back to all changes in this revision

Viewing changes to PNG/zlib/msdos/Makefile.b32

  • 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
2
 
# Borland C++   
3
 
 
4
 
# This version of the zlib makefile was adapted by Chris Young for use
5
 
# with Borland C 4.5x with the Dos Power Pack for a 32-bit protected mode
6
 
# flat memory model.  It was created for use with POV-Ray ray tracer and
7
 
# you may choose to edit the CFLAGS to suit your needs but the
8
 
# switches -WX and -DMSDOS are required.
9
 
# -- Chris Young 76702.1655@compuserve.com
10
 
 
11
 
# To use, do "make -fmakefile.b32"
12
 
 
13
 
# See zconf.h for details about the memory requirements.
14
 
 
15
 
# ------------- Borland C++ -------------
16
 
MODEL=-WX 
17
 
CFLAGS= $(MODEL) -P-C -K -N- -k- -d -3 -r- -v- -f -DMSDOS
18
 
CC=bcc32
19
 
LD=bcc32
20
 
LIB=tlib
21
 
LDFLAGS= $(MODEL)
22
 
O=.obj
23
 
 
24
 
# variables
25
 
OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
26
 
  trees$(O)
27
 
OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
28
 
  trees$(O)
29
 
OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
30
 
  infutil$(O) inffast$(O)
31
 
OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
32
 
  infutil$(O)+inffast$(O)
33
 
 
34
 
all: test
35
 
 
36
 
adler32.obj: adler32.c zlib.h zconf.h
37
 
        $(CC) -c $(CFLAGS) $*.c
38
 
 
39
 
compress.obj: compress.c zlib.h zconf.h
40
 
        $(CC) -c $(CFLAGS) $*.c
41
 
 
42
 
crc32.obj: crc32.c zlib.h zconf.h
43
 
        $(CC) -c $(CFLAGS) $*.c
44
 
 
45
 
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
46
 
        $(CC) -c $(CFLAGS) $*.c
47
 
 
48
 
gzio.obj: gzio.c zutil.h zlib.h zconf.h
49
 
        $(CC) -c $(CFLAGS) $*.c
50
 
 
51
 
infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
52
 
   infcodes.h infutil.h
53
 
        $(CC) -c $(CFLAGS) $*.c
54
 
 
55
 
infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
56
 
   infcodes.h inffast.h
57
 
        $(CC) -c $(CFLAGS) $*.c
58
 
 
59
 
inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
60
 
        $(CC) -c $(CFLAGS) $*.c
61
 
 
62
 
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
63
 
        $(CC) -c $(CFLAGS) $*.c
64
 
 
65
 
infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
66
 
        $(CC) -c $(CFLAGS) $*.c
67
 
 
68
 
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
69
 
        $(CC) -c $(CFLAGS) $*.c
70
 
 
71
 
trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
72
 
        $(CC) -c $(CFLAGS) $*.c
73
 
 
74
 
uncompr.obj: uncompr.c zlib.h zconf.h
75
 
        $(CC) -c $(CFLAGS) $*.c
76
 
 
77
 
zutil.obj: zutil.c zutil.h zlib.h zconf.h
78
 
        $(CC) -c $(CFLAGS) $*.c
79
 
 
80
 
example.obj: example.c zlib.h zconf.h
81
 
        $(CC) -c $(CFLAGS) $*.c
82
 
 
83
 
minigzip.obj: minigzip.c zlib.h zconf.h
84
 
        $(CC) -c $(CFLAGS) $*.c
85
 
 
86
 
# we must cut the command line to fit in the MS/DOS 128 byte limit:
87
 
zlib.lib: $(OBJ1) $(OBJ2)
88
 
        del zlib.lib
89
 
        $(LIB) zlib +$(OBJP1)
90
 
        $(LIB) zlib +$(OBJP2)
91
 
 
92
 
example.exe: example.obj zlib.lib
93
 
        $(LD) $(LDFLAGS) example.obj zlib.lib
94
 
 
95
 
minigzip.exe: minigzip.obj zlib.lib
96
 
        $(LD) $(LDFLAGS) minigzip.obj zlib.lib
97
 
 
98
 
test: example.exe minigzip.exe
99
 
        example
100
 
        echo hello world | minigzip | minigzip -d 
101
 
 
102
 
#clean:
103
 
#       del *.obj
104
 
#       del *.exe