add config parameter to decide if we use the file command as a final step of mimetype identification

This commit is contained in:
dockes
2005-11-10 08:47:49 +00:00
parent 52519d6d7c
commit 548a4c1a27
7 changed files with 190 additions and 101 deletions
+9 -1
View File
@@ -3,7 +3,7 @@ include ../mk/sysconf
BIGLIB = ../lib/librcl.a
MIMELIB = ../bincimapmime/libmime.a
PROGS = recollindex csguess
PROGS = recollindex csguess mimetype
all: $(PROGS)
RECOLLINDEX_OBJS= recollindex.o $(BIGLIB) $(MIMELIB)
@@ -21,6 +21,14 @@ trcsguess.o : csguess.cpp
$(CXX) $(CXXFLAGS) -DTEST_CSGUESS -c -o trcsguess.o \
csguess.cpp
MIMETYPE_OBJS= trmimetype.o $(BIGLIB)
mimetype : $(MIMETYPE_OBJS)
$(CXX) $(CXXFLAGS) -o mimetype $(MIMETYPE_OBJS) \
$(LIBICONV)
trmimetype.o : mimetype.cpp
$(CXX) $(CXXFLAGS) -DTEST_MIMETYPE -c -o trmimetype.o \
mimetype.cpp
clean:
rm -f *.o $(PROGS)