aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'win32/makefile')
-rw-r--r--win32/makefile132
1 files changed, 98 insertions, 34 deletions
diff --git a/win32/makefile b/win32/makefile
index 2e51ce2d5..266fbf514 100644
--- a/win32/makefile
+++ b/win32/makefile
@@ -6,19 +6,19 @@
.SUFFIXES: .cxx
CC = g++
-DLLWRAP = g++ -shared -Wl,--kill-at
+DLLWRAP = dllwrap
DEL = del /q
COMPONENT = ../bin/Scintilla.dll
LEXCOMPONENT = ../bin/SciLexer.dll
LEXLIB = Lexers.a
-vpath %.h ../src ../include
-vpath %.cxx ../src
+vpath %.h ../src ../include ../lexlib
+vpath %.cxx ../src ../lexlib ../lexers
LDFLAGS=-mwindows -lstdc++ -limm32 -lole32 -luuid -mno-cygwin
# Add -MMD to get dependencies
-INCLUDEDIRS=-I ../include -I ../src
+INCLUDEDIRS=-I ../include -I ../src -I../lexlib
CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -Wno-strict-overflow -pedantic $(INCLUDEDIRS) -fno-rtti -mno-cygwin
ifdef DEBUG
@@ -31,30 +31,77 @@ endif
.cxx.o:
$(CC) $(CXXFLAGS) -c $<
-ALL: $(COMPONENT) $(LEXCOMPONENT) $(LEXLIB) ScintillaWinS.o WindowAccessor.o
+ALL: $(COMPONENT) $(LEXCOMPONENT) $(LEXLIB) ScintillaWinS.o
clean:
$(DEL) *.exe *.o *.obj *.dll *.res *.map
deps:
- $(CC) -MM $(CXXFLAGS) *.cxx ../src/*.cxx >deps.mak
+ $(CC) -MM $(CXXFLAGS) *.cxx ../src/*.cxx ../lexlib/*.cxx ../lexers/*.cxx >deps.mak
+
+#++Autogenerated -- run src/LexGen.py to regenerate
+#**LEXOBJS=\\\n\(\*.o \)
+LEXOBJS=\
+LexAbaqus.o LexAda.o LexAPDL.o LexAsm.o LexAsn1.o LexASY.o LexAU3.o LexAVE.o \
+LexBaan.o LexBash.o LexBasic.o LexBullant.o LexCaml.o LexCLW.o LexCmake.o \
+LexCOBOL.o LexConf.o LexCPP.o LexCrontab.o LexCsound.o LexCSS.o LexD.o \
+LexEiffel.o LexErlang.o LexEScript.o LexFlagship.o LexForth.o LexFortran.o \
+LexGAP.o LexGui4Cli.o LexHaskell.o LexHTML.o LexInno.o LexKix.o LexLisp.o \
+LexLout.o LexLua.o LexMagik.o LexMarkdown.o LexMatlab.o LexMetapost.o \
+LexMMIXAL.o LexMPT.o LexMSSQL.o LexMySQL.o LexNimrod.o LexNsis.o LexOpal.o \
+LexOthers.o LexPascal.o LexPB.o LexPerl.o LexPLM.o LexPOV.o LexPowerPro.o \
+LexPowerShell.o LexProgress.o LexPS.o LexPython.o LexR.o LexRebol.o LexRuby.o \
+LexScriptol.o LexSmalltalk.o LexSML.o LexSorcus.o LexSpecman.o LexSpice.o \
+LexSQL.o LexTACL.o LexTADS3.o LexTAL.o LexTCL.o LexTeX.o LexVB.o LexVerilog.o \
+LexVHDL.o LexYAML.o
+#--Autogenerated -- end of automatically generated section
+
+BASEOBJS = \
+ AutoComplete.o \
+ CallTip.o \
+ CellBuffer.o \
+ CharacterSet.o \
+ CharClassify.o \
+ ContractionState.o \
+ Decoration.o \
+ Document.o \
+ Editor.o \
+ KeyMap.o \
+ Indicator.o \
+ LineMarker.o \
+ PerLine.o \
+ PlatWin.o \
+ PositionCache.o \
+ PropSetSimple.o \
+ RESearch.o \
+ RunStyles.o \
+ ScintRes.o \
+ Selection.o \
+ Style.o \
+ UniConversion.o \
+ ViewStyle.o \
+ XPM.o
+
+SOBJS = ScintillaWin.o ScintillaBase.o $(BASEOBJS)
-LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard ../src/Lex*.cxx))))
-
-SOBJS = ScintillaWin.o ScintillaBase.o Editor.o CharClassify.o Decoration.o \
- Document.o ContractionState.o CellBuffer.o CallTip.o \
- ScintRes.o PlatWin.o PositionCache.o KeyMap.o Indicator.o LineMarker.o RESearch.o RunStyles.o \
- Selection.o Style.o ViewStyle.o AutoComplete.o UniConversion.o PropSet.o XPM.o PerLine.o
$(COMPONENT): $(SOBJS) Scintilla.def
- $(DLLWRAP) --add-stdcall-alias --target=i386-mingw32 -o $@ $(SOBJS) $(LDFLAGS) $(STRIPFLAG) --relocatable
-
-LOBJS = ScintillaWinL.o ScintillaBaseL.o Editor.o CharClassify.o Decoration.o \
- Document.o ContractionState.o CellBuffer.o CallTip.o \
- ScintRes.o PlatWin.o PositionCache.o KeyMap.o Indicator.o LineMarker.o RESearch.o RunStyles.o \
- Selection.o Style.o ViewStyle.o AutoComplete.o UniConversion.o KeyWords.o \
- DocumentAccessor.o PropSet.o ExternalLexer.o StyleContext.o XPM.o PerLine.o $(LEXOBJS)
+ $(DLLWRAP) --add-stdcall-alias --target i386-mingw32 -o $@ $(SOBJS) $(LDFLAGS) $(STRIPFLAG) --relocatable
+
+LOBJS = \
+ Accessor.o \
+ Catalogue.o \
+ ExternalLexer.o \
+ LexerBase.o \
+ LexerModule.o \
+ LexerSimple.o \
+ ScintillaWinL.o \
+ ScintillaBaseL.o \
+ StyleContext.o \
+ WordList.o \
+ $(BASEOBJS) \
+ $(LEXOBJS)
$(LEXCOMPONENT): $(LOBJS) Scintilla.def
- $(DLLWRAP) --add-stdcall-alias --target=i386-mingw32 -o $@ $(LOBJS) $(LDFLAGS) $(STRIPFLAG) --relocatable
+ $(DLLWRAP) --add-stdcall-alias --target i386-mingw32 -o $@ $(LOBJS) $(LDFLAGS) $(STRIPFLAG) --relocatable
$(LEXLIB): $(LEXOBJS)
$(AR) rc $@ $^
@@ -64,20 +111,37 @@ $(LEXLIB): $(LEXOBJS)
include deps.mak
# These dependencies are maintained by hand as they do not use the default output name
-ScintillaBaseL.o: ScintillaBase.cxx Platform.h Scintilla.h SciLexer.h \
- ContractionState.h CellBuffer.h CallTip.h KeyMap.h Indicator.h \
- LineMarker.h Style.h AutoComplete.h ViewStyle.h Document.h Editor.h \
- ScintillaBase.h PropSet.h Accessor.h DocumentAccessor.h \
- KeyWords.h ExternalLexer.h PerLine.h
-ScintillaWinL.o: ScintillaWin.cxx Platform.h Scintilla.h SciLexer.h \
- ContractionState.h CellBuffer.h CallTip.h KeyMap.h Indicator.h \
- LineMarker.h Style.h AutoComplete.h ViewStyle.h Document.h Editor.h \
- ScintillaBase.h PropSet.h Accessor.h KeyWords.h \
- ExternalLexer.h UniConversion.h PerLine.h
-ScintillaWinS.o: ScintillaWin.cxx Platform.h Scintilla.h \
- ContractionState.h CellBuffer.h CallTip.h KeyMap.h Indicator.h \
- LineMarker.h Style.h AutoComplete.h ViewStyle.h Document.h Editor.h \
- ScintillaBase.h UniConversion.h PerLine.h
+
+ScintillaBaseL.o: ScintillaBase.cxx Platform.h \
+ ILexer.h Scintilla.h SciLexer.h PropSetSimple.h \
+ SplitVector.h Partitioning.h RunStyles.h \
+ ContractionState.h CellBuffer.h CallTip.h \
+ KeyMap.h Indicator.h XPM.h LineMarker.h \
+ Style.h ViewStyle.h AutoComplete.h \
+ CharClassify.h Decoration.h Document.h \
+ Selection.h PositionCache.h Editor.h \
+ ScintillaBase.h LexAccessor.h Accessor.h \
+ LexerModule.h Catalogue.h
+
+ScintillaWinL.o: ScintillaWin.cxx Platform.h \
+ ILexer.h Scintilla.h SplitVector.h \
+ Partitioning.h RunStyles.h ContractionState.h \
+ CellBuffer.h CallTip.h KeyMap.h Indicator.h \
+ XPM.h LineMarker.h Style.h AutoComplete.h \
+ ViewStyle.h CharClassify.h Decoration.h \
+ Document.h Selection.h PositionCache.h \
+ Editor.h ScintillaBase.h UniConversion.h \
+ LexAccessor.h Accessor.h \
+ LexerModule.h Catalogue.h
+
+ScintillaWinS.o: ScintillaWin.cxx Platform.h \
+ ILexer.h Scintilla.h SplitVector.h \
+ Partitioning.h RunStyles.h ContractionState.h \
+ CellBuffer.h CallTip.h KeyMap.h Indicator.h \
+ XPM.h LineMarker.h Style.h AutoComplete.h \
+ ViewStyle.h CharClassify.h Decoration.h \
+ Document.h Selection.h PositionCache.h \
+ Editor.h ScintillaBase.h UniConversion.h
ScintillaBaseL.o:
$(CC) $(CXXFLAGS) -D SCI_LEXER -c $< -o $@