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
26 -I$(PREFIX)/include/gtk-2.0 \
27 -I$(PREFIX)/lib/gtk-2.0/include \
28 -I$(PREFIX)/include/atk-1.0 \
29 -I$(PREFIX)/include/cairo \
30 -I$(PREFIX)/include/gdk-pixbuf-2.0 \
31 -I$(PREFIX)/include/pango-1.0 \
32 -I$(PREFIX)/include/glib-2.0 \
33 -I$(PREFIX)/lib/glib-2.0/include \
35 -I$(PREFIX)/include/gettext
38 vpath %.h gtk lexers lexlib src include
39 vpath %.cxx gtk lexers lexlib src
42 INCLUDEDIRS=-I include -I src -I lexlib -I . $(GTK_INCLUDES)
43 CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -DGTK -DSCI_LEXER $(INCLUDEDIRS) -mms-bitfields
48 THREADFLAGS=-DG_THREADS_IMPL_NONE
52 CXXFLAGS=-DDEBUG -g -O0 $(CXXBASEFLAGS) $(THREADFLAGS)
54 CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
57 CONFIGFLAGS=$(GTK_INCLUDES)
58 MARSHALLER=scintilla-marshal.o
61 $(CXX) $(CXXFLAGS) -c $<
63 $(CC) $(CXXFLAGS) -c $<
107 -$(RM) deps.mak *.o $(COMPLIB)
113 CharacterCategory.o \
119 LexerNoExceptions.o \
148 $(COMPLIB): $(MARSHALLER) $(LEXOBJS) $(SRCOBJS)
153 $(CXX) -MM $(CXXFLAGS) gtk/*.cxx lexers/*.cxx lexlib/*.cxx src/*.cxx >deps.mak
155 # Generate header dependencies with "make deps.mak"