~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to src/png/scripts/makefile.watcom

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for libpng
2
 
# Watcom C/C++ 10.0 and later, 32-bit protected mode, flat memory model
3
 
 
4
 
# Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
5
 
# copyright 1995 Guy Eric Schalnat, Group 42, Inc.
6
 
# For conditions of distribution and use, see copyright notice in png.h
7
 
 
8
 
# To use, do "wmake /f scripts\makefile.watcom"
9
 
 
10
 
 
11
 
# ---------------------- Watcom C/C++ 10.0 and later -----------------------
12
 
 
13
 
# Where the zlib library and include files are located
14
 
ZLIBLIB=..\zlib
15
 
ZLIBINC=..\zlib
16
 
 
17
 
# Target OS
18
 
OS=DOS
19
 
#OS=NT
20
 
 
21
 
# Target CPU
22
 
CPU=6           # Pentium Pro
23
 
#CPU=5          # Pentium
24
 
 
25
 
# Calling convention
26
 
CALLING=r       # registers
27
 
#CALLING=s      # stack
28
 
 
29
 
# Uncomment next to put error messages in a file
30
 
#ERRFILE=>>pngerrs
31
 
 
32
 
# --------------------------------------------------------------------------
33
 
 
34
 
 
35
 
CC=wcc386
36
 
CFLAGS=-$(CPU)$(CALLING) -fp$(CPU) -fpi87 -oneatx -mf -bt=$(OS) -i=$(ZLIBINC) -zq
37
 
LD=wcl386
38
 
LDFLAGS=-zq
39
 
 
40
 
O=.obj
41
 
 
42
 
OBJS1=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
43
 
OBJS2=pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
44
 
OBJS3=pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
45
 
 
46
 
 
47
 
all: test
48
 
 
49
 
png$(O): png.h pngconf.h
50
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
51
 
 
52
 
pngset$(O): png.h pngconf.h
53
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
54
 
 
55
 
pngget$(O): png.h pngconf.h
56
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
57
 
 
58
 
pngread$(O): png.h pngconf.h
59
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
60
 
 
61
 
pngpread$(O): png.h pngconf.h
62
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
63
 
 
64
 
pngrtran$(O): png.h pngconf.h
65
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
66
 
 
67
 
pngrutil$(O): png.h pngconf.h
68
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
69
 
 
70
 
pngerror$(O): png.h pngconf.h
71
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
72
 
 
73
 
pngmem$(O): png.h pngconf.h
74
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
75
 
 
76
 
pngrio$(O): png.h pngconf.h
77
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
78
 
 
79
 
pngwio$(O): png.h pngconf.h
80
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
81
 
 
82
 
pngtest$(O): png.h pngconf.h
83
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
84
 
 
85
 
pngtrans$(O): png.h pngconf.h
86
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
87
 
 
88
 
pngwrite$(O): png.h pngconf.h
89
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
90
 
 
91
 
pngwtran$(O): png.h pngconf.h
92
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
93
 
 
94
 
pngwutil$(O): png.h pngconf.h
95
 
        $(CC) $(CFLAGS) $*.c $(ERRFILE)
96
 
 
97
 
libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
98
 
        wlib -b -c -n -q libpng.lib $(OBJS1)
99
 
        wlib -b -c -q libpng.lib $(OBJS2)
100
 
        wlib -b -c -q libpng.lib $(OBJS3)
101
 
 
102
 
pngtest.exe: pngtest.obj libpng.lib
103
 
        $(LD) $(LDFLAGS) pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
104
 
 
105
 
test: pngtest.exe .symbolic
106
 
        pngtest.exe
107
 
 
108
 
 
109
 
# End of makefile for libpng