]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/scripts/makefile.watcom
Missing header.
[wxWidgets.git] / src / png / scripts / makefile.watcom
... / ...
CommitLineData
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
14ZLIBLIB=..\zlib
15ZLIBINC=..\zlib
16
17# Target OS
18OS=DOS
19#OS=NT
20
21# Target CPU
22CPU=6 # Pentium Pro
23#CPU=5 # Pentium
24
25# Calling convention
26CALLING=r # registers
27#CALLING=s # stack
28
29# Uncomment next to put error messages in a file
30#ERRFILE=>>pngerrs
31
32# --------------------------------------------------------------------------
33
34
35CC=wcc386
36CFLAGS=-$(CPU)$(CALLING) -fp$(CPU) -fpi87 -oneatx -mf -bt=$(OS) -i=$(ZLIBINC) -zq
37LD=wcl386
38LDFLAGS=-zq
39
40O=.obj
41
42OBJS1=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
43OBJS2=pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
44OBJS3=pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
45
46
47all: test
48
49png$(O): png.h pngconf.h
50 $(CC) $(CFLAGS) $*.c $(ERRFILE)
51
52pngset$(O): png.h pngconf.h
53 $(CC) $(CFLAGS) $*.c $(ERRFILE)
54
55pngget$(O): png.h pngconf.h
56 $(CC) $(CFLAGS) $*.c $(ERRFILE)
57
58pngread$(O): png.h pngconf.h
59 $(CC) $(CFLAGS) $*.c $(ERRFILE)
60
61pngpread$(O): png.h pngconf.h
62 $(CC) $(CFLAGS) $*.c $(ERRFILE)
63
64pngrtran$(O): png.h pngconf.h
65 $(CC) $(CFLAGS) $*.c $(ERRFILE)
66
67pngrutil$(O): png.h pngconf.h
68 $(CC) $(CFLAGS) $*.c $(ERRFILE)
69
70pngerror$(O): png.h pngconf.h
71 $(CC) $(CFLAGS) $*.c $(ERRFILE)
72
73pngmem$(O): png.h pngconf.h
74 $(CC) $(CFLAGS) $*.c $(ERRFILE)
75
76pngrio$(O): png.h pngconf.h
77 $(CC) $(CFLAGS) $*.c $(ERRFILE)
78
79pngwio$(O): png.h pngconf.h
80 $(CC) $(CFLAGS) $*.c $(ERRFILE)
81
82pngtest$(O): png.h pngconf.h
83 $(CC) $(CFLAGS) $*.c $(ERRFILE)
84
85pngtrans$(O): png.h pngconf.h
86 $(CC) $(CFLAGS) $*.c $(ERRFILE)
87
88pngwrite$(O): png.h pngconf.h
89 $(CC) $(CFLAGS) $*.c $(ERRFILE)
90
91pngwtran$(O): png.h pngconf.h
92 $(CC) $(CFLAGS) $*.c $(ERRFILE)
93
94pngwutil$(O): png.h pngconf.h
95 $(CC) $(CFLAGS) $*.c $(ERRFILE)
96
97libpng.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
102pngtest.exe: pngtest.obj libpng.lib
103 $(LD) $(LDFLAGS) pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
104
105test: pngtest.exe .symbolic
106 pngtest.exe
107
108
109# End of makefile for libpng