#
# source make file
#

CC=@CC@
DEBUG=@DEBUG@
INCLUDE=-I../include -I.
LIBS=@LIBS@
CFLAGS=${DEBUG} ${INCLUDE} -Wall -O3 -fPIC
LFLAGS=${DEBUG} ${INCLUDE} -Wall -O3 -o
OBJS=DomComment.o DomDocument.o DomElement.o DomNode.o DomNodeList.o DomText.o SgmlExtensionHtml.o SgmlExtensionXml.o SgmlParser.o Variant.o
LIBNAME=../libsgml.a
LIBEXEC=ar rc ${LIBNAME} ${OBJS} ${LIBS} && ranlib ${LIBNAME}
LIBBIN=@LIBBIN@

all: ${OBJS}
	${LIBEXEC}
	${LIBBIN}

*.c.${O}:
	${CC} ${CFLAGS} $*.c

clean:
	rm -f *.o core ${LIBNAME} ../libsgml.so

distclean:
	rm -f *.o core ${LIBNAME} ../libsgml.so Makefile
