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
17 -include ../localwin32.mk
23 -I$(PREFIX)/include/gtk-2.0 \
24 -I$(PREFIX)/lib/gtk-2.0/include \
25 -I$(PREFIX)/include/atk-1.0 \
26 -I$(PREFIX)/include/pango-1.0 \
27 -I$(PREFIX)/include/cairo \
28 -I$(PREFIX)/include/glib-2.0 \
29 -I$(PREFIX)/lib/glib-2.0/include \
30 -I$(PREFIX)/include/gettext \
37 INCLUDEDIRS=-I include -I . $(GTK_INCLUDES)
38 CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -DGTK -DGTK2 -DSCI_LEXER $(INCLUDEDIRS) -mms-bitfields
43 THREADFLAGS=-DG_THREADS_IMPL_NONE
47 CXXFLAGS=-DDEBUG -g -O0 $(CXXBASEFLAGS) $(THREADFLAGS)
49 CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
52 CONFIGFLAGS=$(GTK_INCLUDES)
53 MARSHALLER=scintilla-marshal.o
56 $(CC) $(CXXFLAGS) -c $<
58 $(CCOMP) $(CXXFLAGS) -w -c $<
60 #++Autogenerated -- run src/LexGen.py to regenerate
61 #**LEXOBJS=\\\n\(\*.o \)
63 LexAda.o LexBash.o LexAsm.o LexCSS.o LexCPP.o LexHTML.o LexOthers.o LexPascal.o \
64 LexPerl.o LexPython.o LexSQL.o LexCaml.o LexTCL.o LexTxt2tags.o LexRuby.o \
65 LexErlang.o LexForth.o LexFortran.o LexVHDL.o LexVerilog.o \
66 LexMarkdown.o LexMatlab.o \
67 LexD.o LexLisp.o LexLua.o LexHaskell.o LexBasic.o LexR.o LexYAML.o LexCmake.o LexNsis.o
68 #--Autogenerated -- end of automatically generated section
73 -$(RM) deps.mak *.o $(COMPLIB)
75 $(COMPLIB): DocumentAccessor.o WindowAccessor.o KeyWords.o StyleContext.o Document.o CallTip.o \
76 ScintillaBase.o ContractionState.o Editor.o ExternalLexer.o PropSet.o PlatGTK.o \
77 KeyMap.o LineMarker.o ScintillaGTK.o CellBuffer.o ViewStyle.o \
78 RESearch.o Style.o Indicator.o AutoComplete.o UniConversion.o CharClassify.o XPM.o \
79 RunStyles.o Decoration.o PositionCache.o PerLine.o Selection.o \
80 $(MARSHALLER) $(LEXOBJS)
85 $(CC) -MM $(CXXFLAGS) *.cxx >deps.mak
87 # Generate header dependencies with "make deps.mak"