]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.watcom
Merge in from trunk r64802 - r68625
[wxWidgets.git] / src / png / scripts / makefile.watcom
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 #
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
52 png$(O): png.h pngconf.h pngpriv.h
53 $(CC) $(CFLAGS) $*.c $(ERRFILE)
54
55 pngset$(O): png.h pngconf.h pngpriv.h
56 $(CC) $(CFLAGS) $*.c $(ERRFILE)
57
58 pngget$(O): png.h pngconf.h pngpriv.h
59 $(CC) $(CFLAGS) $*.c $(ERRFILE)
60
61 pngread$(O): png.h pngconf.h pngpriv.h
62 $(CC) $(CFLAGS) $*.c $(ERRFILE)
63
64 pngpread$(O): png.h pngconf.h pngpriv.h
65 $(CC) $(CFLAGS) $*.c $(ERRFILE)
66
67 pngrtran$(O): png.h pngconf.h pngpriv.h
68 $(CC) $(CFLAGS) $*.c $(ERRFILE)
69
70 pngrutil$(O): png.h pngconf.h pngpriv.h
71 $(CC) $(CFLAGS) $*.c $(ERRFILE)
72
73 pngerror$(O): png.h pngconf.h pngpriv.h
74 $(CC) $(CFLAGS) $*.c $(ERRFILE)
75
76 pngmem$(O): png.h pngconf.h pngpriv.h
77 $(CC) $(CFLAGS) $*.c $(ERRFILE)
78
79 pngrio$(O): png.h pngconf.h pngpriv.h
80 $(CC) $(CFLAGS) $*.c $(ERRFILE)
81
82 pngwio$(O): png.h pngconf.h pngpriv.h
83 $(CC) $(CFLAGS) $*.c $(ERRFILE)
84
85 pngtest$(O): png.h pngconf.h
86 $(CC) $(CFLAGS) $*.c $(ERRFILE)
87
88 pngtrans$(O): png.h pngconf.h pngpriv.h
89 $(CC) $(CFLAGS) $*.c $(ERRFILE)
90
91 pngwrite$(O): png.h pngconf.h pngpriv.h
92 $(CC) $(CFLAGS) $*.c $(ERRFILE)
93
94 pngwtran$(O): png.h pngconf.h pngpriv.h
95 $(CC) $(CFLAGS) $*.c $(ERRFILE)
96
97 pngwutil$(O): png.h pngconf.h pngpriv.h
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