]> git.saurik.com Git - wxWidgets.git/blame - src/png/MAKEFILE.VA
Added WXDLLEXPORT to wxChrono
[wxWidgets.git] / src / png / MAKEFILE.VA
CommitLineData
735c116a
DW
1#
2# File: makefile.vc
3# Author: David Webster
4# Created: 1999
5# Updated:
6# Copyright: c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds os2png.lib library for OS/2 3.0/4.0
11
12# Suffixes
13OBJSUFF=obj
14SRCSUFF=cpp
15
16OS2FLAGS=/c /W3 /DOS232 /D__VISAGECPP__ /Ss /Q /N100
17OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
18OS2LIBFLAGS=/NOL /NOE
19OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
20
21# Change WXDIR or WXWIN to wherever wxWindows is found
22WXDIR = j:\dev\wx2\wxWindows
23
24OS2PNGDIR=$(WXDIR)\src\png
25OS2PNGINC=$(WINPNGDIR)
26OS2PNGLIB=$(WXDIR)\lib\os2png.lib
27
28INC=-I$(WXDIR)\src\zlib -I$(OS2PNGINC)
29
30!ifndef FINAL
31FINAL=0
32!endif
33
34!if "$(NOPCH)" == "1"
35PCH=
36PRECOMP=
37MAKEPRECOMP=
38!else
39PCH=$(WXLIBNAME).pch
40PRECOMP=/Si$(PCH)
41MAKEPRECOMP=/Fi$(PCH)
42!endif
43
44!if "$(FINAL)" == "0"
45D=Debug
46OPT =
47DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
48LINK_DEBUG_FLAGS=/DEBUG
49CRTFLAG=/Gm /Gd
50!else
51# /O1 - smallest code
52# /O2 - fastest code
53D=Release
54OPT = /O+ /Oc /G5
55DEBUG_FLAGS=
56LINK_DEBUG_FLAGS=/RELEASE
57CRTFLAG=/Gm /Gd
58!endif
59
60CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
61
62{..\png}.c{..\png\$D}.obj:
63 @echo $<
64 icc @<<
65$(CPPFLAGS) /Fo$@ /Tp $<
66<<
67
68OBJECTS = \
69 ..\png\$D\png.obj \
70 ..\png\$D\pngread.obj \
71 ..\png\$D\pngrtran.obj \
72 ..\png\$D\pngrutil.obj \
73 ..\png\$D\pngpread.obj \
74 ..\png\$D\pngtrans.obj \
75 ..\png\$D\pngwrite.obj \
76 ..\png\$D\pngwtran.obj \
77 ..\png\$D\pngwutil.obj \
78 ..\png\$D\pngerror.obj \
79 ..\png\$D\pngmem.obj \
80 ..\png\$D\pngwio.obj \
81 ..\png\$D\pngrio.obj \
82 ..\png\$D\pngget.obj \
83 ..\png\$D\pngset.obj
84
85all: $(OS2PNGLIB)
86
87$(OS2PNGDIR)\$D:
88 md $(OS2PNGDIR)\$D
89
90$(WXDIR)\lib\os2png.lib: $(OBJECTS)
91 touch $(WXDIR)\lib\os2png.lib
92 del $(WXDIR)\lib\os2png.lib
93 ilib $(OS2LIBFLAGS) $@ @<<
94 $**;
95<<
96
97clean:
98 del *.obj
99 del *.exe
100 del *.lib
101
102cleanall: clean
103