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 WXSRC=$(WXDIR)\src\os2
22 WXINC=$(WXDIR)\include
23 WXBASESRC=$(WXDIR)\src\common
24 EXTRAINC=$(WXDIR)\src\png
28 #####################################################################
29 # These are the possible DLL/non-DLL usages:
31 # Type _DLL/_WINDLL WXUSINGDLL WXMAKINGDLL Library
32 #--------------------------------------------------------------------
33 # Normal application - - - wx.lib
35 # wxWin as DLL Defined - Defined wx200.lib
37 # App using wxWin DLL - Defined - wx200.lib
39 # App built as one DLL Defined - - wx.lib
41 ######################################################################
45 # when compiling an app to use the DLL version of wxWindows
46 # (but not to be a DLL itself), set WXUSINGDLL to 1 in your
47 # makefile just before including ntwxwin.mak.
48 # To compile wxWin _and_ app itself as a DLL, set DLL to 1
49 # in ntwxwin.mak, and do not set WXUSINGDLL.
51 # Compiling wxWindows:
52 #---------------------
53 # Use the dll target to compile wxWindows as DLL; then make 'pch'
54 # to generate a precompiled header for your apps to use. BUG: must compile without
55 # wxExpr (USE_WX_RESOURCES = 0) for this to link properly. Don't know why yet.
56 # Use the dllapp target to compile wxWindows for making a DLL app (not implemented yet)
60 !if "$(WXUSINGDLL)" == "1"
61 EXTRADLLFLAGS=/DWXUSINGDLL=1
65 !if "$(WXMAKINGDLL)" == "1"
66 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
70 !if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
84 # This sets 'D' to a suitable directory name
85 # for this kind of build, and WXLIBNAME to one of wx (static release), wx_d (static debug),
86 # wx200 (DLL release), wx200_d (DLL debug)
88 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
94 !if "$(NEW_WXLIBNAME)" != ""
95 WXLIBNAME=$(NEW_WXLIBNAME)
104 WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
106 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
111 INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(EXTRAINC)
112 LINKLIBS=CPPOM30I.LIB CPPOOC3I.LIB OS2386.LIB UPM32.LIB NETAPI32.LIB
113 EXTRALIBS=$(WXDIR)\lib\os2png.lib $(WXDIR)\lib\os2zlib.lib $(WXDIR)\lib\os2jpeg.lib $(WXDIR)\lib\os2xpm.lib
114 LIBS=$(WXLIB) $(EXTRALIBS)
116 MAKEPRECOMP=/FiWX/WXPREC.H
119 !if "$(FINAL)" == "0"
121 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
122 LINK_DEBUG_FLAGS=/DEBUG
125 # /O1 - smallest code
129 LINK_DEBUG_FLAGS=/RELEASE
135 !if "$(NOPCH)" == "1"
142 MAKEPRECOMP=/Fi$(PCH)
145 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
146 # If you don't include wxprec.h, use CPPFLAGS2
147 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
148 LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
153 !if "$(WXMAKINGDLL)" == "1"
161 PRECOMP=/SiWX/WXPREC.H
162 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
163 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
164 LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS)
167 DUMMYOBJ=$(WXDIR)\src\os2\$D\$(DUMMY).obj
171 $(CPPFLAGS2) /Fo$@ /c $<
176 $(CPPFLAGS2) /Fo$@ /c $<