/*
 *
 *	To make Makefile, type:
 *		xmkmf /usr/athena
 *
 */

DEFINES=-I.

#if defined(ultrix) || defined(SOLARIS)
build_library(re,regcomp.o regex.o)
RELIB=-L. -lre
#endif

SimpleProgram(match2,match2.o,$(RELIB),)

test:: match2
	@echo ======= Three lines: ERROR, MATCH, ERROR ========
	@./match2 "foo.*bar" foooobar "foo.*bar[" fooobar
	@echo ======= Three lines: ERROR, ERROR, MATCH ========
	@./match2 "foo.*bar[" fooobar "foo.*bar" foooobar
	@echo ======= Two lines: MATCH, MATCH ========
	@./match2 "foo.*bar" fooobar "^baz.*quux$$" bazzzquux
	@echo ======= Two lines: NOT-MATCH, MATCH ========
	@./match2 a b foobar afoobara
