X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66b9f7f7e4c649bf21598e18be1f0bf2b433f494..5d6f17a5b92df0fdf4909ed78c35b4a86905ec7e:/contrib/build/stc/makefile.gcc diff --git a/contrib/build/stc/makefile.gcc b/contrib/build/stc/makefile.gcc index 9e7fe276da..d57d2f6d6a 100644 --- a/contrib/build/stc/makefile.gcc +++ b/contrib/build/stc/makefile.gcc @@ -14,7 +14,7 @@ include ../../../build/msw/config.gcc CPPDEPS = -MT$@ -MF$@.d -MD WX_RELEASE_NODOT = 27 -WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0 +WX_VERSION_NODOT = $(WX_RELEASE_NODOT)2 OBJS = \ gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) LIBDIRNAME = ..\..\src\stc\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) @@ -23,11 +23,12 @@ SETUPHDIR = \ STCDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \ -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ - $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) \ - -I..\..\src\stc\..\..\..\include -W -Wall -I..\..\src\stc\..\..\include \ - -I..\..\src\stc\scintilla\include -I..\..\src\stc\scintilla\src -D__WX__ \ - -DSCI_LEXER -DLINK_LEXERS -DWXUSINGDLL -DWXMAKINGDLL_STC $(__RTTIFLAG) \ - $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) + $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \ + -I$(SETUPHDIR) -I..\..\src\stc\..\..\..\include -W -Wall \ + -I..\..\src\stc\..\..\include -I..\..\src\stc\scintilla\include \ + -I..\..\src\stc\scintilla\src -D__WX__ -DSCI_LEXER -DLINK_LEXERS \ + -DWXUSINGDLL -DWXMAKINGDLL_STC $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ + -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) STCDLL_OBJECTS = \ $(OBJS)\stcdll_version_rc.o \ $(OBJS)\stcdll_PlatWX.o \ @@ -36,6 +37,7 @@ STCDLL_OBJECTS = \ $(OBJS)\stcdll_AutoComplete.o \ $(OBJS)\stcdll_CallTip.o \ $(OBJS)\stcdll_CellBuffer.o \ + $(OBJS)\stcdll_CharClassify.o \ $(OBJS)\stcdll_ContractionState.o \ $(OBJS)\stcdll_Document.o \ $(OBJS)\stcdll_DocumentAccessor.o \ @@ -70,6 +72,7 @@ STCDLL_OBJECTS = \ $(OBJS)\stcdll_LexGui4Cli.o \ $(OBJS)\stcdll_LexHTML.o \ $(OBJS)\stcdll_LexHaskell.o \ + $(OBJS)\stcdll_LexInno.o \ $(OBJS)\stcdll_LexKix.o \ $(OBJS)\stcdll_LexLisp.o \ $(OBJS)\stcdll_LexLout.o \ @@ -80,6 +83,7 @@ STCDLL_OBJECTS = \ $(OBJS)\stcdll_LexMatlab.o \ $(OBJS)\stcdll_LexMetapost.o \ $(OBJS)\stcdll_LexNsis.o \ + $(OBJS)\stcdll_LexOpal.o \ $(OBJS)\stcdll_LexOthers.o \ $(OBJS)\stcdll_LexPB.o \ $(OBJS)\stcdll_LexPOV.o \ @@ -94,6 +98,8 @@ STCDLL_OBJECTS = \ $(OBJS)\stcdll_LexTADS3.o \ $(OBJS)\stcdll_LexScriptol.o \ $(OBJS)\stcdll_LexSpecman.o \ + $(OBJS)\stcdll_LexSpice.o \ + $(OBJS)\stcdll_LexTCL.o \ $(OBJS)\stcdll_LexTeX.o \ $(OBJS)\stcdll_LexVB.o \ $(OBJS)\stcdll_LexVHDL.o \ @@ -112,11 +118,12 @@ STCDLL_OBJECTS = \ STCLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \ -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ - $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) \ - -I..\..\src\stc\..\..\..\include -W -Wall -I..\..\src\stc\..\..\include \ - -I..\..\src\stc\scintilla\include -I..\..\src\stc\scintilla\src -D__WX__ \ - -DSCI_LEXER -DLINK_LEXERS $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ - -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) + $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \ + -I$(SETUPHDIR) -I..\..\src\stc\..\..\..\include -W -Wall \ + -I..\..\src\stc\..\..\include -I..\..\src\stc\scintilla\include \ + -I..\..\src\stc\scintilla\src -D__WX__ -DSCI_LEXER -DLINK_LEXERS \ + $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ + $(CXXFLAGS) STCLIB_OBJECTS = \ $(OBJS)\stclib_PlatWX.o \ $(OBJS)\stclib_ScintillaWX.o \ @@ -124,6 +131,7 @@ STCLIB_OBJECTS = \ $(OBJS)\stclib_AutoComplete.o \ $(OBJS)\stclib_CallTip.o \ $(OBJS)\stclib_CellBuffer.o \ + $(OBJS)\stclib_CharClassify.o \ $(OBJS)\stclib_ContractionState.o \ $(OBJS)\stclib_Document.o \ $(OBJS)\stclib_DocumentAccessor.o \ @@ -158,6 +166,7 @@ STCLIB_OBJECTS = \ $(OBJS)\stclib_LexGui4Cli.o \ $(OBJS)\stclib_LexHTML.o \ $(OBJS)\stclib_LexHaskell.o \ + $(OBJS)\stclib_LexInno.o \ $(OBJS)\stclib_LexKix.o \ $(OBJS)\stclib_LexLisp.o \ $(OBJS)\stclib_LexLout.o \ @@ -168,6 +177,7 @@ STCLIB_OBJECTS = \ $(OBJS)\stclib_LexMatlab.o \ $(OBJS)\stclib_LexMetapost.o \ $(OBJS)\stclib_LexNsis.o \ + $(OBJS)\stclib_LexOpal.o \ $(OBJS)\stclib_LexOthers.o \ $(OBJS)\stclib_LexPB.o \ $(OBJS)\stclib_LexPOV.o \ @@ -182,6 +192,8 @@ STCLIB_OBJECTS = \ $(OBJS)\stclib_LexTADS3.o \ $(OBJS)\stclib_LexScriptol.o \ $(OBJS)\stclib_LexSpecman.o \ + $(OBJS)\stclib_LexSpice.o \ + $(OBJS)\stclib_LexTCL.o \ $(OBJS)\stclib_LexTeX.o \ $(OBJS)\stclib_LexVB.o \ $(OBJS)\stclib_LexVHDL.o \ @@ -274,6 +286,9 @@ endif ifeq ($(MSLU),1) __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 endif +ifeq ($(USE_GDIPLUS),1) +__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 +endif ifeq ($(MONOLITHIC),1) __WXLIB_MONO_p = \ -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) @@ -290,6 +305,9 @@ endif ifeq ($(MSLU),1) __UNICOWS_LIB_p = -lunicows endif +ifeq ($(USE_GDIPLUS),1) +__GDIPLUS_LIB_p = -lgdiplus +endif ifeq ($(MONOLITHIC),0) __WXLIB_CORE_p = \ -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core @@ -368,6 +386,9 @@ endif ifeq ($(MSLU),1) __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 endif +ifeq ($(USE_GDIPLUS),1) +__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 +endif all: $(OBJS) @@ -387,7 +408,7 @@ clean: ifeq ($(SHARED),1) $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc_gcc$(VENDORTAG).dll: $(STCDLL_OBJECTS) $(OBJS)\stcdll_version_rc.o - $(CXX) -shared -fPIC -o $@ $(STCDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) + $(CXX) -shared -fPIC -o $@ $(STCDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) endif ifeq ($(SHARED),0) @@ -398,7 +419,7 @@ $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$( endif $(OBJS)\stcdll_version_rc.o: ../../src/stc/../../../src/msw/version.rc - windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/stc/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc_gcc$(VENDORTAG) + windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/stc/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc_gcc$(VENDORTAG) $(OBJS)\stcdll_PlatWX.o: ../../src/stc/PlatWX.cpp $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< @@ -418,6 +439,9 @@ $(OBJS)\stcdll_CallTip.o: ../../src/stc/scintilla/src/CallTip.cxx $(OBJS)\stcdll_CellBuffer.o: ../../src/stc/scintilla/src/CellBuffer.cxx $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< +$(OBJS)\stcdll_CharClassify.o: ../../src/stc/scintilla/src/CharClassify.cxx + $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\stcdll_ContractionState.o: ../../src/stc/scintilla/src/ContractionState.cxx $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< @@ -520,6 +544,9 @@ $(OBJS)\stcdll_LexHTML.o: ../../src/stc/scintilla/src/LexHTML.cxx $(OBJS)\stcdll_LexHaskell.o: ../../src/stc/scintilla/src/LexHaskell.cxx $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< +$(OBJS)\stcdll_LexInno.o: ../../src/stc/scintilla/src/LexInno.cxx + $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\stcdll_LexKix.o: ../../src/stc/scintilla/src/LexKix.cxx $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< @@ -550,6 +577,9 @@ $(OBJS)\stcdll_LexMetapost.o: ../../src/stc/scintilla/src/LexMetapost.cxx $(OBJS)\stcdll_LexNsis.o: ../../src/stc/scintilla/src/LexNsis.cxx $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< +$(OBJS)\stcdll_LexOpal.o: ../../src/stc/scintilla/src/LexOpal.cxx + $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\stcdll_LexOthers.o: ../../src/stc/scintilla/src/LexOthers.cxx $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< @@ -592,6 +622,12 @@ $(OBJS)\stcdll_LexScriptol.o: ../../src/stc/scintilla/src/LexScriptol.cxx $(OBJS)\stcdll_LexSpecman.o: ../../src/stc/scintilla/src/LexSpecman.cxx $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< +$(OBJS)\stcdll_LexSpice.o: ../../src/stc/scintilla/src/LexSpice.cxx + $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< + +$(OBJS)\stcdll_LexTCL.o: ../../src/stc/scintilla/src/LexTCL.cxx + $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\stcdll_LexTeX.o: ../../src/stc/scintilla/src/LexTeX.cxx $(CXX) -c -o $@ $(STCDLL_CXXFLAGS) $(CPPDEPS) $< @@ -655,6 +691,9 @@ $(OBJS)\stclib_CallTip.o: ../../src/stc/scintilla/src/CallTip.cxx $(OBJS)\stclib_CellBuffer.o: ../../src/stc/scintilla/src/CellBuffer.cxx $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< +$(OBJS)\stclib_CharClassify.o: ../../src/stc/scintilla/src/CharClassify.cxx + $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\stclib_ContractionState.o: ../../src/stc/scintilla/src/ContractionState.cxx $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< @@ -757,6 +796,9 @@ $(OBJS)\stclib_LexHTML.o: ../../src/stc/scintilla/src/LexHTML.cxx $(OBJS)\stclib_LexHaskell.o: ../../src/stc/scintilla/src/LexHaskell.cxx $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< +$(OBJS)\stclib_LexInno.o: ../../src/stc/scintilla/src/LexInno.cxx + $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\stclib_LexKix.o: ../../src/stc/scintilla/src/LexKix.cxx $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< @@ -787,6 +829,9 @@ $(OBJS)\stclib_LexMetapost.o: ../../src/stc/scintilla/src/LexMetapost.cxx $(OBJS)\stclib_LexNsis.o: ../../src/stc/scintilla/src/LexNsis.cxx $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< +$(OBJS)\stclib_LexOpal.o: ../../src/stc/scintilla/src/LexOpal.cxx + $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\stclib_LexOthers.o: ../../src/stc/scintilla/src/LexOthers.cxx $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< @@ -829,6 +874,12 @@ $(OBJS)\stclib_LexScriptol.o: ../../src/stc/scintilla/src/LexScriptol.cxx $(OBJS)\stclib_LexSpecman.o: ../../src/stc/scintilla/src/LexSpecman.cxx $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< +$(OBJS)\stclib_LexSpice.o: ../../src/stc/scintilla/src/LexSpice.cxx + $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< + +$(OBJS)\stclib_LexTCL.o: ../../src/stc/scintilla/src/LexTCL.cxx + $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $< + $(OBJS)\stclib_LexTeX.o: ../../src/stc/scintilla/src/LexTeX.cxx $(CXX) -c -o $@ $(STCLIB_CXXFLAGS) $(CPPDEPS) $<