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
26 WXSRC=$(WXDIR)\src\os2
27 WXINC=$(WXDIR)\include
28 WXBASESRC=$(WXDIR)\src\common
29 EXTRAINC=$(WXDIR)\src\png
33 #####################################################################
34 # These are the possible DLL/non-DLL usages:
36 # Type _DLL/_WINDLL WXUSINGDLL WXMAKINGDLL Library
37 #--------------------------------------------------------------------
38 # Normal application - - - wx.lib
40 # wxWin as DLL Defined - Defined wx25.lib
42 # App using wxWin DLL - Defined - wx25.lib
44 # App built as one DLL Defined - - wx.lib
46 ######################################################################
50 # when compiling an app to use the DLL version of wxWindows
51 # (but not to be a DLL itself), set WXUSINGDLL to 1 in your
52 # makefile just before including ntwxwin.mak.
53 # To compile wxWin _and_ app itself as a DLL, set DLL to 1
54 # in ntwxwin.mak, and do not set WXUSINGDLL.
56 # Compiling wxWindows:
57 #---------------------
58 # Use the dll target to compile wxWindows as DLL; then make 'pch'
59 # to generate a precompiled header for your apps to use. BUG: must compile without
60 # wxExpr (USE_WX_RESOURCES = 0) for this to link properly. Don't know why yet.
61 # Use the dllapp target to compile wxWindows for making a DLL app (not implemented yet)
65 !if "$(WXUSINGDLL)" == "1"
66 EXTRADLLFLAGS=/DWXUSINGDLL=1
70 !if "$(WXMAKINGDLL)" == "1"
71 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
75 !if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
89 # This sets 'D' to a suitable directory name
90 # for this kind of build, and WXLIBNAME to one of wx (static release), wx_d (static debug),
91 # wx200 (DLL release), wx200_d (DLL debug)
93 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
99 !if "$(NEW_WXLIBNAME)" != ""
100 WXLIBNAME=$(NEW_WXLIBNAME)
103 !if "$(FINAL)" == "1"
104 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
110 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
117 WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
119 INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(WXDIR)/src/tiff -I$(WXDIR)/src/png -I$(EXTRAINC)
120 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
121 LINKLIBS=CPPOM30I.LIB CPPOOC3I.LIB OS2386.LIB $(UPMLIB)\UPM32.LIB $(NETLIB)\NETAPI32.LIB $(TCPIP)\TCP32DLL.LIB $(TCPIP)\SO32DLL.LIB $(TCPIP)\TCPIP32.LIB $(TCPIP)\R0LIB32.LIB
122 EXTRALIBS=$(WXDIR)\lib\os2pngd.lib $(WXDIR)\lib\os2zlibd.lib $(WXDIR)\lib\os2jpegd.lib $(WXDIR)\lib\os2tiffd.lib
123 !if "$(WXUSINGDLL)" == "1"
124 EXTRALIBS=$(EXTRALIBS) $(WXLIB)
126 LIBS=$(LINKLIBS) $(EXTRALIBS)
128 LINKLIBS=CPPOM30.LIB CPPOOC3.LIB OS2386.LIB $(UPMLIB)\UPM32.LIB $(NETLIB)\NETAPI32.LIB $(TCPIP)\TCP32DLL.LIB $(TCPIP)\SO32DLL.LIB $(TCPIP)\TCPIP32.LIB $(TCPIP)\R0LIB32.LIB
129 EXTRALIBS=$(WXDIR)\lib\os2png.lib $(WXDIR)\lib\os2zlib.lib $(WXDIR)\lib\os2jpeg.lib $(WXDIR)\lib\os2tiff.lib
130 LIBS=$(WXLIB) $(LINKLIBS) $(EXTRALIBS)
133 MAKEPRECOMP=/FiWX/WXPREC.H
136 !if "$(FINAL)" == "0"
138 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
139 LINK_DEBUG_FLAGS=/DEBUG
142 # /O1 - smallest code
146 LINK_DEBUG_FLAGS=/RELEASE
152 !if "$(NOPCH)" == "1"
159 MAKEPRECOMP=/Fi$(PCH)
162 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
163 # If you don't include wxprec.h, use CPPFLAGS2
164 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
165 LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
167 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
175 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
183 PRECOMP=/SiWX/WXPREC.H
184 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
185 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
186 LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
189 DUMMYOBJ=$(WXDIR)\src\os2\$D\$(DUMMY).obj
193 $(CPPFLAGS2) /Fo$@ /c $<
198 $(CPPFLAGS2) /Fo$@ /c $<