VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.54/scripts/makefile.watcom@ 62193

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

libpng 1.2.54 unmodified

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1# Makefile for libpng
2# Watcom C/C++ 10.0 and later, 32-bit protected mode, flat memory model
3
4# Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
5# copyright 1995 Guy Eric Schalnat, Group 42, Inc.
6#
7# This code is released under the libpng license.
8# For conditions of distribution and use, see the disclaimer
9# and license in png.h
10
11# To use, do "wmake /f scripts\makefile.watcom"
12
13
14# ---------------------- Watcom C/C++ 10.0 and later -----------------------
15
16# Where the zlib library and include files are located
17ZLIBLIB=..\zlib
18ZLIBINC=..\zlib
19
20# Target OS
21OS=DOS
22#OS=NT
23
24# Target CPU
25CPU=6 # Pentium Pro
26#CPU=5 # Pentium
27
28# Calling convention
29CALLING=r # registers
30#CALLING=s # stack
31
32# Uncomment next to put error messages in a file
33#ERRFILE=>>pngerrs
34
35# --------------------------------------------------------------------------
36
37
38CC=wcc386
39CFLAGS=-$(CPU)$(CALLING) -fp$(CPU) -fpi87 -oneatx -mf -bt=$(OS) -i=$(ZLIBINC) -zq
40LD=wcl386
41LDFLAGS=-zq
42
43O=.obj
44
45OBJS1=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
46OBJS2=pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
47OBJS3=pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
48
49
50all: test
51
52png$(O): png.h pngconf.h
53 $(CC) $(CFLAGS) $*.c $(ERRFILE)
54
55pngset$(O): png.h pngconf.h
56 $(CC) $(CFLAGS) $*.c $(ERRFILE)
57
58pngget$(O): png.h pngconf.h
59 $(CC) $(CFLAGS) $*.c $(ERRFILE)
60
61pngread$(O): png.h pngconf.h
62 $(CC) $(CFLAGS) $*.c $(ERRFILE)
63
64pngpread$(O): png.h pngconf.h
65 $(CC) $(CFLAGS) $*.c $(ERRFILE)
66
67pngrtran$(O): png.h pngconf.h
68 $(CC) $(CFLAGS) $*.c $(ERRFILE)
69
70pngrutil$(O): png.h pngconf.h
71 $(CC) $(CFLAGS) $*.c $(ERRFILE)
72
73pngerror$(O): png.h pngconf.h
74 $(CC) $(CFLAGS) $*.c $(ERRFILE)
75
76pngmem$(O): png.h pngconf.h
77 $(CC) $(CFLAGS) $*.c $(ERRFILE)
78
79pngrio$(O): png.h pngconf.h
80 $(CC) $(CFLAGS) $*.c $(ERRFILE)
81
82pngwio$(O): png.h pngconf.h
83 $(CC) $(CFLAGS) $*.c $(ERRFILE)
84
85pngtest$(O): png.h pngconf.h
86 $(CC) $(CFLAGS) $*.c $(ERRFILE)
87
88pngtrans$(O): png.h pngconf.h
89 $(CC) $(CFLAGS) $*.c $(ERRFILE)
90
91pngwrite$(O): png.h pngconf.h
92 $(CC) $(CFLAGS) $*.c $(ERRFILE)
93
94pngwtran$(O): png.h pngconf.h
95 $(CC) $(CFLAGS) $*.c $(ERRFILE)
96
97pngwutil$(O): png.h pngconf.h
98 $(CC) $(CFLAGS) $*.c $(ERRFILE)
99
100libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
101 wlib -b -c -n -q libpng.lib $(OBJS1)
102 wlib -b -c -q libpng.lib $(OBJS2)
103 wlib -b -c -q libpng.lib $(OBJS3)
104
105pngtest.exe: pngtest.obj libpng.lib
106 $(LD) $(LDFLAGS) pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
107
108test: pngtest.exe .symbolic
109 pngtest.exe
110
111
112# End of makefile for libpng
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