small warning and compilation adjustments

This commit is contained in:
dockes 2005-10-20 08:34:51 +00:00
parent cbfb93d53e
commit b55e443c91
9 changed files with 41 additions and 30 deletions

View File

@ -1,14 +1,16 @@
all: all:
cd lib;make test -f mk/sysconf || ./configure
cd bincimapmime;make cd lib; $(MAKE)
cd index;make cd bincimapmime; $(MAKE)
cd qtgui;qmake recoll.pro ; rm -f recoll;make cd index; $(MAKE)
clean: cd qtgui; qmake recoll.pro; rm -f recoll; $(MAKE)
cd common;make clean
cd index;make clean clean:
cd lib;make clean cd common; $(MAKE) clean
cd bincimapmime;make clean cd index; $(MAKE) clean
cd qtgui;rm -f recoll;make clean cd lib; $(MAKE) clean
cd query;make clean cd bincimapmime; $(MAKE) clean
cd utils;make clean cd qtgui; rm -f recoll; $(MAKE) clean
cd query; $(MAKE) clean
cd utils; $(MAKE) clean

View File

@ -1 +1 @@
1.0 1.01

View File

@ -27,8 +27,7 @@ trbinc: trbinc.o
clean: clean:
rm -f *.o $(LIBS) rm -f *.o $(LIBS)
alldeps:depend depend: alldeps
depend: alldeps: $(SRCS)
$(CXX) $(CXXFLAGS) -M $(SRCS) > alldeps $(CXX) $(CXXFLAGS) -M $(SRCS) > alldeps
include alldeps include alldeps

View File

@ -1,14 +1,21 @@
CVS */.#*
*/CVS */CVS
Changelog */alldeps
*/.moc
*/.ui
*/.obj
*/*/.moc
*/*/.ui
*/*/.obj
.#*
./autom4* ./autom4*
CVS
TAGS
aux/CVS aux/CVS
config.cache config.cache
config.log config.log
config.status config.status
excludefile excludefile
makedist.sh makedist.sh
.#*
*/*.#*
mk/sysconf mk/sysconf
qtgui/Makefile qtgui/Makefile

View File

@ -87,8 +87,10 @@ unacpp.o : ../common/unacpp.cpp
clean: clean:
rm -f *.o $(LIBS) rm -f *.o $(LIBS)
alldeps:depend depend: alldeps
depend:
alldeps: $(SRCS)
$(CXX) $(CXXFLAGS) -M $(SRCS) > alldeps $(CXX) $(CXXFLAGS) -M $(SRCS) > alldeps
include alldeps include alldeps

View File

@ -1,4 +1,5 @@
CXXFLAGS = -pthread -Wall -g -I. -I../index -I../utils -I../common \ CXXFLAGS = -pthread -Wall -Wno-unused-variable -g \
-I. -I../index -I../utils -I../common \
-I../unac -I../bincimapmime -I/usr/local/include \ -I../unac -I../bincimapmime -I/usr/local/include \
\ \
-DHAVE_VASPRINTF=1 -DHAVE_VASPRINTF=1

View File

@ -1,5 +1,5 @@
#ifndef lint #ifndef lint
static char rcsid[] = "@(#$Id: plaintorich.cpp,v 1.3 2005-10-19 10:21:48 dockes Exp $ (C) 2005 J.F.Dockes"; static char rcsid[] = "@(#$Id: plaintorich.cpp,v 1.4 2005-10-20 08:34:51 dockes Exp $ (C) 2005 J.F.Dockes";
#endif #endif
@ -30,7 +30,7 @@ class myTextSplitCB : public TextSplitCB {
} }
// Callback called by the text-to-words breaker for each word // Callback called by the text-to-words breaker for each word
virtual bool takeword(const std::string& term, int pos, int bts, int bte) { virtual bool takeword(const std::string& term, int, int bts, int bte) {
string dumb; string dumb;
Rcl::dumb_string(term, dumb); Rcl::dumb_string(term, dumb);
//LOGDEB(("Input dumbbed term: '%s' %d %d %d\n", dumb.c_str(), //LOGDEB(("Input dumbbed term: '%s' %d %d %d\n", dumb.c_str(),

View File

@ -106,7 +106,6 @@ void Preview::doSearch(bool next, bool reverse)
} }
} else { } else {
// Forward search: start from end of selection // Forward search: start from end of selection
int bogus;
mspara = mepara; mspara = mepara;
msindex = meindex; msindex = meindex;
//LOGDEB(("New para: %d index %d\n", mspara, msindex)); //LOGDEB(("New para: %d index %d\n", mspara, msindex));

View File

@ -26,14 +26,15 @@ unix {
UI_DIR = .ui UI_DIR = .ui
MOC_DIR = .moc MOC_DIR = .moc
OBJECTS_DIR = .obj OBJECTS_DIR = .obj
LIBS += ../lib/librcl.a ../bincimapmime/libmime.a -L/usr/local/lib -lxapian -liconv \ LIBS += ../lib/librcl.a ../bincimapmime/libmime.a \
-lfontconfig -lfreetype -lexpat -lz -L/usr/local/lib -lxapian -liconv \
-lz
INCLUDEPATH += ../common ../index ../query ../unac ../utils INCLUDEPATH += ../common ../index ../query ../unac ../utils
} }
UNAME = $$system(uname -s) UNAME = $$system(uname -s)
contains( UNAME, [lL]inux ) { contains( UNAME, [lL]inux ) {
LIBS -= -liconv LIBS -= -liconv
} }