# Makefile for the cstrings tool by Eric S. Raymond

CFLAGS=-O
LDFLAGS=-s

cstrings: cstrings.l
	@echo "	Expect a \"Non-portable Character Class\" warning"
	lex cstrings.l
	mv lex.yy.c cstrings.c
	$(CC) $(CFLAGS) cstrings.c $(LDFLAGS) -o cstrings

clean:
	rm -f lex.yy.c cstrings cstrings.c *~ cstrings.shar cstrings.tar.gz

cstrings.tar.gz:
	tar -cvf cstrings.tar cstrings.1 cstrings.lsm Makefile cstrings.l 
	gzip cstrings.tar

cstrings.shar: cstrings.1 Makefile cstrings.l
	shar cstrings.1 Makefile cstrings.l cstrings.lsm >cstrings.shar
