3 # Author: Ulrich Leodolter
4 # Created: Wed May 17 08:36:42 1995
7 # VisualAge C++ V3.0 makefile include file
14 OS2FLAGS=/c /W3 /D__VISAGECPP__ /Ss /Q /N100
15 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
16 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
18 # Change this to your WXWIN directory
19 WXDIR=h:\dev\Wx2\wxwindows
21 WXSRC=$(WXDIR)\src\os2
22 WXINC=$(WXDIR)\include
23 WXBASESRC=$(WXDIR)\src\common
24 EXTRAINC=$(WXDIR)\src\png
26 #####################################################################
27 # These are the possible DLL/non-DLL usages:
29 # Type _DLL/_WINDLL WXUSINGDLL WXMAKINGDLL Library
30 #--------------------------------------------------------------------
31 # Normal application - - - wx.lib
33 # wxWin as DLL Defined - Defined wx200.lib
35 # App using wxWin DLL - Defined - wx200.lib
37 # App built as one DLL Defined - - wx.lib
39 ######################################################################
43 # when compiling an app to use the DLL version of wxWindows
44 # (but not to be a DLL itself), set WXUSINGDLL to 1 in your
45 # makefile just before including ntwxwin.mak.
46 # To compile wxWin _and_ app itself as a DLL, set DLL to 1
47 # in ntwxwin.mak, and do not set WXUSINGDLL.
49 # Compiling wxWindows:
50 #---------------------
51 # Use the dll target to compile wxWindows as DLL; then make 'pch'
52 # to generate a precompiled header for your apps to use. BUG: must compile without
53 # wxExpr (USE_WX_RESOURCES = 0) for this to link properly. Don't know why yet.
54 # Use the dllapp target to compile wxWindows for making a DLL app (not implemented yet)
58 !if "$(WXUSINGDLL)" == "1"
59 EXTRADLLFLAGS=/DWXUSINGDLL=1
63 !if "$(WXMAKINGDLL)" == "1"
64 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
68 !if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
82 # This sets 'D' to a suitable directory name
83 # for this kind of build, and WXLIBNAME to one of wx (static release), wx_d (static debug),
84 # wx200 (DLL release), wx200_d (DLL debug)
86 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
92 !if "$(NEW_WXLIBNAME)" != ""
93 WXLIBNAME=$(NEW_WXLIBNAME)
102 WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
104 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
109 INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(EXTRAINC)
110 LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS) $(WXDIR)\lib\jpeg.lib
112 MAKEPRECOMP=/FiWX/WXPREC.H
115 !if "$(FINAL)" == "0"
117 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
118 LINK_DEBUG_FLAGS=/DEBUG
121 # /O1 - smallest code
125 LINK_DEBUG_FLAGS=/RELEASE
131 !if "$(NOPCH)" == "1"
138 MAKEPRECOMP=/Fi$(PCH)
141 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
142 # If you don't include wxprec.h, use CPPFLAGS2
143 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
144 LINKFLAGS=$(LINK_DEBUG_FLAGS) $(OS2LINKFLAGS) $(EXTRALNKFLAGS)
149 !if "$(WXMAKINGDLL)" == "1"
157 PRECOMP=/SiWX/WXPREC.H
158 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
159 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
160 LINKFLAGS=$(LINK_DEBUG_FLAGS) $(OS2LINKFLAGS) $(EXTRALNKFLAGS)
163 DUMMYOBJ=$(WXDIR)\src\os2\$D\$(DUMMY).obj
167 $(CPPFLAGS2) /Fo$@ /c $<
172 $(CPPFLAGS2) /Fo$@ /c $<