CFLAGS=-O
LDFLAGS=-s
+# Stock lex works too, but gives a "Non-portable Character Class\" warning
+# and may choke on the %option yylineno in cstrings.l
+LEX=flex
+
cstrings: cstrings.l
- @echo " Expect a \"Non-portable Character Class\" warning"
- lex cstrings.l
+ $(LEX) cstrings.l
mv lex.yy.c cstrings.c
$(CC) $(CFLAGS) cstrings.c $(LDFLAGS) -o cstrings
SOURCES= cstrings.1 Makefile cstrings.l cstrings.lsm cstrings.spec
-cstrings.tar:
+cstrings.tar: $(SOURCES)
(cd ..; tar -cvf cstrings-$(V)/cstrings.tar `echo $(SOURCES) | sed "/\(^\| \)/s// cstrings-$(V)\//g"`)
-cstrings.tar.gz:
+cstrings.tar.gz: cstrings.tar
gzip -f cstrings.tar
cstrings.shar: $(SOURCES)