2006-07-28 12:29:10 +00:00
|
|
|
# Make file for Scintilla on Linux or compatible OS
|
|
|
|
# Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
|
|
|
|
# The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
# This makefile assumes GCC 3.1 is used and changes will be needed to use other compilers.
|
|
|
|
# GNU make does not like \r\n line endings so should be saved to CVS in binary form.
|
|
|
|
# Builds for GTK+ 2 if available else GTK+ 1.
|
|
|
|
# To force GTK+ 2 build, define GTK2 on the make command line.
|
|
|
|
# To force GTK+ 1 build, define GTK1 on the make command line.
|
|
|
|
|
|
|
|
.SUFFIXES: .cxx .c .o .h .a
|
|
|
|
CC = g++
|
|
|
|
CCOMP = gcc
|
|
|
|
AR = ar
|
|
|
|
RANLIB = ranlib
|
|
|
|
PREFIX = C:\libs
|
|
|
|
RM = del
|
|
|
|
-include ../localwin32.mk
|
|
|
|
|
|
|
|
|
|
|
|
COMPLIB=scintilla.a
|
|
|
|
|
|
|
|
GTK_INCLUDES= \
|
|
|
|
-I$(PREFIX)/include/gtk-2.0 \
|
|
|
|
-I$(PREFIX)/lib/gtk-2.0/include \
|
|
|
|
-I$(PREFIX)/include/atk-1.0 \
|
|
|
|
-I$(PREFIX)/include/pango-1.0 \
|
|
|
|
-I$(PREFIX)/include/cairo \
|
|
|
|
-I$(PREFIX)/include/glib-2.0 \
|
|
|
|
-I$(PREFIX)/lib/glib-2.0/include \
|
|
|
|
-I$(PREFIX)/include/gettext \
|
|
|
|
-I$(PREFIX)/include
|
|
|
|
|
|
|
|
|
|
|
|
vpath %.h . include
|
|
|
|
vpath %.cxx .
|
|
|
|
|
|
|
|
INCLUDEDIRS=-I include -I . $(GTK_INCLUDES)
|
|
|
|
CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -DGTK -DGTK2 -DSCI_LEXER $(INCLUDEDIRS) -mms-bitfields
|
|
|
|
|
2008-06-09 17:29:25 +00:00
|
|
|
ifdef THREADS
|
2006-07-28 12:29:10 +00:00
|
|
|
THREADFLAGS=
|
2008-06-09 17:29:25 +00:00
|
|
|
else
|
|
|
|
THREADFLAGS=-DG_THREADS_IMPL_NONE
|
2006-07-28 12:29:10 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef DEBUG
|
2008-04-15 15:11:05 +00:00
|
|
|
CXXFLAGS=-DDEBUG -g -O0 $(CXXBASEFLAGS) $(THREADFLAGS)
|
2006-07-28 12:29:10 +00:00
|
|
|
else
|
|
|
|
CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
CONFIGFLAGS=$(GTK_INCLUDES)
|
|
|
|
MARSHALLER=scintilla-marshal.o
|
|
|
|
|
|
|
|
.cxx.o:
|
|
|
|
$(CC) $(CXXFLAGS) -c $<
|
|
|
|
.c.o:
|
|
|
|
$(CCOMP) $(CXXFLAGS) -w -c $<
|
|
|
|
|
|
|
|
#++Autogenerated -- run src/LexGen.py to regenerate
|
|
|
|
#**LEXOBJS=\\\n\(\*.o \)
|
|
|
|
LEXOBJS=\
|
2009-01-04 16:00:50 +00:00
|
|
|
LexAda.o LexBash.o LexAsm.o LexCSS.o LexCPP.o LexCrontab.o LexHTML.o LexOthers.o LexPascal.o \
|
2009-01-18 18:18:38 +00:00
|
|
|
LexPerl.o LexPython.o LexSQL.o LexCaml.o LexTCL.o LexRuby.o LexFortran.o LexVHDL.o LexMatlab.o \
|
2008-12-21 20:31:09 +00:00
|
|
|
LexD.o LexLua.o LexHaskell.o LexBasic.o LexR.o LexYAML.o LexCmake.o LexNsis.o
|
2006-07-28 12:29:10 +00:00
|
|
|
#--Autogenerated -- end of automatically generated section
|
|
|
|
|
|
|
|
all: $(COMPLIB)
|
|
|
|
|
|
|
|
clean:
|
2006-09-22 12:09:53 +00:00
|
|
|
-$(RM) deps.mak *.o $(COMPLIB)
|
2006-07-28 12:29:10 +00:00
|
|
|
|
|
|
|
$(COMPLIB): DocumentAccessor.o WindowAccessor.o KeyWords.o StyleContext.o Document.o CallTip.o \
|
|
|
|
ScintillaBase.o ContractionState.o Editor.o ExternalLexer.o PropSet.o PlatGTK.o \
|
|
|
|
KeyMap.o LineMarker.o ScintillaGTK.o CellBuffer.o ViewStyle.o \
|
|
|
|
RESearch.o Style.o Indicator.o AutoComplete.o UniConversion.o CharClassify.o XPM.o \
|
2009-05-03 17:49:33 +00:00
|
|
|
RunStyles.o Decoration.o PositionCache.o PerLine.o \
|
2006-07-28 12:29:10 +00:00
|
|
|
$(MARSHALLER) $(LEXOBJS)
|
|
|
|
$(AR) rc $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
deps.mak:
|
|
|
|
$(CC) -MM $(CXXFLAGS) *.cxx >deps.mak
|
|
|
|
|
|
|
|
# Generate header dependencies with "make deps.mak"
|
|
|
|
include deps.mak
|