2009-04-24 23:35:41 +00:00
|
|
|
# Make file for Scintilla on Windows
|
2010-07-12 22:19:51 +00:00
|
|
|
# Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
|
2009-04-24 23:35:41 +00:00
|
|
|
# The License.txt file describes the conditions under which this software may be distributed.
|
2010-07-12 22:19:51 +00:00
|
|
|
# This makefile assumes the mingw32 version of GCC 3.x or 4.x is used and changes will
|
2009-04-24 23:35:41 +00:00
|
|
|
# be needed to use other compilers.
|
|
|
|
|
|
|
|
.SUFFIXES: .cxx
|
|
|
|
CC = g++
|
|
|
|
DLLWRAP = dllwrap
|
|
|
|
DEL = del /q
|
|
|
|
|
|
|
|
COMPONENT = ../bin/Scintilla.dll
|
|
|
|
LEXCOMPONENT = ../bin/SciLexer.dll
|
|
|
|
LEXLIB = Lexers.a
|
|
|
|
|
|
|
|
vpath %.h ../src ../include
|
|
|
|
vpath %.cxx ../src
|
|
|
|
|
|
|
|
LDFLAGS=-mwindows -lstdc++ -limm32 -lole32 -luuid -mno-cygwin
|
|
|
|
# Add -MMD to get dependencies
|
|
|
|
INCLUDEDIRS=-I ../include -I ../src
|
2010-07-12 22:19:51 +00:00
|
|
|
CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -Wno-strict-overflow -pedantic $(INCLUDEDIRS) -fno-rtti -mno-cygwin
|
2009-04-24 23:35:41 +00:00
|
|
|
|
|
|
|
ifdef DEBUG
|
2009-08-23 02:24:48 +00:00
|
|
|
CXXFLAGS=-DDEBUG -g $(CXXBASEFLAGS)
|
2009-04-24 23:35:41 +00:00
|
|
|
else
|
2009-08-23 02:24:48 +00:00
|
|
|
CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS)
|
|
|
|
STRIPFLAG=-s
|
2009-04-24 23:35:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
.cxx.o:
|
|
|
|
$(CC) $(CXXFLAGS) -c $<
|
|
|
|
|
|
|
|
ALL: $(COMPONENT) $(LEXCOMPONENT) $(LEXLIB) ScintillaWinS.o WindowAccessor.o
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(DEL) *.exe *.o *.obj *.dll *.res *.map
|
|
|
|
|
|
|
|
deps:
|
|
|
|
$(CC) -MM $(CXXFLAGS) *.cxx ../src/*.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 \
|
2009-06-24 19:09:31 +00:00
|
|
|
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 \
|
2010-07-12 22:19:51 +00:00
|
|
|
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
|
2009-04-24 23:35:41 +00:00
|
|
|
#--Autogenerated -- end of automatically generated section
|
|
|
|
|
|
|
|
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 \
|
2009-08-23 02:24:48 +00:00
|
|
|
Selection.o Style.o ViewStyle.o AutoComplete.o UniConversion.o PropSet.o XPM.o PerLine.o
|
2009-04-24 23:35:41 +00:00
|
|
|
$(COMPONENT): $(SOBJS) Scintilla.def
|
2009-08-23 02:24:48 +00:00
|
|
|
$(DLLWRAP) --add-stdcall-alias --target i386-mingw32 -o $@ $(SOBJS) $(LDFLAGS) $(STRIPFLAG) --relocatable
|
2009-04-24 23:35:41 +00:00
|
|
|
|
|
|
|
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 \
|
2009-08-23 02:24:48 +00:00
|
|
|
Selection.o Style.o ViewStyle.o AutoComplete.o UniConversion.o KeyWords.o \
|
2009-06-24 19:09:31 +00:00
|
|
|
DocumentAccessor.o PropSet.o ExternalLexer.o StyleContext.o XPM.o PerLine.o $(LEXOBJS)
|
2009-04-24 23:35:41 +00:00
|
|
|
$(LEXCOMPONENT): $(LOBJS) Scintilla.def
|
2009-08-23 02:24:48 +00:00
|
|
|
$(DLLWRAP) --add-stdcall-alias --target i386-mingw32 -o $@ $(LOBJS) $(LDFLAGS) $(STRIPFLAG) --relocatable
|
2009-04-24 23:35:41 +00:00
|
|
|
|
|
|
|
$(LEXLIB): $(LEXOBJS)
|
|
|
|
$(AR) rc $@ $^
|
|
|
|
ranlib $@
|
|
|
|
|
|
|
|
# Automatically generate dependencies for most files with "make deps"
|
|
|
|
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 \
|
2009-08-23 02:24:48 +00:00
|
|
|
ScintillaBase.h PropSet.h Accessor.h DocumentAccessor.h \
|
2009-06-24 19:09:31 +00:00
|
|
|
KeyWords.h ExternalLexer.h PerLine.h
|
2009-04-24 23:35:41 +00:00
|
|
|
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 \
|
2009-08-23 02:24:48 +00:00
|
|
|
ScintillaBase.h PropSet.h Accessor.h KeyWords.h \
|
2009-06-24 19:09:31 +00:00
|
|
|
ExternalLexer.h UniConversion.h PerLine.h
|
2009-04-24 23:35:41 +00:00
|
|
|
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 \
|
2009-06-24 19:09:31 +00:00
|
|
|
ScintillaBase.h UniConversion.h PerLine.h
|
2009-04-24 23:35:41 +00:00
|
|
|
|
|
|
|
ScintillaBaseL.o:
|
|
|
|
$(CC) $(CXXFLAGS) -D SCI_LEXER -c $< -o $@
|
|
|
|
|
|
|
|
ScintillaWinS.o:
|
|
|
|
$(CC) $(CXXFLAGS) -D STATIC_BUILD -c $< -o $@
|
|
|
|
|
|
|
|
ScintillaWinL.o:
|
|
|
|
$(CC) $(CXXFLAGS) -D SCI_LEXER -c $< -o $@
|
|
|
|
|
|
|
|
ScintRes.o: ScintRes.rc PlatformRes.h
|
|
|
|
windres ScintRes.rc $@
|
|
|
|
|