--- makefile.orig 2010-03-25 19:49:46.000000000 -0400 +++ makefile 2010-04-05 07:36:46.000000000 -0400 @@ -7,9 +7,9 @@ # Also works with ming32-make on Windows. .SUFFIXES: .cxx .c .o .h .a -CC = g++ -CCOMP = gcc -AR = ar +#CC = g++ +#CCOMP = gcc +AR = $(CXX) -shared RANLIB = touch ifndef windir @@ -18,7 +18,8 @@ endif endif -COMPLIB=../bin/scintilla.a +COMPLIB=../bin/libscintilla.so.2 +LEXRLIB=../bin/libscintilla_lexers.so.2 vpath %.h ../src ../include vpath %.cxx ../src @@ -33,18 +34,18 @@ endif ifdef DEBUG -CXXFLAGS=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS) +CXXFLAGS+=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS) else -CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS) +CXXFLAGS+=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS) endif -CONFIGFLAGS:=$(shell pkg-config --cflags gtk+-2.0) +CONFIGFLAGS:=$(shell pkg-config --cflags gtk+-2.0 gthread-2.0) MARSHALLER=scintilla-marshal.o .cxx.o: - $(CC) $(CONFIGFLAGS) $(CXXFLAGS) -c $< + $(CC) $(PICFLAGS) $(CONFIGFLAGS) $(CXXFLAGS) -c $< .c.o: - $(CCOMP) $(CONFIGFLAGS) $(CXXFLAGS) -w -c $< + $(CCOMP) $(PICFLAGS) $(CONFIGFLAGS) $(CXXFLAGS) -w -c $< #++Autogenerated -- run src/LexGen.py to regenerate #**LEXOBJS=\\\n\(\*.o \) @@ -63,7 +64,7 @@ LexVHDL.o LexYAML.o #--Autogenerated -- end of automatically generated section -all: $(COMPLIB) +all: $(COMPLIB) $(LEXRLIB) clean: rm -f *.o $(COMPLIB) @@ -76,9 +77,11 @@ ScintillaBase.o ContractionState.o Editor.o ExternalLexer.o PropSet.o PlatGTK.o \ KeyMap.o LineMarker.o PositionCache.o ScintillaGTK.o CellBuffer.o ViewStyle.o \ RESearch.o RunStyles.o Selection.o Style.o Indicator.o AutoComplete.o UniConversion.o XPM.o \ - $(MARSHALLER) $(LEXOBJS) - $(AR) rc $@ $^ - $(RANLIB) $@ + $(MARSHALLER) + $(AR) $(CONFIGFLAGS:cflags=libs) -o $@ $^ + +$(LEXRLIB): $(LEXOBJS) + $(AR) $(CONFIGFLAGS:cflags=libs) -o $@ $^ # Automatically generate header dependencies with "make deps" include deps.mak