]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.wat
supporting events also for root control (needed for event handling of mouse and paint...
[wxWidgets.git] / src / png / scripts / makefile.wat
CommitLineData
c801d85f
KB
1# Makefile for libpng
2# Watcom 10a and later 32-bit protected mode flat memory model
3
4# Adapted by Pawel Mrochen, based on makefile.msc
5# For conditions of distribution and use, see copyright notice in png.h
6# Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib
7
8# To use, do "wmake -f makefile.wat"
9
10# ------------- Watcom 10a and later -------------
11MODEL=-mf
12CFLAGS= $(MODEL) -fpi87 -fp5 -5r -oaeilmnrt -s -zp4 -i=..\zlib
13CC=wcc386
14LD=wcl386
15LIB=wlib -b -c
16LDFLAGS=
17O=.obj
18
19#uncomment next to put error messages in a file
20#ERRFILE= >> pngerrs
21
22# variables
23OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
24OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
25OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
26
27all: test
28
29png$(O): png.h pngconf.h
30 $(CC) $(CFLAGS) $*.c $(ERRFILE)
31
32pngset$(O): png.h pngconf.h
33 $(CC) $(CFLAGS) $*.c $(ERRFILE)
34
35pngget$(O): png.h pngconf.h
36 $(CC) $(CFLAGS) $*.c $(ERRFILE)
37
38pngread$(O): png.h pngconf.h
39 $(CC) $(CFLAGS) $*.c $(ERRFILE)
40
41pngpread$(O): png.h pngconf.h
42 $(CC) $(CFLAGS) $*.c $(ERRFILE)
43
44pngrtran$(O): png.h pngconf.h
45 $(CC) $(CFLAGS) $*.c $(ERRFILE)
46
47pngrutil$(O): png.h pngconf.h
48 $(CC) $(CFLAGS) $*.c $(ERRFILE)
49
50pngerror$(O): png.h pngconf.h
51 $(CC) $(CFLAGS) $*.c $(ERRFILE)
52
53pngmem$(O): png.h pngconf.h
54 $(CC) $(CFLAGS) $*.c $(ERRFILE)
55
56pngrio$(O): png.h pngconf.h
57 $(CC) $(CFLAGS) $*.c $(ERRFILE)
58
59pngwio$(O): png.h pngconf.h
60 $(CC) $(CFLAGS) $*.c $(ERRFILE)
61
62pngtest$(O): png.h pngconf.h
63 $(CC) $(CFLAGS) $*.c $(ERRFILE)
64
65pngtrans$(O): png.h pngconf.h
66 $(CC) $(CFLAGS) $*.c $(ERRFILE)
67
68pngwrite$(O): png.h pngconf.h
69 $(CC) $(CFLAGS) $*.c $(ERRFILE)
70
71pngwtran$(O): png.h pngconf.h
72 $(CC) $(CFLAGS) $*.c $(ERRFILE)
73
74pngwutil$(O): png.h pngconf.h
75 $(CC) $(CFLAGS) $*.c $(ERRFILE)
76
77libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
78 $(LIB) -n libpng.lib +$(OBJS1)
79 $(LIB) libpng.lib +$(OBJS2)
80 $(LIB) libpng.lib +$(OBJS3)
81
82pngtest.exe: pngtest.obj libpng.lib
83 $(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib
84
85test: pngtest.exe
86 pngtest
87
88# End of makefile for libpng