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 \
34 vpath %.h gtk lexers lexlib src include
35 vpath %.cxx gtk lexers lexlib src
38 INCLUDEDIRS=-I include -I src -I lexlib -I . $(GTK_INCLUDES)
39 CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -DGTK -DSCI_LEXER $(INCLUDEDIRS) -mms-bitfields
44 THREADFLAGS=-DG_THREADS_IMPL_NONE
48 CXXFLAGS=-DDEBUG -g -O0 $(CXXBASEFLAGS) $(THREADFLAGS)
50 CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
53 CONFIGFLAGS=$(GTK_INCLUDES)
54 MARSHALLER=scintilla-marshal.o
57 $(CC) $(CXXFLAGS) -c $<
59 $(CCOMP) $(CXXFLAGS) -w -c $<
98 -$(RM) deps.mak *.o $(COMPLIB)
107 LexerNoExceptions.o \
136 $(COMPLIB): $(MARSHALLER) $(LEXOBJS) $(SRCOBJS)
141 $(CC) -MM $(CXXFLAGS) gtk/*.cxx lexers/*.cxx lexlib/*.cxx src/*.cxx >deps.mak
143 # Generate header dependencies with "make deps.mak"