Menu

[r616]: / trunk / ext / scintilla / win32 / makefile  Maximize  Restore  History

Download this file

144 lines (117 with data), 4.0 kB

  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
# Make file for Scintilla on Windows
# Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
# The License.txt file describes the conditions under which this software may be distributed.
# This makefile assumes the mingw32 version of GCC 3.x or 4.x is used and changes will
# be needed to use other compilers.
.SUFFIXES: .cxx
CC = g++
DEL = del /q
COMPONENT = ../bin/Scintilla.dll
LEXCOMPONENT = ../bin/SciLexer.dll
LEXLIB = Lexers.a
vpath %.h ../src ../include ../lexlib
vpath %.cxx ../src ../lexlib ../lexers
LDFLAGS=-shared -static -Wl,--enable-runtime-pseudo-reloc-v2 -mno-cygwin -mwindows --relocatable -Wl,--add-stdcall-alias
LIBS=-lstdc++ -limm32 -lole32 -luuid
# Add -MMD to get dependencies
INCLUDEDIRS=-I ../include -I ../src -I../lexlib
CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -Wno-strict-overflow -pedantic $(INCLUDEDIRS) -fno-rtti -mno-cygwin
ifdef DEBUG
CXXFLAGS=-DDEBUG -g $(CXXBASEFLAGS)
else
CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS)
STRIPFLAG=-s
endif
.cxx.o:
$(CC) $(CXXFLAGS) -c $<
ALL: $(COMPONENT) $(LEXCOMPONENT) $(LEXLIB) ScintillaWinS.o
clean:
$(DEL) *.exe *.o *.obj *.dll *.res *.map
deps:
$(CC) -MM $(CXXFLAGS) *.cxx ../src/*.cxx ../lexlib/*.cxx ../lexers/*.cxx >deps.mak
LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard ../lexers/Lex*.cxx))))
BASEOBJS = \
AutoComplete.o \
CallTip.o \
CellBuffer.o \
CharacterSet.o \
CharClassify.o \
ContractionState.o \
Decoration.o \
Document.o \
Editor.o \
KeyMap.o \
Indicator.o \
LineMarker.o \
PerLine.o \
PlatWin.o \
PositionCache.o \
PropSetSimple.o \
RESearch.o \
RunStyles.o \
ScintRes.o \
Selection.o \
Style.o \
UniConversion.o \
ViewStyle.o \
XPM.o
SOBJS = ScintillaWin.o ScintillaBase.o $(BASEOBJS)
$(COMPONENT): $(SOBJS) Scintilla.def
$(CC) $(LDFLAGS) -o $@ $(STRIPFLAG) $(SOBJS) $(CXXFLAGS) $(LIBS)
LOBJS = \
Accessor.o \
Catalogue.o \
ExternalLexer.o \
LexerBase.o \
LexerModule.o \
LexerSimple.o \
ScintillaWinL.o \
ScintillaBaseL.o \
StyleContext.o \
WordList.o \
$(BASEOBJS) \
$(LEXOBJS)
$(LEXCOMPONENT): $(LOBJS) Scintilla.def
$(CC) $(LDFLAGS) -o $@ $(STRIPFLAG) $(LOBJS) $(CXXFLAGS) $(LIBS)
$(LEXLIB): $(LEXOBJS)
$(AR) rc $@ $^
ranlib $@
# Automatically generate dependencies for most files with "make deps"
include deps.mak
# These dependencies are maintained by hand as they do not use the default output name
ScintillaBaseL.o: ScintillaBase.cxx Platform.h \
ILexer.h Scintilla.h SciLexer.h PropSetSimple.h \
SplitVector.h Partitioning.h RunStyles.h \
ContractionState.h CellBuffer.h CallTip.h \
KeyMap.h Indicator.h XPM.h LineMarker.h \
Style.h ViewStyle.h AutoComplete.h \
CharClassify.h Decoration.h Document.h \
Selection.h PositionCache.h Editor.h \
ScintillaBase.h LexAccessor.h Accessor.h \
LexerModule.h Catalogue.h
ScintillaWinL.o: ScintillaWin.cxx Platform.h \
ILexer.h Scintilla.h SplitVector.h \
Partitioning.h RunStyles.h ContractionState.h \
CellBuffer.h CallTip.h KeyMap.h Indicator.h \
XPM.h LineMarker.h Style.h AutoComplete.h \
ViewStyle.h CharClassify.h Decoration.h \
Document.h Selection.h PositionCache.h \
Editor.h ScintillaBase.h UniConversion.h \
LexAccessor.h Accessor.h \
LexerModule.h Catalogue.h
ScintillaWinS.o: ScintillaWin.cxx Platform.h \
ILexer.h Scintilla.h SplitVector.h \
Partitioning.h RunStyles.h ContractionState.h \
CellBuffer.h CallTip.h KeyMap.h Indicator.h \
XPM.h LineMarker.h Style.h AutoComplete.h \
ViewStyle.h CharClassify.h Decoration.h \
Document.h Selection.h PositionCache.h \
Editor.h ScintillaBase.h UniConversion.h
ScintillaBaseL.o:
$(CC) $(CXXFLAGS) -D SCI_LEXER -c $< -o $@
ScintillaWinS.o:
$(CC) $(CXXFLAGS) -D STATIC_BUILD -c $< -o $@
ScintillaWinL.o:
$(CC) $(CXXFLAGS) -D SCI_LEXER -c $< -o $@
ScintRes.o: ScintRes.rc
windres ScintRes.rc $@
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.