r5079
[geany-mirror.git] / scintilla / makefile.win32
blob5675c94d483b29fc404c99338d4588a4a1f864a7
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 = ranlib
15 PREFIX = C:\libs
16 RM = del
17 -include ../localwin32.mk
20 COMPLIB=scintilla.a
22 GTK_INCLUDES= \
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 \
31         -I$(PREFIX)/include
34 vpath %.h . include
35 vpath %.cxx .
37 INCLUDEDIRS=-I include -I . $(GTK_INCLUDES)
38 CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -DGTK -DGTK2 -DSCI_LEXER $(INCLUDEDIRS) -mms-bitfields
40 ifdef THREADS
41 THREADFLAGS=
42 else
43 THREADFLAGS=-DG_THREADS_IMPL_NONE
44 endif
46 ifdef DEBUG
47 CXXFLAGS=-DDEBUG -g -O0 $(CXXBASEFLAGS) $(THREADFLAGS)
48 else
49 CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
50 endif
52 CONFIGFLAGS=$(GTK_INCLUDES)
53 MARSHALLER=scintilla-marshal.o
55 .cxx.o:
56         $(CC) $(CXXFLAGS) -c $<
57 .c.o:
58         $(CCOMP) $(CXXFLAGS) -w -c $<
60 #++Autogenerated -- run src/LexGen.py to regenerate
61 #**LEXOBJS=\\\n\(\*.o \)
62 LEXOBJS=\
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 LexRuby.o LexFortran.o LexVHDL.o LexVerilog.o\
65 LexMarkdown.o LexMatlab.o \
66 LexD.o LexLua.o LexHaskell.o LexBasic.o LexR.o LexYAML.o LexCmake.o LexNsis.o
67 #--Autogenerated -- end of automatically generated section
69 all: $(COMPLIB)
71 clean:
72         -$(RM) deps.mak *.o $(COMPLIB)
74 $(COMPLIB): DocumentAccessor.o WindowAccessor.o KeyWords.o StyleContext.o Document.o CallTip.o \
75         ScintillaBase.o ContractionState.o Editor.o ExternalLexer.o PropSet.o PlatGTK.o \
76         KeyMap.o LineMarker.o ScintillaGTK.o CellBuffer.o ViewStyle.o \
77         RESearch.o Style.o Indicator.o AutoComplete.o UniConversion.o CharClassify.o XPM.o \
78         RunStyles.o Decoration.o PositionCache.o PerLine.o Selection.o \
79         $(MARSHALLER) $(LEXOBJS)
80         $(AR) rc $@ $^
81         $(RANLIB) $@
83 deps.mak:
84         $(CC) -MM  $(CXXFLAGS) *.cxx >deps.mak
86 # Generate header dependencies with "make deps.mak"
87 include deps.mak