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

« back to all changes in this revision

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

  • 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
1
# Makefile for zlib
2
 
# Borland C++   ************ UNTESTED ***********
 
2
# Borland C++
 
3
# Last updated: 15-Mar-2003
3
4
 
4
5
# To use, do "make -fmakefile.bor"
5
6
# To compile in small model, set below: MODEL=s
12
13
#   -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
13
14
# See zconf.h for details about the memory requirements.
14
15
 
15
 
# ------------- Turbo C++, Borland C++ -------------
 
16
# ------------ Turbo C++, Borland C++ ------------
16
17
 
17
18
#    Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
18
19
#    should be added to the environment via "set LOCAL_ZLIB=-DFOO" or added
19
20
#    to the declaration of LOC here:
20
21
LOC = $(LOCAL_ZLIB)
21
22
 
22
 
# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
 
23
# type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
23
24
CPU_TYP = 0
24
25
 
25
 
# Memory model: one of s, m, c, l (small, medium, compact, large)
 
26
# memory model: one of s, m, c, l (small, medium, compact, large)
26
27
MODEL=l
27
28
 
 
29
# replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
28
30
CC=bcc
29
 
#   replace bcc with tcc for Turbo C++ 1.0, with bcc32 for the 32 bit version
30
 
LD=$(CC)
 
31
LD=bcc
31
32
AR=tlib
32
33
 
33
34
# compiler flags
 
35
# replace "-O2" by "-O -G -a -d" for Turbo C++ 1.0
34
36
CFLAGS=-O2 -Z -m$(MODEL) $(LOC)
35
 
#   replace "-O2" by "-O -G -a -d" for Turbo C++ 1.0
36
 
 
37
 
LDFLAGS=-m$(MODEL)
38
 
 
39
 
O=.obj
 
37
 
 
38
LDFLAGS=-m$(MODEL) -f-
 
39
 
40
40
 
41
41
# variables
42
 
OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
43
 
  trees$(O)
44
 
OBJP1 = adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)+\
45
 
  trees$(O)
46
 
OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
47
 
  infutil$(O) inffast$(O)
48
 
OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
49
 
  infutil$(O)+inffast$(O)
50
 
 
51
 
ZLIB_H = zlib.h zconf.h
52
 
ZUTIL_H = zutil.h $(ZLIB_H)
53
 
 
54
42
ZLIB_LIB = zlib_$(MODEL).lib
55
43
 
56
 
all: test
57
 
 
58
 
# individual dependencies and action rules:
59
 
adler32.obj: adler32.c $(ZLIB_H)
60
 
        $(CC) -c $(CFLAGS) $*.c
61
 
 
62
 
compress.obj: compress.c $(ZLIB_H)
63
 
        $(CC) -c $(CFLAGS) $*.c
64
 
 
65
 
crc32.obj: crc32.c $(ZLIB_H)
66
 
        $(CC) -c $(CFLAGS) $*.c
67
 
 
68
 
deflate.obj: deflate.c deflate.h $(ZUTIL_H)
69
 
        $(CC) -c $(CFLAGS) $*.c
70
 
 
71
 
gzio.obj: gzio.c $(ZUTIL_H)
72
 
        $(CC) -c $(CFLAGS) $*.c
73
 
 
74
 
infblock.obj: infblock.c $(ZUTIL_H) infblock.h inftrees.h infcodes.h infutil.h
75
 
        $(CC) -c $(CFLAGS) $*.c
76
 
 
77
 
infcodes.obj: infcodes.c $(ZUTIL_H) inftrees.h infutil.h infcodes.h inffast.h
78
 
        $(CC) -c $(CFLAGS) $*.c
79
 
 
80
 
inflate.obj: inflate.c $(ZUTIL_H) infblock.h
81
 
        $(CC) -c $(CFLAGS) $*.c
82
 
 
83
 
inftrees.obj: inftrees.c $(ZUTIL_H) inftrees.h
84
 
        $(CC) -c $(CFLAGS) $*.c
85
 
 
86
 
infutil.obj: infutil.c $(ZUTIL_H) inftrees.h infutil.h
87
 
        $(CC) -c $(CFLAGS) $*.c
88
 
 
89
 
inffast.obj: inffast.c $(ZUTIL_H) inftrees.h infutil.h inffast.h
90
 
        $(CC) -c $(CFLAGS) $*.c
91
 
 
92
 
trees.obj: trees.c deflate.h $(ZUTIL_H)
93
 
        $(CC) -c $(CFLAGS) $*.c
94
 
 
95
 
uncompr.obj: uncompr.c $(ZLIB_H)
96
 
        $(CC) -c $(CFLAGS) $*.c
97
 
 
98
 
zutil.obj: zutil.c $(ZUTIL_H)
99
 
        $(CC) -c $(CFLAGS) $*.c
100
 
 
101
 
example.obj: example.c $(ZLIB_H)
102
 
        $(CC) -c $(CFLAGS) $*.c
103
 
 
104
 
minigzip.obj: minigzip.c $(ZLIB_H)
105
 
        $(CC) -c $(CFLAGS) $*.c
106
 
 
107
 
# we must cut the command line to fit in the MS/DOS 128 byte limit:
 
44
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
 
45
OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
 
46
OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
 
47
OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
 
48
 
 
49
 
 
50
# targets
 
51
all: $(ZLIB_LIB) example.exe minigzip.exe
 
52
 
 
53
.c.obj:
 
54
        $(CC) -c $(CFLAGS) $*.c
 
55
 
 
56
adler32.obj: adler32.c zlib.h zconf.h
 
57
 
 
58
compress.obj: compress.c zlib.h zconf.h
 
59
 
 
60
crc32.obj: crc32.c zlib.h zconf.h crc32.h
 
61
 
 
62
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
 
63
 
 
64
gzio.obj: gzio.c zutil.h zlib.h zconf.h
 
65
 
 
66
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
 
67
 inffast.h inffixed.h
 
68
 
 
69
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
 
70
 inffast.h
 
71
 
 
72
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
 
73
 inffast.h inffixed.h
 
74
 
 
75
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
 
76
 
 
77
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
 
78
 
 
79
uncompr.obj: uncompr.c zlib.h zconf.h
 
80
 
 
81
zutil.obj: zutil.c zutil.h zlib.h zconf.h
 
82
 
 
83
example.obj: example.c zlib.h zconf.h
 
84
 
 
85
minigzip.obj: minigzip.c zlib.h zconf.h
 
86
 
 
87
 
 
88
# the command line is cut to fit in the MS-DOS 128 byte limit:
108
89
$(ZLIB_LIB): $(OBJ1) $(OBJ2)
109
 
        del $(ZLIB_LIB)
110
 
        $(AR) $(ZLIB_LIB) +$(OBJP1)
111
 
        $(AR) $(ZLIB_LIB) +$(OBJP2)
 
90
        -del $(ZLIB_LIB)
 
91
        $(AR) $(ZLIB_LIB) $(OBJP1)
 
92
        $(AR) $(ZLIB_LIB) $(OBJP2)
112
93
 
113
94
example.exe: example.obj $(ZLIB_LIB)
114
95
        $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
118
99
 
119
100
test: example.exe minigzip.exe
120
101
        example
121
 
        echo hello world | minigzip | minigzip -d 
 
102
        echo hello world | minigzip | minigzip -d
122
103
 
123
 
#clean:
124
 
#       del *.obj
125
 
#       del *.exe
 
104
clean:
 
105
        -del *.obj
 
106
        -del *.lib
 
107
        -del *.exe
 
108
        -del zlib_*.bak
 
109
        -del foo.gz