author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 10:37:55 +0300 | |
changeset 33 | 3e2da88830cd |
parent 30 | 5dc02b23752f |
permissions | -rw-r--r-- |
0 | 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. |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
6 |
# |
0 | 7 |
# This code is released under the libpng license. |
8 |
# For conditions of distribution and use, see the disclaimer |
|
9 |
# and license in png.h |
|
10 |
||
11 |
# To use, do "wmake /f scripts\makefile.watcom" |
|
12 |
||
13 |
||
14 |
# ---------------------- Watcom C/C++ 10.0 and later ----------------------- |
|
15 |
||
16 |
# Where the zlib library and include files are located |
|
17 |
ZLIBLIB=..\zlib |
|
18 |
ZLIBINC=..\zlib |
|
19 |
||
20 |
# Target OS |
|
21 |
OS=DOS |
|
22 |
#OS=NT |
|
23 |
||
24 |
# Target CPU |
|
25 |
CPU=6 # Pentium Pro |
|
26 |
#CPU=5 # Pentium |
|
27 |
||
28 |
# Calling convention |
|
29 |
CALLING=r # registers |
|
30 |
#CALLING=s # stack |
|
31 |
||
32 |
# Uncomment next to put error messages in a file |
|
33 |
#ERRFILE=>>pngerrs |
|
34 |
||
35 |
# -------------------------------------------------------------------------- |
|
36 |
||
37 |
||
38 |
CC=wcc386 |
|
39 |
CFLAGS=-$(CPU)$(CALLING) -fp$(CPU) -fpi87 -oneatx -mf -bt=$(OS) -i=$(ZLIBINC) -zq |
|
40 |
LD=wcl386 |
|
41 |
LDFLAGS=-zq |
|
42 |
||
43 |
O=.obj |
|
44 |
||
45 |
OBJS1=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) |
|
46 |
OBJS2=pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) |
|
47 |
OBJS3=pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) |
|
48 |
||
49 |
||
50 |
all: test |
|
51 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
52 |
png$(O): png.h pngconf.h pngpriv.h |
0 | 53 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
54 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
55 |
pngset$(O): png.h pngconf.h pngpriv.h |
0 | 56 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
57 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
58 |
pngget$(O): png.h pngconf.h pngpriv.h |
0 | 59 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
60 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
61 |
pngread$(O): png.h pngconf.h pngpriv.h |
0 | 62 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
63 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
64 |
pngpread$(O): png.h pngconf.h pngpriv.h |
0 | 65 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
66 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
67 |
pngrtran$(O): png.h pngconf.h pngpriv.h |
0 | 68 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
69 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
70 |
pngrutil$(O): png.h pngconf.h pngpriv.h |
0 | 71 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
72 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
73 |
pngerror$(O): png.h pngconf.h pngpriv.h |
0 | 74 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
75 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
76 |
pngmem$(O): png.h pngconf.h pngpriv.h |
0 | 77 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
78 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
79 |
pngrio$(O): png.h pngconf.h pngpriv.h |
0 | 80 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
81 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
82 |
pngwio$(O): png.h pngconf.h pngpriv.h |
0 | 83 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
84 |
||
85 |
pngtest$(O): png.h pngconf.h |
|
86 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
|
87 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
88 |
pngtrans$(O): png.h pngconf.h pngpriv.h |
0 | 89 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
90 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
91 |
pngwrite$(O): png.h pngconf.h pngpriv.h |
0 | 92 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
93 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
94 |
pngwtran$(O): png.h pngconf.h pngpriv.h |
0 | 95 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
96 |
||
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
97 |
pngwutil$(O): png.h pngconf.h pngpriv.h |
0 | 98 |
$(CC) $(CFLAGS) $*.c $(ERRFILE) |
99 |
||
100 |
libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3) |
|
101 |
wlib -b -c -n -q libpng.lib $(OBJS1) |
|
102 |
wlib -b -c -q libpng.lib $(OBJS2) |
|
103 |
wlib -b -c -q libpng.lib $(OBJS3) |
|
104 |
||
105 |
pngtest.exe: pngtest.obj libpng.lib |
|
106 |
$(LD) $(LDFLAGS) pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib |
|
107 |
||
108 |
test: pngtest.exe .symbolic |
|
109 |
pngtest.exe |
|
110 |
||
111 |
||
112 |
# End of makefile for libpng |