VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.8/scripts/makefile.vcawin32@ 9441

Last change on this file since 9441 was 6395, checked in by vboxsync, 17 years ago

export libpng and zlib so Windows and OS/2 build cleanly.

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
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.vcawin32"
6
7# -------- Microsoft Visual C++ 5.0 and later, uses assembler code --------
8# If you don't want to use assembler (MMX) code, use makefile.vcwin32 instead.
9
10# Compiler, linker, librarian, and other tools
11CC = cl
12LD = link
13AR = lib
14CFLAGS = -DPNG_USE_PNGVCRD -nologo -MD -O2 -W3 -I..\zlib
15LDFLAGS = -nologo
16ARFLAGS = -nologo
17RM = del
18
19# File extensions
20O=.obj
21
22#uncomment next to put error messages in a file
23#ERRFILE= >> pngerrs.log
24
25# Variables
26OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
27OBJS2 = pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O)
28OBJS3 = pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
29OBJS4 = pngvcrd$(O)
30OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
31
32# Targets
33all: libpng.lib
34
35png$(O): png.h pngconf.h
36 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
37
38pngset$(O): png.h pngconf.h
39 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
40
41pngget$(O): png.h pngconf.h
42 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
43
44pngread$(O): png.h pngconf.h
45 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
46
47pngpread$(O): png.h pngconf.h
48 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
49
50pngrtran$(O): png.h pngconf.h
51 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
52
53pngrutil$(O): png.h pngconf.h
54 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
55
56pngerror$(O): png.h pngconf.h
57 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
58
59pngmem$(O): png.h pngconf.h
60 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
61
62pngrio$(O): png.h pngconf.h
63 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
64
65pngwio$(O): png.h pngconf.h
66 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
67
68pngtest$(O): png.h pngconf.h
69 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
70
71pngtrans$(O): png.h pngconf.h
72 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
73
74pngwrite$(O): png.h pngconf.h
75 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
76
77pngwtran$(O): png.h pngconf.h
78 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
79
80pngwutil$(O): png.h pngconf.h
81 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
82
83pngvcrd$(O): png.h pngconf.h
84 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
85
86libpng.lib: $(OBJS)
87 -$(RM) $@
88 $(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE)
89
90pngtest.exe: pngtest$(O) libpng.lib
91 $(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE)
92
93test: pngtest.exe
94 pngtest
95
96clean:
97 -$(RM) *$(O)
98 -$(RM) libpng.lib
99 -$(RM) pngtest.exe
100 -$(RM) pngout.png
101
102# End of makefile for libpng
103
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette