3 # Author: David Webster
4 # Created: Wed Apr 17 08:36:42 1999
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
18 # Set an environment variable, WXWIN, to your WXWIN directory
21 # Set to where your UPM and LAN libs are
23 NETLIB=D:\IBMLAN\NETSRC\LIB
25 WXSRC=$(WXDIR)\src\os2
26 WXINC=$(WXDIR)\include
27 WXBASESRC=$(WXDIR)\src\common
28 EXTRAINC=$(WXDIR)\src\png
32 #####################################################################
33 # These are the possible DLL/non-DLL usages:
35 # Type _DLL/_WINDLL WXUSINGDLL WXMAKINGDLL Library
36 #--------------------------------------------------------------------
37 # Normal application - - - wx.lib
39 # wxWin as DLL Defined - Defined wx214.lib
41 # App using wxWin DLL - Defined - wx214.lib
43 # App built as one DLL Defined - - wx.lib
45 ######################################################################
49 # when compiling an app to use the DLL version of wxWindows
50 # (but not to be a DLL itself), set WXUSINGDLL to 1 in your
51 # makefile just before including ntwxwin.mak.
52 # To compile wxWin _and_ app itself as a DLL, set DLL to 1
53 # in ntwxwin.mak, and do not set WXUSINGDLL.
55 # Compiling wxWindows:
56 #---------------------
57 # Use the dll target to compile wxWindows as DLL; then make 'pch'
58 # to generate a precompiled header for your apps to use. BUG: must compile without
59 # wxExpr (USE_WX_RESOURCES = 0) for this to link properly. Don't know why yet.
60 # Use the dllapp target to compile wxWindows for making a DLL app (not implemented yet)
64 !if "$(WXUSINGDLL)" == "1"
65 EXTRADLLFLAGS=/DWXUSINGDLL=1
69 !if "$(WXMAKINGDLL)" == "1"
70 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
74 !if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
88 # This sets 'D' to a suitable directory name
89 # for this kind of build, and WXLIBNAME to one of wx (static release), wx_d (static debug),
90 # wx200 (DLL release), wx200_d (DLL debug)
92 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
98 !if "$(NEW_WXLIBNAME)" != ""
99 WXLIBNAME=$(NEW_WXLIBNAME)
102 !if "$(FINAL)" == "1"
108 WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
110 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
115 INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(EXTRAINC)
116 LINKLIBS=CPPOM30I.LIB CPPOOC3I.LIB OS2386.LIB $(UPMLIB)\UPM32.LIB $(NETLIB)\NETAPI32.LIB
117 EXTRALIBS=$(WXDIR)\lib\os2png.lib $(WXDIR)\lib\os2zlib.lib $(WXDIR)\lib\os2jpeg.lib $(WXDIR)\lib\os2xpm.lib
118 LIBS=$(WXLIB) $(EXTRALIBS)
120 MAKEPRECOMP=/FiWX/WXPREC.H
123 !if "$(FINAL)" == "0"
125 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
126 LINK_DEBUG_FLAGS=/DEBUG
129 # /O1 - smallest code
133 LINK_DEBUG_FLAGS=/RELEASE
139 !if "$(NOPCH)" == "1"
146 MAKEPRECOMP=/Fi$(PCH)
149 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
150 # If you don't include wxprec.h, use CPPFLAGS2
151 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
152 LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
157 !if "$(WXMAKINGDLL)" == "1"
165 PRECOMP=/SiWX/WXPREC.H
166 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
167 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
168 LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
171 DUMMYOBJ=$(WXDIR)\src\os2\$D\$(DUMMY).obj
175 $(CPPFLAGS2) /Fo$@ /c $<
180 $(CPPFLAGS2) /Fo$@ /c $<