-
Notifications
You must be signed in to change notification settings - Fork 595
/
makefile.win32
148 lines (130 loc) · 2.84 KB
/
makefile.win32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# 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
CXX = g++
CC = gcc
AR = ar
RANLIB = ranlib
PREFIX = C:/libs
RM = del
-include ../localwin32.mk
ifdef MSYS
RM = rm -f
endif
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/cairo \
-I$(PREFIX)/include/gdk-pixbuf-2.0 \
-I$(PREFIX)/include/pango-1.0 \
-I$(PREFIX)/include/glib-2.0 \
-I$(PREFIX)/lib/glib-2.0/include \
-I$(PREFIX)/include \
-I$(PREFIX)/include/gettext
vpath %.h gtk lexers lexlib src include
vpath %.cxx gtk lexers lexlib src
vpath %.c gtk
INCLUDEDIRS=-I include -I src -I lexlib -I . $(GTK_INCLUDES)
CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -DGTK -DSCI_LEXER $(INCLUDEDIRS) -mms-bitfields
ifdef THREADS
THREADFLAGS=
else
THREADFLAGS=-DG_THREADS_IMPL_NONE
endif
ifdef DEBUG
CXXFLAGS=-DDEBUG -g -O0 $(CXXBASEFLAGS) $(THREADFLAGS)
else
CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
endif
CONFIGFLAGS=$(GTK_INCLUDES)
MARSHALLER=scintilla-marshal.o
.cxx.o:
$(CXX) $(CXXFLAGS) -c $<
.c.o:
$(CC) $(CXXFLAGS) -c $<
LEXOBJS=\
LexAda.o \
LexAsm.o \
LexBash.o \
LexCOBOL.o \
LexCSS.o \
LexCPP.o \
LexHTML.o \
LexOthers.o \
LexPascal.o \
LexPerl.o \
LexPython.o \
LexSQL.o \
LexCaml.o \
LexTCL.o \
LexTxt2tags.o \
LexRuby.o \
LexErlang.o \
LexForth.o \
LexFortran.o \
LexVHDL.o \
LexVerilog.o \
LexMarkdown.o \
LexMatlab.o \
LexD.o \
LexLisp.o \
LexLua.o \
LexHaskell.o \
LexBasic.o \
LexR.o \
LexYAML.o \
LexCmake.o \
LexNsis.o
all: $(COMPLIB)
clean:
-$(RM) deps.mak *.o $(COMPLIB)
SRCOBJS=\
PlatGTK.o \
ScintillaGTK.o \
Accessor.o \
CharacterSet.o \
LexerBase.o \
LexerModule.o \
LexerNoExceptions.o \
LexerSimple.o \
PropSetSimple.o \
StyleContext.o \
WordList.o \
AutoComplete.o \
CallTip.o \
Catalogue.o \
CellBuffer.o \
CharClassify.o \
ContractionState.o \
Decoration.o \
Document.o \
Editor.o \
ExternalLexer.o \
Indicator.o \
KeyMap.o \
LineMarker.o \
PerLine.o \
PositionCache.o \
RESearch.o \
RunStyles.o \
ScintillaBase.o \
Selection.o \
Style.o \
UniConversion.o \
ViewStyle.o \
XPM.o
$(COMPLIB): $(MARSHALLER) $(LEXOBJS) $(SRCOBJS)
$(AR) rc $@ $^
$(RANLIB) $@
deps.mak:
$(CXX) -MM $(CXXFLAGS) gtk/*.cxx lexers/*.cxx lexlib/*.cxx src/*.cxx >deps.mak
# Generate header dependencies with "make deps.mak"
include deps.mak