DEPTH = ../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk IS_COMPONENT = 1 MODULE = xpclucene LIBRARY_NAME = xpclucene MOZILLA_INTERNAL_API = 1 XPI_NAME = xpclucene REQUIRES = \ xpcom \ string \ rdf \ intl \ locale \ necko \ uconv \ dom \ layout \ content \ widget \ xmlextras \ extensions \ $(NULL) CPPSRCS = \ nsLuceneUtils.cpp \ nsLuceneAnalyzer.cpp \ nsLuceneDocument.cpp \ nsLuceneField.cpp \ nsLuceneHits.cpp \ nsLuceneIndexReader.cpp \ nsLuceneIndexWriter.cpp \ nsLuceneIndexSearcher.cpp \ nsLuceneModule.cpp \ nsLuceneQuery.cpp \ nsLuceneFactory.cpp \ nsLuceneService.cpp \ nsLuceneStringConverter.cpp \ nsLuceneHandler.cpp \ nsLuceneChannel.cpp \ nsLuceneHighlighter.cpp \ $(NULL) EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS) ifeq ($(OS_ARCH),WINNT) CLUCENE_DIR = /cygdrive/j/clucene-0.9.10 LOCAL_INCLUDES += -I$(CLUCENE_DIR)/src SHARED_LIBRARY_LIBS = $(CLUCENE_DIR)/build/lib/CLuceneUDLib.lib $(CLUCENE_DIR)/build/lib/highlighterUDLib.lib ENABLE_CXX_EXCEPTIONS = 1 else ifeq ($(OS_ARCH),Linux) CLUCENE_DIR = /home/steve/dev/clucene-0.9.10 LOCAL_INCLUDES += -I$(CLUCENE_DIR)/src SHARED_LIBRARY_LIBS = $(CLUCENE_DIR)/src/.libs/libclucene.a # I hate to do this, but I added -Wno-unused because the clucene headers # generate tons of warnings and it drives me crazy OS_CXXFLAGS += -fexceptions -Wno-unused else ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) CLUCENE_DIR = /Users/steve/dev/clucene-0.9.10 LOCAL_INCLUDES += -I$(CLUCENE_DIR)/src SHARED_LIBRARY_LIBS = $(CLUCENE_DIR)/src/.libs/libclucene.a # I hate to do this, but I added -Wno-unused because the clucene headers # generate tons of warnings and it drives me crazy OS_CXXFLAGS += -fexceptions -Wno-unused endif endif endif include $(topsrcdir)/config/rules.mk ifeq ($(OS_ARCH),WINNT) LDFLAGS += -NODEFAULTLIB:MSVCRTD endif