]>
Commit | Line | Data |
---|---|---|
c6b71bff GD |
1 | # makefile for libpng |
2 | # Copyright (C) 1998 Tim Wegner | |
3 | # For conditions of distribution and use, see copyright notice in png.h | |
4 | # Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib | |
5 | # To use, do "nmake /f scripts\makefile.vcwin32" | |
6 | ||
7 | # -------- Microsoft Visual C++ 4.0 and later, no assembler code -------- | |
8 | # If you want to use assembler code, use makefile.vcawin32 instead. | |
9 | ||
10 | CFLAGS= -Ox -GA3s -nologo -W3 -I..\zlib | |
11 | ||
12 | CC=cl | |
13 | LD=link | |
14 | LDFLAGS= | |
15 | O=.obj | |
16 | ||
17 | #uncomment next to put error messages in a file | |
18 | #ERRFILE= >> pngerrs | |
19 | ||
20 | # variables | |
21 | OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) | |
22 | OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) | |
23 | OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) | |
24 | ||
25 | all: libpng.lib | |
26 | ||
27 | png$(O): png.h pngconf.h | |
28 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
29 | ||
30 | pngset$(O): png.h pngconf.h | |
31 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
32 | ||
33 | pngget$(O): png.h pngconf.h | |
34 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
35 | ||
36 | pngread$(O): png.h pngconf.h | |
37 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
38 | ||
39 | pngpread$(O): png.h pngconf.h | |
40 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
41 | ||
42 | pngrtran$(O): png.h pngconf.h | |
43 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
44 | ||
45 | pngrutil$(O): png.h pngconf.h | |
46 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
47 | ||
48 | pngerror$(O): png.h pngconf.h | |
49 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
50 | ||
51 | pngmem$(O): png.h pngconf.h | |
52 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
53 | ||
54 | pngrio$(O): png.h pngconf.h | |
55 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
56 | ||
57 | pngwio$(O): png.h pngconf.h | |
58 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
59 | ||
60 | pngtest$(O): png.h pngconf.h | |
61 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
62 | ||
63 | pngtrans$(O): png.h pngconf.h | |
64 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
65 | ||
66 | pngwrite$(O): png.h pngconf.h | |
67 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
68 | ||
69 | pngwtran$(O): png.h pngconf.h | |
70 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
71 | ||
72 | pngwutil$(O): png.h pngconf.h | |
73 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
74 | ||
75 | libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3) | |
76 | echo something to del > libpng.lib | |
77 | del libpng.lib | |
78 | lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3) | |
79 | ||
80 | pngtest.exe: pngtest.obj libpng.lib | |
81 | $(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE | |
82 | ||
83 | test: pngtest.exe | |
84 | pngtest | |
85 | ||
86 | # End of makefile for libpng | |
87 |