]>
Commit | Line | Data |
---|---|---|
0272a10d VZ |
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. | |
b61cc19c PC |
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 | |
0272a10d VZ |
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 | ||
b61cc19c | 52 | png$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
53 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
54 | ||
b61cc19c | 55 | pngset$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
56 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
57 | ||
b61cc19c | 58 | pngget$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
59 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
60 | ||
b61cc19c | 61 | pngread$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
62 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
63 | ||
b61cc19c | 64 | pngpread$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
65 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
66 | ||
b61cc19c | 67 | pngrtran$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
68 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
69 | ||
b61cc19c | 70 | pngrutil$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
71 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
72 | ||
b61cc19c | 73 | pngerror$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
74 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
75 | ||
b61cc19c | 76 | pngmem$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
77 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
78 | ||
b61cc19c | 79 | pngrio$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
80 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
81 | ||
b61cc19c | 82 | pngwio$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
83 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
84 | ||
85 | pngtest$(O): png.h pngconf.h | |
86 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
87 | ||
b61cc19c | 88 | pngtrans$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
89 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
90 | ||
b61cc19c | 91 | pngwrite$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
92 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
93 | ||
b61cc19c | 94 | pngwtran$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
95 | $(CC) $(CFLAGS) $*.c $(ERRFILE) |
96 | ||
b61cc19c | 97 | pngwutil$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
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 |