From 8393337c44b896e230b0704db76f43273ecb94d3 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 31 May 2014 13:49:58 +1000 Subject: Compatibility with makefile conventions: use CXX for C++ compiler and CC for C compiler. Allow overriding file deletion command on command line so that 'rm' can be used when cross-compiling from Unix to Windows. --- gtk/makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gtk/makefile') diff --git a/gtk/makefile b/gtk/makefile index dfd3aff8a..5bf298602 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -8,15 +8,15 @@ .SUFFIXES: .cxx .c .o .h .a ifdef CLANG -CC = clang++ -CCOMP = clang +CXX = clang++ +CC = clang # 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 else -CC = g++ -CCOMP = gcc +CXX = g++ +CC = gcc endif AR = ar RANLIB = touch @@ -75,9 +75,9 @@ CONFIGFLAGS:=$(shell pkg-config --cflags $(GTKVERSION)) MARSHALLER=scintilla-marshal.o .cxx.o: - $(CC) $(CONFIGFLAGS) $(CXXTFLAGS) $(CXXFLAGS) -c $< + $(CXX) $(CONFIGFLAGS) $(CXXTFLAGS) $(CXXFLAGS) -c $< .c.o: - $(CCOMP) $(CONFIGFLAGS) $(CFLAGS) -w -c $< + $(CC) $(CONFIGFLAGS) $(CFLAGS) -w -c $< LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard ../lexers/Lex*.cxx)))) @@ -90,7 +90,7 @@ analyze: clang --analyze $(CONFIGFLAGS) $(CXXTFLAGS) $(CXXFLAGS) *.cxx ../src/*.cxx ../lexlib/*.cxx ../lexers/*.cxx deps: - $(CC) -MM $(CONFIGFLAGS) $(CXXTFLAGS) *.cxx ../src/*.cxx ../lexlib/*.cxx ../lexers/*.cxx | sed -e 's/\/usr.* //' | grep [a-zA-Z] >deps.mak + $(CXX) -MM $(CONFIGFLAGS) $(CXXTFLAGS) *.cxx ../src/*.cxx ../lexlib/*.cxx ../lexers/*.cxx | sed -e 's/\/usr.* //' | grep [a-zA-Z] >deps.mak $(COMPLIB): Accessor.o CharacterSet.o LexerBase.o LexerModule.o LexerSimple.o StyleContext.o WordList.o \ CharClassify.o Decoration.o Document.o PerLine.o Catalogue.o CallTip.o CaseConvert.o CaseFolder.o \ -- cgit v1.2.3