2016-09-07 18:39:18 +02:00
|
|
|
--- makefile.orig 2016-08-30 04:39:12 UTC
|
2014-10-10 18:24:00 +02:00
|
|
|
+++ makefile
|
2016-09-07 18:39:18 +02:00
|
|
|
@@ -7,16 +7,6 @@
|
|
|
|
srcdir ?= .
|
2007-08-22 05:36:05 +02:00
|
|
|
|
2005-02-03 21:07:07 +01:00
|
|
|
.SUFFIXES: .cxx .o .h .a .c
|
2010-06-02 16:05:46 +02:00
|
|
|
-ifdef 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
|
2015-11-23 20:35:50 +01:00
|
|
|
-CXX = clang++ -fsanitize=$(SANITIZE) -Wno-deprecated-register
|
2014-08-08 21:47:35 +02:00
|
|
|
-CC = clang -fsanitize=$(SANITIZE) -Wno-empty-body
|
2016-09-07 18:39:18 +02:00
|
|
|
-else
|
|
|
|
-MISLEADING=-Wno-misleading-indentation
|
2010-06-02 16:05:46 +02:00
|
|
|
-endif
|
2007-08-22 05:36:05 +02:00
|
|
|
|
2011-07-04 20:25:07 +02:00
|
|
|
ifdef GTK3
|
2014-08-08 21:47:35 +02:00
|
|
|
GTKVERSION=gtk+-3.0
|
2016-09-07 18:39:18 +02:00
|
|
|
@@ -28,7 +18,7 @@ endif
|
2011-07-04 20:25:07 +02:00
|
|
|
CONFIGFLAGS:=$(shell pkg-config --cflags $(GTKVERSION))
|
2012-08-13 21:41:49 +02:00
|
|
|
CONFIGLIB:=$(shell pkg-config --libs $(GTKVERSION) gthread-2.0 gmodule-no-export-2.0)
|
2009-08-26 22:33:10 +02:00
|
|
|
CONFIGTHREADS:=
|
2011-07-04 20:25:07 +02:00
|
|
|
-gnomeprefix:=$(shell pkg-config --variable=prefix $(GTKVERSION) 2>/dev/null)
|
2007-08-22 05:36:05 +02:00
|
|
|
+gnomeprefix:=$(PREFIX)
|
2010-06-02 16:05:46 +02:00
|
|
|
ifndef prefix
|
|
|
|
ifdef gnomeprefix
|
|
|
|
prefix=$(gnomeprefix)
|
2016-09-07 18:39:18 +02:00
|
|
|
@@ -119,8 +109,9 @@ FilePath.o SciTEBase.o FileWorker.o Cook
|
2015-11-23 20:35:50 +01:00
|
|
|
ExportHTML.o ExportPDF.o ExportRTF.o ExportTEX.o ExportXML.o \
|
|
|
|
MatchMarker.o StringHelpers.o \
|
2014-03-05 02:23:16 +01:00
|
|
|
PropSetFile.o MultiplexExtension.o DirectorExtension.o SciTEProps.o StyleDefinition.o StyleWriter.o Utf8_16.o \
|
2008-10-24 16:22:40 +02:00
|
|
|
- JobQueue.o GTKMutex.o IFaceTable.o $(COMPLIB) $(LUA_OBJS)
|
2016-09-07 18:39:18 +02:00
|
|
|
- $(CXX) `$(CONFIGTHREADS)` -rdynamic -Wl,--as-needed -Wl,--version-script $(srcdir)/lua.vers -DGTK $^ -o $@ $(CONFIGLIB) $(LIBDL) -lm -lstdc++
|
2008-10-24 16:22:40 +02:00
|
|
|
+ JobQueue.o GTKMutex.o IFaceTable.o $(LUA_OBJS)
|
2016-09-07 18:39:18 +02:00
|
|
|
+ $(CXX) -rdynamic -Wl,--version-script $(srcdir)/lua.vers -DGTK $(CXXFLAGS) $^ -o $@ \
|
2014-08-08 21:47:35 +02:00
|
|
|
+ $(LDFLAGS) -lscintilla -lscintilla_lexers -Wl,--as-needed $(CONFIGLIB)
|
2007-08-22 05:36:05 +02:00
|
|
|
|
2004-01-12 15:19:07 +01:00
|
|
|
# Automatically generate header dependencies with "make deps"
|
|
|
|
include deps.mak
|