# Makefile voor xmlmatch.
# Geert Kloosterman <geertk@ai.rug.nl>

XML2CONFIG=xml2-config
XSLTCONFIG=xslt-config
CC = gcc

CFLAGS  = `$(XML2CONFIG) --cflags` `$(XSLTCONFIG) --cflags` -Wall -g
LDFLAGS = `$(XML2CONFIG) --libs` `$(XSLTCONFIG) --libs`
LIBS = -lexslt -lpopt		# De Alpha linker wil deze achteraan. (!?!?)
                                # Is dat omdat de gesharede variant van popt
                                # ontbreekt?
PROGS = xmlmatch

all: $(PROGS)

xmlmatch: xmlmatch.o
	gcc $(LDFLAGS) xmlmatch.o -o xmlmatch $(LIBS)

.PHONY : clean
clean :
	rm -f *.o *~ $(PROGS)

TAGS: xmlmatch.c
	etags xmlmatch.c
