]> git.saurik.com Git - wxWidgets.git/blame - src/xpm/MAKEFILE.VA
wxFileSystem now compiles if wxUSE_HTML (required by wxHTML)
[wxWidgets.git] / src / xpm / MAKEFILE.VA
CommitLineData
16a12a3d
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 os2xpm.lib library for OS/2 3.0/4.0
11
12# Suffixes
13OBJSUFF=obj
14SRCSUFF=cpp
15
16OS2FLAGS=/c /W3 /DOS232 /D__VISAGECPP__ /Dwx_msw /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
97507cce 22WXDIR = j:\dev\wx2\wxWindows
16a12a3d
DW
23
24OS2XPMDIR=$(WXDIR)\src\xpm
25OS2XPMINC=$(WINXPMDIR)
26OS2XPMLIB=$(WXDIR)\lib\os2xpm.lib
27
28INC=-I$(WXDIR)\src\xpm -I$(OS2XPMINC)
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
60!if [md $(OS2XPMDIR)\$D]
61!endif
62
63
64CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
65
66{..\xpm}.c{..\xpm\$D}.obj:
67 @echo $<
68 icc @<<
69$(CPPFLAGS) /Fo$@ /Tp $<
70<<
71
72OBJECTS = \
73 ..\xpm\$D\crbuffri.obj \
74 ..\xpm\$D\crdatfri.obj \
75 ..\xpm\$D\create.obj \
76 ..\xpm\$D\crifrbuf.obj \
77 ..\xpm\$D\crifrdat.obj \
78 ..\xpm\$D\data.obj \
79 ..\xpm\$D\hashtab.obj \
80 ..\xpm\$D\misc.obj \
81 ..\xpm\$D\parse.obj \
82 ..\xpm\$D\rdftodat.obj \
83 ..\xpm\$D\rdftoi.obj \
84 ..\xpm\$D\rgb.obj \
85 ..\xpm\$D\scan.obj \
86 ..\xpm\$D\simx.obj \
87 ..\xpm\$D\wrffrdat.obj \
88 ..\xpm\$D\wrffrp.obj \
89 ..\xpm\$D\wrffri.obj
90
91all: $(OS2XPMLIB)
92
93$(WXDIR)\lib\os2xpm.lib: $(OBJECTS)
94 touch $(WXDIR)\lib\os2xpm.lib
95 del $(WXDIR)\lib\os2xpm.lib
96 ilib $(OS2LIBFLAGS) $@ @<<
97 $**;
98<<
99
100clean:
50c375d3
DW
101 del $(OS2XPMLIB)
102 erase /N $(OS2XPMDIR)\$D
103 rd $(OS2XPMDIR)\$D
16a12a3d
DW
104
105cleanall: clean
106