]>
Commit | Line | Data |
---|---|---|
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 ------------- | |
11 | MODEL=-mf | |
12 | CFLAGS= $(MODEL) -fpi87 -fp5 -5r -oaeilmnrt -s -zp4 -i=..\zlib | |
13 | CC=wcc386 | |
14 | LD=wcl386 | |
15 | LIB=wlib -b -c | |
16 | LDFLAGS= | |
17 | O=.obj | |
18 | ||
19 | #uncomment next to put error messages in a file | |
20 | #ERRFILE= >> pngerrs | |
21 | ||
22 | # variables | |
23 | OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) | |
24 | OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) | |
25 | OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) | |
26 | ||
27 | all: test | |
28 | ||
29 | png$(O): png.h pngconf.h | |
30 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
31 | ||
32 | pngset$(O): png.h pngconf.h | |
33 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
34 | ||
35 | pngget$(O): png.h pngconf.h | |
36 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
37 | ||
38 | pngread$(O): png.h pngconf.h | |
39 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
40 | ||
41 | pngpread$(O): png.h pngconf.h | |
42 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
43 | ||
44 | pngrtran$(O): png.h pngconf.h | |
45 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
46 | ||
47 | pngrutil$(O): png.h pngconf.h | |
48 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
49 | ||
50 | pngerror$(O): png.h pngconf.h | |
51 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
52 | ||
53 | pngmem$(O): png.h pngconf.h | |
54 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
55 | ||
56 | pngrio$(O): png.h pngconf.h | |
57 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
58 | ||
59 | pngwio$(O): png.h pngconf.h | |
60 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
61 | ||
62 | pngtest$(O): png.h pngconf.h | |
63 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
64 | ||
65 | pngtrans$(O): png.h pngconf.h | |
66 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
67 | ||
68 | pngwrite$(O): png.h pngconf.h | |
69 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
70 | ||
71 | pngwtran$(O): png.h pngconf.h | |
72 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
73 | ||
74 | pngwutil$(O): png.h pngconf.h | |
75 | $(CC) $(CFLAGS) $*.c $(ERRFILE) | |
76 | ||
77 | libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3) | |
78 | $(LIB) -n libpng.lib +$(OBJS1) | |
79 | $(LIB) libpng.lib +$(OBJS2) | |
80 | $(LIB) libpng.lib +$(OBJS3) | |
81 | ||
82 | pngtest.exe: pngtest.obj libpng.lib | |
83 | $(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib | |
84 | ||
85 | test: pngtest.exe | |
86 | pngtest | |
87 | ||
88 | # End of makefile for libpng |