#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): 
#

DEPTH		= ../../..
topsrcdir	= /cygdrive/c/my_prog/mozilla/src/firefox/mozilla
srcdir		= /cygdrive/c/my_prog/mozilla/src/firefox/mozilla/extensions/tidy/spvalid
VPATH		= /cygdrive/c/my_prog/mozilla/src/firefox/mozilla/extensions/tidy/spvalid

include $(DEPTH)/config/autoconf.mk

# OpenSP definitions
DEFINES         += -DSP_NAMESPACE=OpenSP -DSP_MULTI_BYTE

REQUIRES        = string \
                  xpcom \
                  $(NULL)

TESTCPPSRCS     = SpValid.cpp
CPPSRCS =       $(TESTCPPSRCS)         \
                $(NULL)                

# This is a dummy entry to force the compile to compile the C file
# with another include file than the one of Tidy. Else there are 
# include files with the same names that conflicts
MODULE          = todel
LIBRARY_NAME    = todel
SHORT_LIBNAME   = todel
IS_COMPONENT    = 1

# separate libraries linked in.
EXTRA_DSO_LDOPTS = \
                $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
                $(NSPR_LIBS) \
                $(LIB_PREFIX)osp.$(LIB_SUFFIX) \
                $(NULL)

LIBS            = \
                $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
                $(NSPR_LIBS) \
                $(LIB_PREFIX)osp.$(LIB_SUFFIX) \
                $(NULL)

include $(topsrcdir)/config/rules.mk

INCLUDES += -I$(srcdir)/. 
INCLUDES += -I$(srcdir)/../opensp/include 