Use dynamic lib for shared recoll code
This commit is contained in:
+4
-12
@@ -1,20 +1,15 @@
|
||||
# @(#$Id: Makefile,v 1.4 2008-11-24 15:47:40 dockes Exp $ (C) 2005 J.F.Dockes
|
||||
depth = ..
|
||||
include $(depth)/mk/sysconf
|
||||
|
||||
# Only test executables get build in here
|
||||
PROGS = mh_mbox internfile
|
||||
|
||||
all: $(BIGLIB) $(PROGS)
|
||||
|
||||
$(BIGLIB): force
|
||||
cd $(depth)/lib;$(MAKE)
|
||||
force:
|
||||
all: librecoll $(PROGS)
|
||||
|
||||
INTERNFILE_OBJS= trinternfile.o $(BIGLIB)
|
||||
internfile : $(INTERNFILE_OBJS)
|
||||
$(CXX) $(ALL_CXXFLAGS) -o internfile $(INTERNFILE_OBJS) \
|
||||
$(LIBICONV) $(LIBSYS)
|
||||
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
||||
trinternfile.o : internfile.cpp
|
||||
$(CXX) $(ALL_CXXFLAGS) -DTEST_INTERNFILE -c -o trinternfile.o \
|
||||
internfile.cpp
|
||||
@@ -22,12 +17,9 @@ trinternfile.o : internfile.cpp
|
||||
MH_MBOX_OBJS= trmh_mbox.o $(BIGLIB)
|
||||
mh_mbox : $(MH_MBOX_OBJS)
|
||||
$(CXX) $(ALL_CXXFLAGS) -o mh_mbox $(MH_MBOX_OBJS) \
|
||||
$(LIBICONV) $(LIBSYS)
|
||||
$(LIBRECOLL) $(LIBICONV) $(LIBSYS)
|
||||
trmh_mbox.o : mh_mbox.cpp
|
||||
$(CXX) $(ALL_CXXFLAGS) -DTEST_MH_MBOX -c -o trmh_mbox.o \
|
||||
mh_mbox.cpp
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.o $(PROGS)
|
||||
|
||||
include $(depth)/mk/commontargets
|
||||
|
||||
@@ -1216,7 +1216,8 @@ int main(int argc, char **argv)
|
||||
perror("stat");
|
||||
exit(1);
|
||||
}
|
||||
FileInterner interner(fn, &st, config, "/tmp", 0);
|
||||
TempDir tmp;
|
||||
FileInterner interner(fn, &st, config, tmp, 0);
|
||||
Rcl::Doc doc;
|
||||
FileInterner::Status status = interner.internfile(doc, ipath);
|
||||
switch (status) {
|
||||
|
||||
Reference in New Issue
Block a user