diff options
Diffstat (limited to 'win32/makefile')
-rw-r--r-- | win32/makefile | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/win32/makefile b/win32/makefile new file mode 100644 index 000000000..0dfded5a9 --- /dev/null +++ b/win32/makefile @@ -0,0 +1,98 @@ +# Make file for Scintilla on Windows +# Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org> +# The License.txt file describes the conditions under which this software may be distributed. +# This makefile assumes the mingw32 version of GCC 2.95.2 is used and changes will +# be needed to use other compilers. + +.SUFFIXES: .cxx +CC = g++ +DLLWRAP = dllwrap + +COMPONENT = ../bin/Scintilla.dll +LEXCOMPONENT = ../bin/SciLexer.dll + +vpath %.h ../src ../include +vpath %.cxx ../src + +LDFLAGS = -lkernel32 -lgdi32 -luser32 -lwinmm -lcomdlg32 -lcomctl32 -limm32 -lole32 -luuid +#CXXFLAGS = -W -Wall +# Add -MMD to get dependencies +#CXXFLAGS = -g -pg -pedantic -Os -fno-exceptions -fvtable-thunks -fno-rtti +INCLUDEDIRS=-I ../include -I ../src +CXXFLAGS = -pedantic $(INCLUDEDIRS) -Os -fno-exceptions -fvtable-thunks -fno-rtti + +.cxx.o: + $(CC) $(CXXFLAGS) -c $< -o $@ + +ALL: $(COMPONENT) $(LEXCOMPONENT) ScintillaWinS.o + +clean: + del /q *.exe *.o *.obj *.dll *.res *.map + +SOBJS = ScintillaWin.o ScintillaBase.o Editor.o Document.o \ + ContractionState.o CellBuffer.o CallTip.o \ + ScintRes.o PlatWin.o KeyMap.o Indicator.o LineMarker.o Style.o \ + ViewStyle.o AutoComplete.o +$(COMPONENT): $(SOBJS) + $(DLLWRAP) --target i386-mingw32 -o $(COMPONENT) $(SOBJS) $(LDFLAGS) -s --relocatable + +LOBJS = ScintillaWinL.o ScintillaBaseL.o Editor.o Document.o \ + ContractionState.o CellBuffer.o CallTip.o \ + ScintRes.o PlatWin.o KeyMap.o Indicator.o LineMarker.o Style.o \ + ViewStyle.o AutoComplete.o KeyWords.o Accessor.o PropSet.o +$(LEXCOMPONENT): $(LOBJS) + $(DLLWRAP) --target i386-mingw32 -o $(LEXCOMPONENT) $(LOBJS) $(LDFLAGS) -s --relocatable + +Accessor.o: Accessor.cxx Platform.h PropSet.h Accessor.h Scintilla.h +AutoComplete.o: AutoComplete.cxx Platform.h AutoComplete.h +CallTip.o: CallTip.cxx Platform.h CallTip.h +CellBuffer.o: CellBuffer.cxx Platform.h Scintilla.h CellBuffer.h +ContractionState.o: ContractionState.cxx Platform.h ContractionState.h +Document.o: Document.cxx Platform.h Scintilla.h CellBuffer.h \ + Document.h +Editor.o: Editor.cxx Platform.h Scintilla.h ContractionState.h \ + CellBuffer.h KeyMap.h Indicator.h LineMarker.h Style.h ViewStyle.h \ + Document.h Editor.h +Indicator.o: Indicator.cxx Platform.h Scintilla.h Indicator.h +KeyMap.o: KeyMap.cxx Platform.h Scintilla.h KeyMap.h +KeyWords.o: KeyWords.cxx Platform.h PropSet.h Accessor.h KeyWords.h \ + Scintilla.h SciLexer.h +LineMarker.o: LineMarker.cxx Platform.h Scintilla.h LineMarker.h +PlatWin.o: PlatWin.cxx Platform.h PlatformRes.h +PropSet.o: PropSet.cxx Platform.h PropSet.h +ScintillaBase.o: ScintillaBase.cxx Platform.h Scintilla.h \ + ContractionState.h CellBuffer.h CallTip.h KeyMap.h Indicator.h \ + LineMarker.h Style.h ViewStyle.h AutoComplete.h Document.h Editor.h \ + ScintillaBase.h +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 KeyWords.h +ScintillaWin.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 +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 +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 +Style.o: Style.cxx Platform.h Style.h +ViewStyle.o: ViewStyle.cxx Platform.h Scintilla.h Indicator.h \ + LineMarker.h Style.h ViewStyle.h + +ScintillaBaseL.o: + $(CC) $(CXXFLAGS) -D SCI_LEXER -c $< -o ScintillaBaseL.o + +ScintillaWinS.o: + $(CC) $(CXXFLAGS) -D STATIC_BUILD -c $< -o ScintillaWinS.o + +ScintillaWinL.o: + $(CC) $(CXXFLAGS) -D SCI_LEXER -c $< -o ScintillaWinL.o + +ScintRes.o: ScintRes.rc PlatformRes.h + windres ScintRes.rc ScintRes.o + |