#!gmake
#
# The contents of this file are subject to the Mozilla 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/MPL/
# 
# 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 MathML Project.
# 
# The Initial Developer of the Original Code is Heriot-Watt 
# University, Edinburgh.  Portions created by Heriot-Watt University 
# are Copyright (C) 1999 Heriot-Watt University. All Rights Reserved.
# 
# Contributor(s):
#   David J. Fiddes <D.J.Fiddes@hw.ac.uk>
#   Roger B. Sidje <rbs@maths.uq.edu.au>
#

DEPTH=../../../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE	= layout
LIBRARY_NAME = gkmathmlcon_s
REQUIRES	= xpcom \
		  string \
		  necko \
		  content \
		  gfx \
		  $(NULL)

include $(topsrcdir)/config/config.mk

DEFINES += -D_IMPL_NS_HTML

ifeq ($(OS_ARCH),WINNT)
DEFINES		+= -DWIN32_LEAN_AND_MEAN
endif

CPPSRCS =				\
	nsMathMLAtoms.cpp  \
        nsMathMLOperators.cpp \
	$(NULL)

# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

include $(topsrcdir)/config/rules.mk

EXPORT_RESOURCE_CONTENT = \
		$(srcdir)/mathml.dtd \
		$(NULL)
libs::
	$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/dtd
	$(INSTALL) $(srcdir)/mathml.css $(DIST)/bin/res
	$(PERL) $(srcdir)/mathml-css.pl $(DIST)/bin/res/ua.css
