VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.54/scripts/makefile.msc@ 62527

Last change on this file since 62527 was 58796, checked in by vboxsync, 9 years ago

libpng 1.2.54 unmodified

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1# makefile for libpng
2# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
3# Copyright (C) 2006, 2009 Glenn Randers-Pehrson
4#
5# This code is released under the libpng license.
6# For conditions of distribution and use, see the disclaimer
7# and license in png.h
8#
9# Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib
10
11# -------- Microsoft C 5.1 and later, does not use assembler code --------
12MODEL=L
13CFLAGS=-Oait -Gs -nologo -W3 -A$(MODEL) -I..\zlib
14#-Ox generates bad code with MSC 5.1
15CC=cl
16LD=link
17LDFLAGS=/e/st:0x1500/noe
18O=.obj
19
20#uncomment next to put error messages in a file
21ERRFILE= >> pngerrs
22
23# variables
24OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
25OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
26OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
27
28all: libpng.lib
29
30png$(O): png.h pngconf.h
31 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
32
33pngset$(O): png.h pngconf.h
34 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
35
36pngget$(O): png.h pngconf.h
37 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
38
39pngread$(O): png.h pngconf.h
40 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
41
42pngpread$(O): png.h pngconf.h
43 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
44
45pngrtran$(O): png.h pngconf.h
46 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
47
48pngrutil$(O): png.h pngconf.h
49 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
50
51pngerror$(O): png.h pngconf.h
52 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
53
54pngmem$(O): png.h pngconf.h
55 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
56
57pngrio$(O): png.h pngconf.h
58 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
59
60pngwio$(O): png.h pngconf.h
61 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
62
63pngtrans$(O): png.h pngconf.h
64 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
65
66pngwrite$(O): png.h pngconf.h
67 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
68
69pngwtran$(O): png.h pngconf.h
70 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
71
72pngwutil$(O): png.h pngconf.h
73 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
74
75libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
76 del libpng.lib
77 lib libpng $(OBJS1);
78 lib libpng $(OBJS2);
79 lib libpng $(OBJS3);
80
81pngtest$(O): png.h pngconf.h
82 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
83
84pngtest.exe: pngtest.obj libpng.lib
85 $(LD) $(LDFLAGS) pngtest.obj,,,libpng.lib ..\zlib\zlib.lib ;
86
87test: pngtest.exe
88 pngtest
89
90# End of makefile for libpng
91
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