Add an UI to enable/disable specific overlay handlers.
[TortoiseGit.git] / ext / scintilla / gtk / makefile
blobf3e0aad4e37a9a37ec1fe53bd7915cfd4ae23bf4
1 # Make file for Scintilla on Linux or compatible OS
2 # Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
3 # The License.txt file describes the conditions under which this software may be distributed.
4 # This makefile assumes GCC 3.1 is used and changes will be needed to use other compilers.
5 # GNU make does not like \r\n line endings so should be saved to CVS in binary form.
6 # Builds for GTK+ 2 if available else GTK+ 1.
7 # To force GTK+ 2 build, define GTK2 on the make command line.
8 # To force GTK+ 1 build, define GTK1 on the make command line.
10 .SUFFIXES: .cxx .c .o .h .a
11 CC = g++
12 CCOMP = gcc
13 AR = ar
14 RANLIB = touch
16 ifeq ($(shell uname),Darwin)
17 RANLIB = ranlib
18 endif
20 COMPLIB=../bin/scintilla.a
22 vpath %.h ../src ../include
23 vpath %.cxx ../src
25 INCLUDEDIRS=-I ../include -I ../src
26 CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -pedantic -Os -DGTK -DSCI_LEXER $(INCLUDEDIRS)
28 ifdef NOTHREADS
29 THREADFLAGS=-DG_THREADS_IMPL_NONE
30 else
31 THREADFLAGS=
32 endif
34 ifdef DEBUG
35 CXXFLAGS=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS)
36 else
37 CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
38 endif
40 # If explicit setting of GTK1 or GTK2 then use that else look for
41 # pkg-config which is an OK indication that GTK2 is available
42 ifdef GTK2
43 CONFIGFLAGS=$(shell pkg-config --cflags gtk+-2.0)
44 MARSHALLER=scintilla-marshal.o
45 else
46 ifdef GTK1
47 CONFIGFLAGS=$(shell gtk-config --cflags)
48 else
49 ifneq (,$(findstring /,$(shell whereis pkg-config)))
50 CONFIGFLAGS=$(shell pkg-config --cflags gtk+-2.0)
51 MARSHALLER=scintilla-marshal.o
52 else
53 CONFIGFLAGS=$(shell gtk-config --cflags)
54 endif
55 endif
56 endif
58 .cxx.o:
59 $(CC) $(CONFIGFLAGS) $(CXXFLAGS) -c $<
60 .c.o:
61 $(CCOMP) $(CONFIGFLAGS) $(CXXFLAGS) -w -c $<
63 #++Autogenerated -- run src/LexGen.py to regenerate
64 #**LEXOBJS=\\\n\(\*.o \)
65 LEXOBJS=\
66 LexAbaqus.o LexAda.o LexAPDL.o LexAsm.o LexAsn1.o LexASY.o LexAU3.o LexAVE.o \
67 LexBaan.o LexBash.o LexBasic.o LexBullant.o LexCaml.o LexCLW.o LexCmake.o \
68 LexConf.o LexCPP.o LexCrontab.o LexCsound.o LexCSS.o LexD.o LexEiffel.o \
69 LexErlang.o LexEScript.o LexFlagship.o LexForth.o LexFortran.o LexGAP.o \
70 LexGui4Cli.o LexHaskell.o LexHTML.o LexInno.o LexKix.o LexLisp.o LexLout.o \
71 LexLua.o LexMagik.o LexMatlab.o LexMetapost.o LexMMIXAL.o LexMPT.o LexMSSQL.o \
72 LexMySQL.o LexNsis.o LexOpal.o LexOthers.o LexPascal.o LexPB.o LexPerl.o \
73 LexPLM.o LexPOV.o LexPowerShell.o LexProgress.o LexPS.o LexPython.o LexR.o \
74 LexRebol.o LexRuby.o LexScriptol.o LexSmalltalk.o LexSpecman.o LexSpice.o \
75 LexSQL.o LexTADS3.o LexTCL.o LexTeX.o LexVB.o LexVerilog.o LexVHDL.o LexYAML.o
76 #--Autogenerated -- end of automatically generated section
78 all: $(COMPLIB)
80 clean:
81 rm -f *.o $(COMPLIB)
83 deps:
84 $(CC) -MM $(CONFIGFLAGS) $(CXXFLAGS) *.cxx ../src/*.cxx | sed -e 's/\/usr.* //' | grep [a-zA-Z] >deps.mak
86 $(COMPLIB): DocumentAccessor.o WindowAccessor.o KeyWords.o StyleContext.o \
87 CharClassify.o Decoration.o Document.o CallTip.o \
88 ScintillaBase.o ContractionState.o Editor.o ExternalLexer.o PropSet.o PlatGTK.o \
89 KeyMap.o LineMarker.o PositionCache.o ScintillaGTK.o CellBuffer.o ViewStyle.o \
90 RESearch.o RunStyles.o Style.o Indicator.o AutoComplete.o UniConversion.o XPM.o \
91 $(MARSHALLER) $(LEXOBJS)
92 $(AR) rc $@ $^
93 $(RANLIB) $@
95 # Automatically generate header dependencies with "make deps"
96 include deps.mak