X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2265a2d51e3338353aeaa56f8d7521d7993342f7..3527f29c8769e09d796c547c0c309f8b86407012:/contrib/build/stc/makefile.wat diff --git a/contrib/build/stc/makefile.wat b/contrib/build/stc/makefile.wat index 0a960b553c..dcb0e1010d 100644 --- a/contrib/build/stc/makefile.wat +++ b/contrib/build/stc/makefile.wat @@ -27,6 +27,13 @@ WATCOM_CWD = $+ $(%cdrive):$(%cwd) $- ### Conditionally set variables: ### +LIBDIRNAME = +!ifeq SHARED 0 +LIBDIRNAME = ..\..\src\stc\..\..\..\lib\wat_lib$(CFG) +!endif +!ifeq SHARED 1 +LIBDIRNAME = ..\..\src\stc\..\..\..\lib\wat_dll$(CFG) +!endif PORTNAME = !ifeq USE_GUI 0 PORTNAME = base @@ -105,6 +112,13 @@ __DEBUG_DEFINE_p = -d__WXDEBUG__ !ifeq DEBUG_FLAG 1 __DEBUG_DEFINE_p = -d__WXDEBUG__ !endif +__EXCEPTIONSFLAG = +!ifeq USE_EXCEPTIONS 0 +__EXCEPTIONSFLAG = +!endif +!ifeq USE_EXCEPTIONS 1 +__EXCEPTIONSFLAG = -xs +!endif __LIB_JPEG_p = !ifeq USE_GUI 1 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib @@ -133,7 +147,7 @@ __RUNTIME_LIBS = !endif __UNICODE_DEFINE_p = !ifeq UNICODE 1 -__UNICODE_DEFINE_p = -dwxUSE_UNICODE=1 +__UNICODE_DEFINE_p = -d_UNICODE !endif __WXLIB_BASE_p = !ifeq MONOLITHIC 0 @@ -156,7 +170,7 @@ __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__ __stcdll___depname = !ifeq SHARED 1 __stcdll___depname = & - $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc_wat$(VENDORTAG).dll + $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc_wat$(VENDORTAG).dll !endif __stclib___depname = !ifeq SHARED 0 @@ -166,19 +180,16 @@ __stclib___depname = & ### Variables: ### -LIBDIRNAME = & - ..\..\src\stc\..\..\..\lib\wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) OBJS = & wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) +SETUPHDIR = & + $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) STCDLL_CXXFLAGS = $(CPPFLAGS) -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm & $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) & - $(__UNICODE_DEFINE_p) -i=..\..\src\stc\..\..\..\include -i=$(LIBDIRNAME) & - -i=..\..\src\stc\..\..\..\src\tiff -i=..\..\src\stc\..\..\..\src\jpeg & - -i=..\..\src\stc\..\..\..\src\png -i=..\..\src\stc\..\..\..\src\zlib & - -i=..\..\src\stc\..\..\..\src\regex & - -i=..\..\src\stc\..\..\..\src\expat\lib -i=..\..\src\stc\..\..\include & - -i=..\..\src\stc\scintilla\include -i=..\..\src\stc\scintilla\src -d__WX__ & - -dSCI_LEXER -dLINK_LEXERS -dWXUSINGDLL -dWXMAKINGDLL_STC $(CXXFLAGS) + $(__UNICODE_DEFINE_p) -i=..\..\src\stc\..\..\..\include -i=$(SETUPHDIR) & + -i=..\..\src\stc\..\..\include -i=..\..\src\stc\scintilla\include & + -i=..\..\src\stc\scintilla\src -d__WX__ -dSCI_LEXER -dLINK_LEXERS & + -dWXUSINGDLL -dWXMAKINGDLL_STC $(CXXFLAGS) $(__EXCEPTIONSFLAG) STCDLL_OBJECTS = & $(OBJS)\stcdll_PlatWX.obj & $(OBJS)\stcdll_ScintillaWX.obj & @@ -210,14 +221,18 @@ STCDLL_OBJECTS = & $(OBJS)\stcdll_LexLisp.obj & $(OBJS)\stcdll_LexLout.obj & $(OBJS)\stcdll_LexLua.obj & + $(OBJS)\stcdll_LexMMIXAL.obj & $(OBJS)\stcdll_LexMatlab.obj & + $(OBJS)\stcdll_LexNsis.obj & $(OBJS)\stcdll_LexOthers.obj & $(OBJS)\stcdll_LexPOV.obj & + $(OBJS)\stcdll_LexPS.obj & $(OBJS)\stcdll_LexPascal.obj & $(OBJS)\stcdll_LexPerl.obj & $(OBJS)\stcdll_LexPython.obj & $(OBJS)\stcdll_LexRuby.obj & $(OBJS)\stcdll_LexSQL.obj & + $(OBJS)\stcdll_LexScriptol.obj & $(OBJS)\stcdll_LexVB.obj & $(OBJS)\stcdll_LineMarker.obj & $(OBJS)\stcdll_PropSet.obj & @@ -231,13 +246,10 @@ STCDLL_OBJECTS = & $(OBJS)\stcdll_XPM.obj STCLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm & $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) & - $(__UNICODE_DEFINE_p) -i=..\..\src\stc\..\..\..\include -i=$(LIBDIRNAME) & - -i=..\..\src\stc\..\..\..\src\tiff -i=..\..\src\stc\..\..\..\src\jpeg & - -i=..\..\src\stc\..\..\..\src\png -i=..\..\src\stc\..\..\..\src\zlib & - -i=..\..\src\stc\..\..\..\src\regex & - -i=..\..\src\stc\..\..\..\src\expat\lib -i=..\..\src\stc\..\..\include & - -i=..\..\src\stc\scintilla\include -i=..\..\src\stc\scintilla\src -d__WX__ & - -dSCI_LEXER -dLINK_LEXERS $(CXXFLAGS) + $(__UNICODE_DEFINE_p) -i=..\..\src\stc\..\..\..\include -i=$(SETUPHDIR) & + -i=..\..\src\stc\..\..\include -i=..\..\src\stc\scintilla\include & + -i=..\..\src\stc\scintilla\src -d__WX__ -dSCI_LEXER -dLINK_LEXERS & + $(CXXFLAGS) $(__EXCEPTIONSFLAG) STCLIB_OBJECTS = & $(OBJS)\stclib_PlatWX.obj & $(OBJS)\stclib_ScintillaWX.obj & @@ -269,14 +281,18 @@ STCLIB_OBJECTS = & $(OBJS)\stclib_LexLisp.obj & $(OBJS)\stclib_LexLout.obj & $(OBJS)\stclib_LexLua.obj & + $(OBJS)\stclib_LexMMIXAL.obj & $(OBJS)\stclib_LexMatlab.obj & + $(OBJS)\stclib_LexNsis.obj & $(OBJS)\stclib_LexOthers.obj & $(OBJS)\stclib_LexPOV.obj & + $(OBJS)\stclib_LexPS.obj & $(OBJS)\stclib_LexPascal.obj & $(OBJS)\stclib_LexPerl.obj & $(OBJS)\stclib_LexPython.obj & $(OBJS)\stclib_LexRuby.obj & $(OBJS)\stclib_LexSQL.obj & + $(OBJS)\stclib_LexScriptol.obj & $(OBJS)\stclib_LexVB.obj & $(OBJS)\stclib_LineMarker.obj & $(OBJS)\stclib_PropSet.obj & @@ -379,15 +395,24 @@ $(OBJS)\stcdll_LexLout.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexLout.cx $(OBJS)\stcdll_LexLua.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexLua.cxx $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< +$(OBJS)\stcdll_LexMMIXAL.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexMMIXAL.cxx + $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< + $(OBJS)\stcdll_LexMatlab.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexMatlab.cxx $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< +$(OBJS)\stcdll_LexNsis.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexNsis.cxx + $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< + $(OBJS)\stcdll_LexOthers.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexOthers.cxx $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< $(OBJS)\stcdll_LexPOV.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexPOV.cxx $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< +$(OBJS)\stcdll_LexPS.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexPS.cxx + $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< + $(OBJS)\stcdll_LexPascal.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexPascal.cxx $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< @@ -403,6 +428,9 @@ $(OBJS)\stcdll_LexRuby.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexRuby.cx $(OBJS)\stcdll_LexSQL.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexSQL.cxx $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< +$(OBJS)\stcdll_LexScriptol.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexScriptol.cxx + $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< + $(OBJS)\stcdll_LexVB.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexVB.cxx $(CXX) -zq -fo=$^@ $(STCDLL_CXXFLAGS) $< @@ -526,15 +554,24 @@ $(OBJS)\stclib_LexLout.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexLout.cx $(OBJS)\stclib_LexLua.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexLua.cxx $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< +$(OBJS)\stclib_LexMMIXAL.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexMMIXAL.cxx + $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< + $(OBJS)\stclib_LexMatlab.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexMatlab.cxx $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< +$(OBJS)\stclib_LexNsis.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexNsis.cxx + $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< + $(OBJS)\stclib_LexOthers.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexOthers.cxx $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< $(OBJS)\stclib_LexPOV.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexPOV.cxx $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< +$(OBJS)\stclib_LexPS.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexPS.cxx + $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< + $(OBJS)\stclib_LexPascal.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexPascal.cxx $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< @@ -550,6 +587,9 @@ $(OBJS)\stclib_LexRuby.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexRuby.cx $(OBJS)\stclib_LexSQL.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexSQL.cxx $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< +$(OBJS)\stclib_LexScriptol.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexScriptol.cxx + $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< + $(OBJS)\stclib_LexVB.obj : .AUTODEPEND ../../src/stc\scintilla\src\LexVB.cxx $(CXX) -zq -fo=$^@ $(STCLIB_CXXFLAGS) $< @@ -597,19 +637,19 @@ clean : .SYMBOLIC -if exist $(OBJS)\*.res del $(OBJS)\*.res -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk - -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc_wat$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc_wat$(VENDORTAG).dll + -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc_wat$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc_wat$(VENDORTAG).dll -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc.lib -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc.lib !ifeq SHARED 1 -$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc_wat$(VENDORTAG).dll : $(STCDLL_OBJECTS) +$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_stc_wat$(VENDORTAG).dll : $(STCDLL_OBJECTS) @%create $(OBJS)\stcdll.lbc @%append $(OBJS)\stcdll.lbc option quiet @%append $(OBJS)\stcdll.lbc name $^@ - @%append $(OBJS)\stcdll.lbc option incremental + @%append $(OBJS)\stcdll.lbc option caseexact @%append $(OBJS)\stcdll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) @for %i in ($(STCDLL_OBJECTS)) do @%append $(OBJS)\stcdll.lbc file %i - @for %i in ( $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)) do @%append $(OBJS)\stcdll.lbc library %i + @for %i in ( $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) ) do @%append $(OBJS)\stcdll.lbc library %i @%append $(OBJS)\stcdll.lbc @%append $(OBJS)\stcdll.lbc system nt_dll wlink @$(OBJS)\stcdll.lbc