# Makefile for libparsexml shared library

# Version: $Revision: 0.3 $
# Date: $Date: 2006/10/15 14:26:35 $
#
# Copyright (c) 2003 - 2006
# The Trustees of Columbia University in the City of New York
# Academic Information Systems
# 
# License restrictions apply, see doc/license.html for details.

# Get common definitions
include ../Makefile.inc

# Set the paths to the source
srcdir=@srcdir@
VPATH=@srcdir@

# Where to find install
INSTALL=@INSTALL@

TARGETS=libparsexml.a
OBJS=SurvivorXML.o XMLNode.o expat_handlers.o

all: ${TARGETS}

install-remote:

install: ${TARGETS}
	echo Nothing to install for libparsexml

expat/.libs/libexpat.a:
	(cd expat ; make)

libparsexml.a: expat/.libs/libexpat.a ${OBJS}
	cp expat/.libs/libexpat.a libparsexml.a
	${AR} -rv libparsexml.a ${OBJS}
	${RANLIB} libparsexml.a

test: test.o libparsexml.a
	${CCC} -o test test.o -L. -lparsexml ${CORELDFLAGS}

veryclean: clean
	rm -f *.o *~

clean:
	rm -f ${OBJS} ${TARGETS}

