Mercurial > fife-parpg
comparison ext/libpng-1.2.29/scripts/makefile.watcom @ 0:4a0efb7baf70
* Datasets becomes the new trunk and retires after that :-)
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 29 Jun 2008 18:44:17 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4a0efb7baf70 |
---|---|
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 |