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
17 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
19 # Change this to your WXWIN directory
20 WXDIR=j:\dev\Wx2\wxwindows
22 WXSRC=$(WXDIR)\src\os2
23 WXINC=$(WXDIR)\include
24 WXBASESRC=$(WXDIR)\src\common
25 EXTRAINC=$(WXDIR)\src\png
27 #####################################################################
28 # These are the possible DLL/non-DLL usages:
30 # Type _DLL/_WINDLL WXUSINGDLL WXMAKINGDLL Library
31 #--------------------------------------------------------------------
32 # Normal application - - - wx.lib
34 # wxWin as DLL Defined - Defined wx200.lib
36 # App using wxWin DLL - Defined - wx200.lib
38 # App built as one DLL Defined - - wx.lib
40 ######################################################################
44 # when compiling an app to use the DLL version of wxWindows
45 # (but not to be a DLL itself), set WXUSINGDLL to 1 in your
46 # makefile just before including ntwxwin.mak.
47 # To compile wxWin _and_ app itself as a DLL, set DLL to 1
48 # in ntwxwin.mak, and do not set WXUSINGDLL.
50 # Compiling wxWindows:
51 #---------------------
52 # Use the dll target to compile wxWindows as DLL; then make 'pch'
53 # to generate a precompiled header for your apps to use. BUG: must compile without
54 # wxExpr (USE_WX_RESOURCES = 0) for this to link properly. Don't know why yet.
55 # Use the dllapp target to compile wxWindows for making a DLL app (not implemented yet)
59 !if "$(WXUSINGDLL)" == "1"
60 EXTRADLLFLAGS=/DWXUSINGDLL=1
64 !if "$(WXMAKINGDLL)" == "1"
65 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
69 !if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1"
83 # This sets 'D' to a suitable directory name
84 # for this kind of build, and WXLIBNAME to one of wx (static release), wx_d (static debug),
85 # wx200 (DLL release), wx200_d (DLL debug)
87 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
93 !if "$(NEW_WXLIBNAME)" != ""
94 WXLIBNAME=$(NEW_WXLIBNAME)
103 WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib
105 !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1"
110 INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(EXTRAINC)
111 LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS) $(WXDIR)\lib\jpeg.lib
113 MAKEPRECOMP=/FiWX/WXPREC.H
116 !if "$(FINAL)" == "0"
118 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
119 LINK_DEBUG_FLAGS=/DEBUG
122 # /O1 - smallest code
126 LINK_DEBUG_FLAGS=/RELEASE
132 !if "$(NOPCH)" == "1"
139 MAKEPRECOMP=/Fi$(PCH)
142 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
143 # If you don't include wxprec.h, use CPPFLAGS2
144 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS)
145 LINKFLAGS=$(LINK_DEBUG_FLAGS) $(OS2LINKFLAGS) $(EXTRALNKFLAGS)
150 !if "$(WXMAKINGDLL)" == "1"
158 PRECOMP=/SiWX/WXPREC.H
159 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
160 CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS)
161 LINKFLAGS=$(LINK_DEBUG_FLAGS) $(OS2LINKFLAGS) $(EXTRALNKFLAGS)
164 DUMMYOBJ=$(WXDIR)\src\os2\$D\$(DUMMY).obj
168 $(CPPFLAGS2) /Fo$@ /c $<
173 $(CPPFLAGS2) /Fo$@ /c $<