Skip to content

Commit

Permalink
Fix strangely undefined GTK for PlatGtk.cxx by moving build dir (gean…
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Jan 24, 2015
1 parent 6cad08a commit 8ebac60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions makefile.win32
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ all: config.h
$(MAKE) -C tagmanager/ctags -f makefile.win32
$(MAKE) -C tagmanager/mio -f makefile.win32
$(MAKE) -C tagmanager/src -f makefile.win32
$(MAKE) -C scintilla -f makefile.win32
$(MAKE) -C scintilla/gtk -f makefile.win32
$(MAKE) -C plugins -f makefile.win32
$(MAKE) -C src -f makefile.win32

Expand All @@ -48,7 +48,7 @@ clean:
$(MAKE) -C tagmanager/ctags -f makefile.win32 clean
$(MAKE) -C tagmanager/mio -f makefile.win32 clean
$(MAKE) -C tagmanager/src -f makefile.win32 clean
$(MAKE) -C scintilla -f makefile.win32 clean
$(MAKE) -C scintilla/gtk -f makefile.win32 clean
$(MAKE) -C plugins -f makefile.win32 clean
$(MAKE) -C src -f makefile.win32 clean

Expand Down
24 changes: 11 additions & 13 deletions scintilla/makefile.win32 → scintilla/gtk/makefile.win32
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Make file for Scintilla on Linux or compatible OS
# Copyright 1998-2001 by Neil Hodgson <[email protected]>
# Copyright 1998-2010 by Neil Hodgson <[email protected]>
# The License.txt file describes the conditions under which this software may be distributed.
# This makefile assumes GCC 3.1 is used and changes will be needed to use other compilers.
# This makefile assumes GCC 4.3 is used and changes will be needed to use other compilers.
# GNU make does not like \r\n line endings so should be saved to CVS in binary form.
# Builds for GTK+ 2 if available else GTK+ 1.
# To force GTK+ 2 build, define GTK2 on the make command line.
# To force GTK+ 1 build, define GTK1 on the make command line.
# Builds for GTK+ 2 and no longer supports GTK+ 1.
# Also works with ming32-make on Windows.

.SUFFIXES: .cxx .c .o .h .a
CXX = g++
Expand All @@ -21,19 +20,18 @@ endif
RANLIB = ranlib
PREFIX = C:/libs
RM = del
-include ../localwin32.mk
-include ../../localwin32.mk

ifdef MSYS
RM = rm -f
endif

COMPLIB=scintilla.a
COMPLIB=../scintilla.a

vpath %.h gtk lexlib src include
vpath %.cxx gtk lexers lexlib src
vpath %.c gtk
vpath %.h ../src ../include ../lexlib
vpath %.cxx ../src ../lexlib ../lexers

INCLUDEDIRS=-I include -I src -I lexlib -I .
INCLUDEDIRS=-I ../include -I ../src -I ../lexlib
CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -DGTK -DSCI_LEXER $(INCLUDEDIRS)

ifdef THREADS
Expand All @@ -60,15 +58,15 @@ MARSHALLER=scintilla-marshal.o
.c.o:
$(CC) $(CONFIGFLAGS) $(CFLAGS) -w -c $<

LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard lexers/Lex*.cxx))))
LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard ../lexers/Lex*.cxx))))

all: $(COMPLIB)

clean:
-$(RM) deps.mak *.o $(COMPLIB) *.plist

deps.mak:
$(CXX) -MM $(CONFIGFLAGS) $(CXXTFLAGS) gtk/*.cxx lexers/*.cxx lexlib/*.cxx src/*.cxx >deps.mak
$(CXX) -MM $(CONFIGFLAGS) $(CXXTFLAGS) *.cxx ../src/*.cxx ../lexlib/*.cxx ../lexers/*.cxx >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 \
Expand Down

0 comments on commit 8ebac60

Please sign in to comment.