2015-05-04 13:17:39 +02:00
|
|
|
--- makefile.orig 2014-11-27 20:47:24 UTC
|
|
|
|
+++ makefile
|
2014-08-08 21:47:35 +02:00
|
|
|
@@ -7,14 +7,6 @@
|
2010-04-05 19:14:21 +02:00
|
|
|
# Also works with ming32-make on Windows.
|
2000-11-27 14:38:24 +01:00
|
|
|
|
2005-02-03 21:05:48 +01:00
|
|
|
.SUFFIXES: .cxx .c .o .h .a
|
2010-06-02 16:01:28 +02:00
|
|
|
-ifdef CLANG
|
2014-10-10 18:24:00 +02:00
|
|
|
-CXX = clang++ -Wno-deprecated-register
|
2013-09-12 13:34:39 +02:00
|
|
|
-CC = clang
|
2014-08-08 21:47:35 +02:00
|
|
|
-# Can choose aspect to sanitize: address and undefined can simply change SANITIZE but for
|
|
|
|
-# thread also need to create Position Independent Executable -> search online documentation
|
|
|
|
-SANITIZE = address
|
|
|
|
-#SANITIZE = undefined
|
2010-06-02 16:01:28 +02:00
|
|
|
-endif
|
2002-02-11 13:56:24 +01:00
|
|
|
RANLIB = touch
|
|
|
|
|
2011-07-04 20:25:04 +02:00
|
|
|
ifdef GTK3
|
2014-08-08 21:47:35 +02:00
|
|
|
@@ -36,7 +28,8 @@
|
2011-05-02 19:34:04 +02:00
|
|
|
COMPLIB=..\bin\scintilla.a
|
|
|
|
else
|
|
|
|
DEL = rm -f
|
2000-11-27 14:38:24 +01:00
|
|
|
-COMPLIB=../bin/scintilla.a
|
2009-08-14 02:29:27 +02:00
|
|
|
+COMPLIB=../bin/libscintilla.so.2
|
|
|
|
+LEXRLIB=../bin/libscintilla_lexers.so.2
|
2011-05-02 19:34:04 +02:00
|
|
|
endif
|
2000-11-27 14:38:24 +01:00
|
|
|
|
2011-05-02 19:34:04 +02:00
|
|
|
vpath %.h ../src ../include ../lexlib
|
2014-12-05 13:36:04 +01:00
|
|
|
@@ -68,8 +61,7 @@
|
2014-08-08 21:47:35 +02:00
|
|
|
CTFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
-CFLAGS:=$(CTFLAGS)
|
2014-12-05 13:36:04 +01:00
|
|
|
-CXXTFLAGS:=--std=c++0x $(CTFLAGS) $(REFLAGS)
|
|
|
|
+CXXTFLAGS:=$(CTFLAGS) $(REFLAGS)
|
2011-07-04 20:25:04 +02:00
|
|
|
|
2011-09-13 13:30:22 +02:00
|
|
|
CONFIGFLAGS:=$(shell pkg-config --cflags $(GTKVERSION))
|
2005-02-03 21:05:48 +01:00
|
|
|
MARSHALLER=scintilla-marshal.o
|
2014-12-05 13:36:04 +01:00
|
|
|
@@ -77,11 +69,11 @@
|
2000-11-27 14:38:24 +01:00
|
|
|
.cxx.o:
|
2014-08-08 21:47:35 +02:00
|
|
|
$(CXX) $(CONFIGFLAGS) $(CXXTFLAGS) $(CXXFLAGS) -c $<
|
2013-02-27 12:47:26 +01:00
|
|
|
.c.o:
|
2014-08-08 21:47:35 +02:00
|
|
|
- $(CC) $(CONFIGFLAGS) $(CFLAGS) -w -c $<
|
|
|
|
+ $(CC) $(CONFIGFLAGS) $(CTFLAGS) $(CFLAGS) -w -c $<
|
2000-11-27 14:38:24 +01:00
|
|
|
|
2011-05-02 19:34:04 +02:00
|
|
|
LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard ../lexers/Lex*.cxx))))
|
2000-11-27 14:38:24 +01:00
|
|
|
|
2004-01-12 15:18:22 +01:00
|
|
|
-all: $(COMPLIB)
|
2000-11-27 14:38:24 +01:00
|
|
|
+all: $(COMPLIB) $(LEXRLIB)
|
|
|
|
|
2001-04-17 13:27:22 +02:00
|
|
|
clean:
|
2013-02-27 12:47:26 +01:00
|
|
|
$(DEL) *.o $(COMPLIB) *.plist
|
2014-12-05 13:36:04 +01:00
|
|
|
@@ -98,9 +90,11 @@
|
2014-10-10 18:24:00 +02:00
|
|
|
PropSetSimple.o PlatGTK.o \
|
2013-09-12 13:34:39 +02:00
|
|
|
KeyMap.o LineMarker.o PositionCache.o ScintillaGTK.o CellBuffer.o CharacterCategory.o ViewStyle.o \
|
2009-08-14 02:29:27 +02:00
|
|
|
RESearch.o RunStyles.o Selection.o Style.o Indicator.o AutoComplete.o UniConversion.o XPM.o \
|
2005-02-03 21:05:48 +01:00
|
|
|
- $(MARSHALLER) $(LEXOBJS)
|
2000-11-27 14:38:24 +01:00
|
|
|
- $(AR) rc $@ $^
|
2002-02-11 13:56:24 +01:00
|
|
|
- $(RANLIB) $@
|
2007-08-10 22:11:43 +02:00
|
|
|
+ $(MARSHALLER)
|
2014-08-08 21:47:35 +02:00
|
|
|
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ $^ -Wl,--as-needed $(CONFIGLIBS)
|
2000-11-27 14:38:24 +01:00
|
|
|
+
|
2004-01-12 15:18:22 +01:00
|
|
|
+$(LEXRLIB): $(LEXOBJS)
|
2014-08-08 21:47:35 +02:00
|
|
|
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ $^ -Wl,--as-needed $(CONFIGLIBS)
|
2000-11-27 14:38:24 +01:00
|
|
|
|
2001-04-17 13:27:22 +02:00
|
|
|
# Automatically generate header dependencies with "make deps"
|
|
|
|
include deps.mak
|