aboutsummaryrefslogtreecommitdiffhomepage
path: root/curses/Makefile
diff options
context:
space:
mode:
authormitchell <unknown>2018-03-10 10:58:26 -0500
committermitchell <unknown>2018-03-10 10:58:26 -0500
commitc0373e036e965a70045971e2abc582cb4bf12a4e (patch)
tree24bbd02ff5a9c032157a24a4856c325398455bd4 /curses/Makefile
parentb086b4d30fee49c09184b2145e3a222925ac3fc8 (diff)
downloadscintilla-mirror-c0373e036e965a70045971e2abc582cb4bf12a4e.tar.gz
Added curses platform.
Diffstat (limited to 'curses/Makefile')
-rw-r--r--curses/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/curses/Makefile b/curses/Makefile
new file mode 100644
index 000000000..42a8e4e0c
--- /dev/null
+++ b/curses/Makefile
@@ -0,0 +1,38 @@
+# Copyright 2012-2018 Mitchell mitchell.att.foicica.com. See License.txt.
+
+.SUFFIXES: .cxx .c .o .h .a
+
+AR = ar
+CXX = g++
+INCLUDEDIRS = -I ../include -I ../src -I ../lexlib
+CXXFLAGS = -std=c++11 -pedantic -DCURSES -DSCI_LEXER $(INCLUDEDIRS) -Wall \
+ -Wextra -Wno-missing-field-initializers
+ifdef DEBUG
+ CXXFLAGS += -DDEBUG -g
+else
+ CXXFLAGS += -DNDEBUG -Os
+endif
+CURSES_FLAGS =
+
+scintilla = ../bin/scintilla.a
+lexers = $(addsuffix .o,$(basename $(sort $(notdir $(wildcard ../lexers/Lex*.cxx)))))
+
+vpath %.h ../src ../include ../lexlib
+vpath %.cxx ../src ../lexlib ../lexers
+
+all: $(scintilla)
+.cxx.o:
+ $(CXX) $(CXXFLAGS) $(CURSES_FLAGS) -c $<
+$(scintilla): AutoComplete.o CallTip.o CaseConvert.o CaseFolder.o Catalogue.o \
+ CellBuffer.o CharacterCategory.o CharClassify.o \
+ ContractionState.o Decoration.o Document.o EditModel.o Editor.o \
+ EditView.o ExternalLexer.o Indicator.o KeyMap.o LineMarker.o \
+ MarginView.o PerLine.o PositionCache.o RESearch.o RunStyles.o \
+ ScintillaBase.o Selection.o Style.o UniConversion.o ViewStyle.o \
+ XPM.o Accessor.o CharacterSet.o LexerBase.o LexerModule.o \
+ LexerNoExceptions.o LexerSimple.o PropSetSimple.o StyleContext.o \
+ WordList.o $(lexers) ScintillaCurses.o
+ $(AR) rc $@ $^
+ touch $@
+clean:
+ rm -f *.o $(scintilla)